Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 3.8s
Failed to build iOS app
Error output from Xcode build:
↳
2023-07-07 06:59:59.293 xcodebuild[19060:121158] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ id:125EFC35-61C5-4572-A547-40447ED0F850 }
Available destinations for the "Runner" scheme:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
Xcode's output:
↳
Writing result bundle at path:
/var/folders/z6/kz6g7fd55z3c5lgpcts9lzq40000gn/T/flutter_tools.iVh1RF/flutter_ios_build_temp_dirnS7b4R/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
目前,这是唯一一个适合我构建Archive ipa的解决方案。不需要回滚到Xcode 14.2。
所以现在的解决方案是,打开ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh文件。
找到这行: - if [ -L "${source}" ]; then
- echo "Symlinked..."
- source="$(readlink "${source}")"
- fi
复制代码
到 - if [ -L "${source}" ]; then
- echo "Symlinked..."
- source="$(readlink -f "${source}")"
- fi
复制代码
添加-f并保存文件。
这对我很有效,希望这对你有帮助。
|