伙计们,请帮帮忙。我升级了颤振,现在我的项目没有建立。
这是我得到的马赛嘉:
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
lib/main.dart:1
Xcode build done. 58.5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/0m/j17z1hfn6h18bx6q6dyhs6g80000gp/T/flutter_tools.ScC4jr/flutter_ios_build_temp_dir9oudiu/temporary_xcresult_bundle
: Error: Member not found: 'packageRoot'.
../…/interface/local_platform.dart:46
io.Platform.packageRoot; // ignore: deprecated_member_use
^^^^^^^^^^^
Failed to package /Users/fplopez/StudioProjects/listing_project_DEV.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/fplopez/StudioProjects/listing_project_DEV/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.2.99. (in target 'MTBBarcodeScanner' from project 'Pods')
/Users/fplopez/StudioProjects/listing_project_DEV/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.2.99. (in target 'FMDB' from project 'Pods')
Result bundle written to path:
/var/folders/0m/j17z1hfn6h18bx6q6dyhs6g80000gp/T/flutter_tools.ScC4jr/flutter_ios_build_temp_dir9oudiu/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
Exited (sigterm)我真的需要帮助。我不知道怎么修好它。
谢谢
发布于 2022-03-05 00:41:54
我以前也犯过类似的错误,我的问题是,我已经为一些测试更改了包标识符,当返回到旧的测试时,我遇到了类似的情况,在多次搜索之后,我成功地创建了一个新项目,并将iOS模块带到我的项目中,然后再次处理它,比如克隆旧的info.plist等等。
https://stackoverflow.com/questions/71358217
复制相似问题