简体   繁体   中英

Xcode build is missing expected TARGET_BUILD_DIR build setting

I face error while launching on device on iPhone 12 Pro Max . This is console log

Launching lib/main.dart on iPhone 12 Pro Max in `debug mode`
Running Xcode build...
Xcode build done.                                           270.9s
Xcode build is missing expected TARGET_BUILD_DIR build setting.
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.

I just ran into this and fixed it as follows:

  • run command flutter upgrade
  • run command flutter clean
  • attach phone
  • run command flutter run

If it still fails, open the Xcode runner project, set your development team and run it directly from there.

After it runs, close Xcode, do a clean build, and run it using your preferred approach.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM