升级我的 flutter 版本后无法构建 iOS 应用程序

Har*_*han 3 ios flutter

我是 flutter iOS 开发的新手,我已经升级了我的 flutter 版本,然后在我的应用程序无法构建 iOS 应用程序后,我收到了下面提到的异常,请帮助我。在此之前它工作正常,我应该重新安装 flutter 或者任何其他想法意味着很多,提前致谢

\n\n
Xcode build done.                                           10.7s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n    ** BUILD FAILED **\nXcode\'s output:\n\xe2\x86\xb3\n    === BUILD TARGET map_view OF PROJECT Pods WITH CONFIGURATION Debug ===\n    /Users/harshavardhan/Workspace/fleetconnect_flutter/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1486:15: warning: \'sqlite3_wal_checkpoint_v2\' is only available on iOS 5.0 or newer [-Wunguarded-availability]\n        int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount);\n                  ^~~~~~~~~~~~~~~~~~~~~~~~~\n    In module \'SQLite3\' imported from /Users/harshavardhan/Workspace/fleetconnect_flutter/ios/Pods/FMDB/src/fmdb/FMDatabase.m:8:\n    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/sqlite3.h:8244:16: note: \'sqlite3_wal_checkpoint_v2\' has been explicitly marked partial here\n    SQLITE_API int sqlite3_wal_checkpoint_v2(\n                   ^\n    /Users/harshavardhan/Workspace/fleetconnect_flutter/ios/Pods/FMDB/src/fmdb/FMDatabase.m:1486:15: note: enclose \'sqlite3_wal_checkpoint_v2\' in an @available check to silence this warning\n        int err = sqlite3_wal_checkpoint_v2(_db, dbName, checkpointMode, logFrameCount, checkpointCount);\n                  ^~~~~~~~~~~~~~~~~~~~~~~~~\n    1 warning generated.\n    === BUILD TARGET map_view OF PROJECT Pods WITH CONFIGURATION Debug ===\n    /Users/harshavardhan/Workspace/fleetconnect_flutter/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: warning: \'dispatch_queue_set_specific\' is only available on iOS 5.0 or newer [-Wunguarded-availability]\n            dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n    In module \'Foundation\' imported from /Users/harshavardhan/Workspace/fleetconnect_flutter/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9:\n    In module \'CoreFoundation\' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:\n    In module \'Dispatch\' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:\n    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/dispatch/queue.h:1352:1: note: \'dispatch_queue_set_specific\' has been explicitly marked partial here\n    dispatch_queue_set_specific(dispatch_queue_t queue, const void *key,\n    ^\n    /Users/harshavardhan/Workspace/fleetconnect_flutter/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:101:9: note: enclose \'dispatch_queue_set_specific\' in an @available check to silence this warning\n            dispatch_queue_set_specific(_queue, kDispatchQueueSpecificKey, (__bridge void *)self, NULL);\n            ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n    /Users/harshavardhan/Workspace/fleetconnect_flutter/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: warning: \'dispatch_get_specific\' is only available on iOS 5.0 or newer [-Wunguarded-availability]\n        FMDatabaseQueue *currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey);\n                                                         ^~~~~~~~~~~~~~~~~~~~~\n    In module \'Foundation\' imported from /Users/harshavardhan/Workspace/fleetconnect_flutter/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.h:9:\n    In module \'CoreFoundation\' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:\n    In module \'Dispatch\' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:20:\n    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/dispatch/queue.h:1408:1: note: \'dispatch_get_specific\' has been explicitly marked partial here\n    dispatch_get_specific(const void *key);\n    ^\n    /Users/harshavardhan/Workspace/fleetconnect_flutter/ios/Pods/FMDB/src/fmdb/FMDatabaseQueue.m:184:54: note: enclose \'dispatch_get_specific\' in an @available check to silence this warning\n        FMDatabaseQueue *currentSyncQueue = (__bridge id)dispatch_get_specific(kDispatchQueueSpecificKey);\n                                                         ^~~~~~~~~~~~~~~~~~~~~\n    2 warnings generated.\n    /Users/harshavardhan/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-2.2.11/ios/Classes/FluttertoastPlugin.m:19:23: warning: unused variable \'viewController\' [-Wunused-variable]\n        UIViewController *viewController =\n                          ^\n    /Users/harshavardhan/development/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-2.2.11/ios/Classes/FluttertoastPlugin.m:48:19: warning: unused variable \'size\' [-Wunused-variable]\n            NSNumber *size = call.arguments[@"size"];\n                      ^\n    2 warnings generated.\n    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===\n    ld: framework not found Flutter\n    clang: error: linker command failed with exit code 1 (use -v to see invocation)\nCould not build the application for the simulator.\nError launching application on iPhone XR.\nExited (sigterm)\n
Run Code Online (Sandbox Code Playgroud)\n

fla*_*rup 5

Flutter clean尝试在终端中清理项目 ( ),pod installios目录运行,然后再次运行应用程序。

如果这似乎不能解决问题,其他人已经通过按照您自己的建议重新安装 Flutter 解决了这个问题。