Showing All Messages
Command: /Users/xxxx/Library/Developer/flutter/bin/flutter --verbose assemble --no-version-check --output=/Users/wangdi/Library/Developer/Xcode/DerivedData/Mountain-ddwkvicmaovcxvbmodcyprzninzd/Build/Products/Debug-iphoneos/ -dTargetPlatform=ios -dTargetFile=lib/main.dart -dBuildMode=debug -dIosArchs=arm64 -dSdkRoot=/Applications/Xcode14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk -dSplitDebugInfo= -dTreeShakeIcons=false -dTrackWidgetCreation=true -dDartObfuscation=false -dAction=build --ExtraGenSnapshotOptions= --DartDefines= --ExtraFrontEndOptions= -dCodesignIdentity=271CCD8F943330577AE4A0787159F440F48556FD debug_ios_bundle_flutter_assets
或者
Showing All Messages
/bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory
解决办法
1.// 打开终端,进入到自己Flutter工程下
cd ~/YourFlutter Project
2.设置模式
flutter build ios --release
3.运行成功如下
Building xxxxx for device (ios-release)...
Automatically signing iOS for device deployment using specified development team
in Xcode project: HS4J98U5XG
Running Xcode build...
└─Compiling, linking and signing... 17.1s
Xcode build done. 52.7s
Built
/Users/xxxx/Desktop/newCode/mountain_flutter/build/ios/iphoneos/Runner.app.
4.cmd+shif+k清理一下项目, 重新运行项目即可