Xcode 构建的错误输出:
↳
** 构建失败 **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/tk/5dhy1xgs03g365nbp0m7fmvw0000gn/T/flutter_tools.AvoL1N/flutter_ios_build_temp_dir1vIqD6/temporary_xcresult_bundle
/Users/imac/Library/Developer/Xcode/DerivedData/Runner-cnaqcppbxotvyqemjolcqzafjlfb/SourcePackages/checkouts/tiktok-opensdk-ios/Sources/TikTokOpenSDKCore/Internal/TikTokURLOpener.swift:18:1: error: type 'UIApplication' does not conform to protocol 'TikTokURLOpener'
extension UIApplication : TikTokURLOpener {
^
UIKit.UIApplication:24:15: note: candidate has non-matching type '(URL, [UIApplication.OpenExternalURLOptionsKey : Any], (@MainActor @Sendable (Bool) -> Void)?) -> Void'
open func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey : Any] = [:], completionHandler completion: (@MainActor @Sendable (Bool) -> Void)? = nil)
^
/Users/imac/Library/Developer/Xcode/DerivedData/Runner-cnaqcppbxotvyqemjolcqzafjlfb/SourcePackages/checkouts/tiktok-opensdk-ios/Sources/TikTokOpenSDKCore/Internal/TikTokURLOpener.swift:18:1: note: add stubs for conformance
extension UIApplication : TikTokURLOpener {
^
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'flutter_native_splash-flutter_native_splash_privacy' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'wakelock_plus-thermal' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'flutter_secure_storage-flutter_secure_storage' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'SwiftyGif-SwiftyGif' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'Sentry-Sentry' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'SDWebImage-SDWebImage' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'Mixpanel-swift-Mixpanel' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Full_Privacy' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'AppAuth-AppAuthCore_Privacy' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'Sentry' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'OneSignalXCFramework' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'SwiftyGif' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'DKImagePickerController' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'DKPhotoGallery-DKPhotoGallery' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'GTMAppAuth' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'GTMAppAuth-GTMAppAuth_Privacy' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'OrderedSet' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'GoogleSignIn-GoogleSignIn' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'fluttertoast-fluttertoast_privacy' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'GTMSessionFetcher' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'SDWebImageWebPCoder' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'SDWebImage' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'GoogleSignIn' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'JPSVolumeButtonHandler' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'DKImagePickerController-DKImagePickerController' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target 'AppAuth' from project 'Pods')
/Volumes/WORK/Flutter/mobile-app-flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.0.99. (in target ....
升级 xcode 时遇到此问题
sudo rm -rf /Applications/Xcode.app sudo rm -rf ~/Library/Developer/Xcode sudo rm -rf ~/Library/Caches/com.apple.dt.Xcode
我没听说可以降级Xcode版本, 但是您可以从 xocde 版本
安装特定版本