如何修复“并发”仅在iOS 15.0.0或更新的iOS中可用。错误颤动

发布于 2025-02-12 11:01:08 字数 25698 浏览 1 评论 0原文

我最近将Flutter SDK更新为3.0.4,并且在尝试在iOS模拟器上启动时,我的项目将不再构建。

我遇到了以下错误,并在每个错误下实现了解决方案:

The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99.

过去有效的解决方案,但现在失败了,因为这也包括在错误消息中: flutter- iOS模拟器部署目标“ iPhoneos_deployment_target”设置为7.0& amp;构建输入文件找不到googleservice-info.plist

error: 'Flutter/Flutter.h' file not found

解决方案,当我上述错误时,过去工作,而不是现在: error:'flutter/flutter.h'文件当flutter上运行时找不到iOS (基本上删除和重建iOS文件夹)

然后,我尝试重新实现此功能( https://codewithandrea.com/tips/speed-up-cloud-firestore-firestore-xcode-builds/ )在重建iOS文件夹(需要一个新的podfile)之后,因为构建在上面的解决方案中是永远的,失败,并且在扑面更新之前运行良好。我使用了Firestore版本9.2.0,因为那是我的podfile.lock文件中的内容。

这是我开始获得无法解决的Swift编译器错误的时候,如下所示。其他项目正在运行颤抖的更新和此模拟器。即使将解决方案从上面的“使用Andrea”链接逆转之后,我仍然会遇到同样的错误。

POD安装,POD更新,颤抖的酒吧缓存维修,清洁颤音,扑面酒吧Get,Pod安装 - Repo-Update,这些都无法解决错误。

请帮忙。

错误消息(这不会让我发布整个内容,字符限制):

Running "flutter pub get" in project_name...
Launching lib/main.dart on iPhone 12 in debug mode...
Xcode build done.                                           300.1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/5m/btwjgwbs3zz4xt0v29h78lsm0000gn/T/flutter_tools.GaL813/flutter_ios_build_temp_dirDysItT/temporary_xcresult_bundle
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.4.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
                UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
                ^
    In module 'UIKit' imported from /Users/projectPath/ios/Pods/Target Support Files/location/location-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.4.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
                UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
                                                   ^
    In module 'UIKit' imported from /Users/projectPath/ios/Pods/Target Support Files/location/location-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
    2 warnings generated.
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.4.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
                UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
                ^
    In module 'UIKit' imported from /Users/projectPath/ios/Pods/Target Support Files/location/location-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.4.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
                UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
                                                   ^
    In module 'UIKit' imported from /Users/projectPath/ios/Pods/Target Support Files/location/location-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
    2 warnings generated.
    1 warning generated.
    error: the following command failed with exit code 0 but produced no further output
CompileC /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/geolocator_apple.build/Objects-normal/arm64/GeolocatorPlugin.o /Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_apple-2.2.0/ios/Classes/GeolocatorPlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'geolocator_apple' from project 'Pods')
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/ReachabilityConnectivityProvider.swift:23:5: warning: result of call to 'ensureReachability()' is unused
        ensureReachability()
        ^                 ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/PathMonitorConnectivityProvider.swift:31:5: warning: result of call to 'ensurePathMonitor()' is unused
        ensurePathMonitor()
        ^                ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/PathMonitorConnectivityProvider.swift:35:5: warning: result of call to 'ensurePathMonitor()' is unused
        ensurePathMonitor()
        ^                ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/PathMonitorConnectivityProvider.swift:31:5: warning: result of call to 'ensurePathMonitor()' is unused
        ensurePathMonitor()
        ^                ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/PathMonitorConnectivityProvider.swift:35:5: warning: result of call to 'ensurePathMonitor()' is unused
        ensurePathMonitor()
        ^                ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/ReachabilityConnectivityProvider.swift:23:5: warning: result of call to 'ensureReachability()' is unused
        ensureReachability()
        ^                 ~~
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:224:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func downloadURL() async throws -> URL {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:293:25: error: concurrency is only available in iOS 15.0.0 or newer
        open func listAll() async throws -> StorageListResult {
                            ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:377:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func getMetadata() async throws -> StorageMetadata {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseStorage.build/Objects-normal/x86_64/StorageMetadata.dia:1:1: warning: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'FirebaseStorage' from project 'Pods')
    Command CompileSwift failed with a nonzero exit code
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:224:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func downloadURL() async throws -> URL {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:293:25: error: concurrency is only available in iOS 15.0.0 or newer
        open func listAll() async throws -> StorageListResult {
                            ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:377:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func getMetadata() async throws -> StorageMetadata {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseStorage.build/Objects-normal/x86_64/StorageObservableTask.dia:1:1: warning: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'FirebaseStorage' from project 'Pods')
    Command CompileSwift failed with a nonzero exit code
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:224:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func downloadURL() async throws -> URL {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:293:25: error: concurrency is only available in iOS 15.0.0 or newer
        open func listAll() async throws -> StorageListResult {
                            ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:377:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func getMetadata() async throws -> StorageMetadata {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:224:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func downloadURL() async throws -> URL {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:293:25: error: concurrency is only available in iOS 15.0.0 or newer
        open func listAll() async throws -> StorageListResult {
                            ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:377:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func getMetadata() async throws -> StorageMetadata {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseStorage.build/Objects-normal/i386/StorageMetadata.dia:1:1: warning: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'FirebaseStorage' from project 'Pods')
    Command CompileSwift failed with a nonzero exit code
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseStorage.build/Objects-normal/arm64/StorageMetadata.dia:1:1: warning: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'FirebaseStorage' from project 'Pods')
    Command CompileSwift failed with a nonzero exit code                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    Command CompileSwiftSources failed with a nonzero exit code
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in parallel
    note: Removed stale file '/Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Products/Debug-iphonesimulator/firebase_core/firebase_core.framework'
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'leveldb-library' from project 'Pods')
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'ReachabilitySwift' from project 'Pods')
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'MTBBarcodeScanner' from project 'Pods')
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'TOCropViewController-TOCropViewControllerBundle' from project 'Pods')
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'TOCropViewController' from project 'Pods')
    Result bundle written to path:
        /var/folders/5m/btwjgwbs3zz4xt0v29h78lsm0000gn/T/flutter_tools.GaL813/flutter_ios_build_temp_dirDysItT/temporary_xcresult_bundle
Uncategorized (Xcode): Command CompileSwift failed with a nonzero exit code
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:223:28
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:292:24
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:376:28
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:406:58
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:440:23
Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code
Could not build the application for the simulator.
Error launching application on iPhone 12.
Exited

I recently updated my Flutter SDK to 3.0.4, and my project would no longer build when trying to launch on the iOS Simulator.

I got the following errors and implemented the solutions below each error:

The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99.

Solution that has worked in the past but fails now since this is also included in the error message: Flutter - The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0 && Build input file cannot be found GoogleService-Info.plist

and

error: 'Flutter/Flutter.h' file not found

Solution when I got above error, worked in the past, not now: error: 'Flutter/Flutter.h' file not found when flutter run on iOS (basically deleting and rebuilding ios folder)

I then tried to re-implement this (https://codewithandrea.com/tips/speed-up-cloud-firestore-xcode-builds/) after rebuilding the ios folder (requires a new podfile) in the solution above as the builds took forever to fail, and it worked well before the Flutter update. I used firestore version 9.2.0 since that is what was in my podfile.lock file.

This is when I started getting the swift compiler error I cannot solve, shown below. Other projects are running with the flutter update and on this simulator. Even after reversing the solution from the "code with Andrea" link above, I still get this same error.

pod install, pod update, flutter pub cache repair, flutter clean, flutter pub get, pod install --repo-update, none of these solve the error.

Please help.

Error message (it wouldn't let me post the whole thing, character limits):

Running "flutter pub get" in project_name...
Launching lib/main.dart on iPhone 12 in debug mode...
Xcode build done.                                           300.1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/5m/btwjgwbs3zz4xt0v29h78lsm0000gn/T/flutter_tools.GaL813/flutter_ios_build_temp_dirDysItT/temporary_xcresult_bundle
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.4.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
                UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
                ^
    In module 'UIKit' imported from /Users/projectPath/ios/Pods/Target Support Files/location/location-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.4.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
                UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
                                                   ^
    In module 'UIKit' imported from /Users/projectPath/ios/Pods/Target Support Files/location/location-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
    2 warnings generated.
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.4.0/ios/Classes/LocationPlugin.m:176:13: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
                UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
                ^
    In module 'UIKit' imported from /Users/projectPath/ios/Pods/Target Support Files/location/location-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.4.0/ios/Classes/LocationPlugin.m:176:48: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
                UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled"
                                                   ^
    In module 'UIKit' imported from /Users/projectPath/ios/Pods/Target Support Files/location/location-prefix.pch:2:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
    @interface UIAlertView : UIView
               ^
    2 warnings generated.
    1 warning generated.
    error: the following command failed with exit code 0 but produced no further output
CompileC /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/geolocator_apple.build/Objects-normal/arm64/GeolocatorPlugin.o /Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/geolocator_apple-2.2.0/ios/Classes/GeolocatorPlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'geolocator_apple' from project 'Pods')
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/ReachabilityConnectivityProvider.swift:23:5: warning: result of call to 'ensureReachability()' is unused
        ensureReachability()
        ^                 ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/PathMonitorConnectivityProvider.swift:31:5: warning: result of call to 'ensurePathMonitor()' is unused
        ensurePathMonitor()
        ^                ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/PathMonitorConnectivityProvider.swift:35:5: warning: result of call to 'ensurePathMonitor()' is unused
        ensurePathMonitor()
        ^                ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/PathMonitorConnectivityProvider.swift:31:5: warning: result of call to 'ensurePathMonitor()' is unused
        ensurePathMonitor()
        ^                ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/PathMonitorConnectivityProvider.swift:35:5: warning: result of call to 'ensurePathMonitor()' is unused
        ensurePathMonitor()
        ^                ~~
/Users/user1/development/tools/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_plus-2.3.5/ios/Classes/ReachabilityConnectivityProvider.swift:23:5: warning: result of call to 'ensureReachability()' is unused
        ensureReachability()
        ^                 ~~
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:224:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func downloadURL() async throws -> URL {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:293:25: error: concurrency is only available in iOS 15.0.0 or newer
        open func listAll() async throws -> StorageListResult {
                            ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:377:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func getMetadata() async throws -> StorageMetadata {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseStorage.build/Objects-normal/x86_64/StorageMetadata.dia:1:1: warning: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'FirebaseStorage' from project 'Pods')
    Command CompileSwift failed with a nonzero exit code
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:224:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func downloadURL() async throws -> URL {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:293:25: error: concurrency is only available in iOS 15.0.0 or newer
        open func listAll() async throws -> StorageListResult {
                            ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:377:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func getMetadata() async throws -> StorageMetadata {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseStorage.build/Objects-normal/x86_64/StorageObservableTask.dia:1:1: warning: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'FirebaseStorage' from project 'Pods')
    Command CompileSwift failed with a nonzero exit code
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:224:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func downloadURL() async throws -> URL {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:293:25: error: concurrency is only available in iOS 15.0.0 or newer
        open func listAll() async throws -> StorageListResult {
                            ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:377:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func getMetadata() async throws -> StorageMetadata {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:224:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func downloadURL() async throws -> URL {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:293:25: error: concurrency is only available in iOS 15.0.0 or newer
        open func listAll() async throws -> StorageListResult {
                            ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:377:29: error: concurrency is only available in iOS 15.0.0 or newer
        open func getMetadata() async throws -> StorageMetadata {
                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseStorage.build/Objects-normal/i386/StorageMetadata.dia:1:1: warning: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'FirebaseStorage' from project 'Pods')
    Command CompileSwift failed with a nonzero exit code
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseStorage.build/Objects-normal/arm64/StorageMetadata.dia:1:1: warning: Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'FirebaseStorage' from project 'Pods')
    Command CompileSwift failed with a nonzero exit code                                ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:407:59: error: concurrency is only available in iOS 15.0.0 or newer
        open func updateMetadata(_ metadata: StorageMetadata) async throws -> StorageMetadata {
                                                              ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:441:24: error: concurrency is only available in iOS 15.0.0 or newer
        open func delete() async throws {
                           ^
    /Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:25:39: note: add @available attribute to enclosing class
    @objc(FIRStorageReference) open class StorageReference: NSObject {
                                          ^
    Command CompileSwiftSources failed with a nonzero exit code
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in parallel
    note: Removed stale file '/Users/user1/Library/Developer/Xcode/DerivedData/Runner-btumkhqxnfgahyertjizuikcyuzl/Build/Products/Debug-iphonesimulator/firebase_core/firebase_core.framework'
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'leveldb-library' from project 'Pods')
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'ReachabilitySwift' from project 'Pods')
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'MTBBarcodeScanner' from project 'Pods')
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'TOCropViewController-TOCropViewControllerBundle' from project 'Pods')
    /Users/projectPath/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'TOCropViewController' from project 'Pods')
    Result bundle written to path:
        /var/folders/5m/btwjgwbs3zz4xt0v29h78lsm0000gn/T/flutter_tools.GaL813/flutter_ios_build_temp_dirDysItT/temporary_xcresult_bundle
Uncategorized (Xcode): Command CompileSwift failed with a nonzero exit code
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:223:28
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:292:24
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:376:28
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:406:58
Swift Compiler Error (Xcode): Concurrency is only available in iOS 15.0.0 or newer
/Users/projectPath/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageReference.swift:440:23
Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code
Could not build the application for the simulator.
Error launching application on iPhone 12.
Exited

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

离旧人 2025-02-19 11:01:08

在您的podfile中。检查平台版本的不计数并将其更改为11。还可以在Xcode中打开Runner.xcworkspace。您将看到警告Ontop。单击这些警告,然后单击执行费用。 则从Xcode运行XCode

编辑

如果您单击以红色标记的图标, 。它应该在左窗格上打开警告。选择每个一个,它将显示一个弹出窗口以解决版本。

还可以执行pod install-repo-update,然后尝试一次

previewIn you podfile. Check the platform version uncomment it and change it to 11. Also open the runner.xcworkspace in xcode. You will see warnings ontop. Click on those warnings and click on perform charges. And run the project from Xcode once

EDIT

If you click on the icon that's marked in red. It should open the warning on the left pane. Select each one and it will show a pop up to resolve versions.

Also execute pod install --repo-update and try once

看轻我的陪伴 2025-02-19 11:01:08

事实证明,这个问题是由Xcode引起的。卸载和重新安装最新版本为我解决了

Turns out this issue was caused by XCode. Uninstalling and reinstalling the most recent version solved it for me

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文