tri*_*gri 7 xcode ios ios-simulator flutter
Flutter 应用程序在 iOS 模拟器上构建失败,尽管它在 Android 模拟器上编译成功,但从命令行运行的 iOS 和 Android 物理设备 iOS 构建是成功的。
\nFlutter版本从2.5.3升级到2.8.1后出现此问题。
\n以前,它运行良好。
\n构建输出
\nThis will generate a JSON format file containing all messages that \nneed to be translated.\nLaunching lib/src/app/main_staging.dart on iPhone 13 in debug mode...\nRunning Xcode build...\nXcode build done. 3.0s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n xcodebuild: error: Unable to find a destination matching the provided destination specifier:\n { id:1DCE4D93-E8B4-40D1-BDC1-B8FA373B1961 }\n\n Ineligible destinations for the "staging" scheme:\n { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }\n\nCould not build the application for the simulator.\nError launching application on iPhone 13.\nRun Code Online (Sandbox Code Playgroud)\n该模拟器也没有显示在 Xcode 中。
\n颤动医生输出
\nflutter doctor -v \nRun Code Online (Sandbox Code Playgroud)\n[\xe2\x9c\x93] Flutter (Channel stable, 2.8.1, on macOS 11.3.1 20E241 darwin-x64, locale en-GB)\n \xe2\x80\xa2 Flutter version 2.8.1 at /Users/gohar.ali/Desktop/Flutter_dev/flutter\n \xe2\x80\xa2 Upstream repository https://github.com/flutter/flutter.git\n \xe2\x80\xa2 Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800\n \xe2\x80\xa2 Engine revision 890a5fca2e\n \xe2\x80\xa2 Dart version 2.15.1\n\n[\xe2\x9c\x93] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc3)\n \xe2\x80\xa2 Android SDK at /Users/gohar.ali/Library/Android/sdk\n \xe2\x80\xa2 Platform android-32, build-tools 31.0.0-rc3\n \xe2\x80\xa2 Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java\n \xe2\x80\xa2 Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)\n \xe2\x80\xa2 All Android licenses accepted.\n\n[\xe2\x9c\x93] Xcode - develop for iOS and macOS (Xcode 13.2.1)\n \xe2\x80\xa2 Xcode at /Applications/Xcode.app/Contents/Developer\n \xe2\x80\xa2 CocoaPods version 1.11.2\n\n[\xe2\x9c\x93] Chrome - develop for the web\n \xe2\x80\xa2 Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome\n\n[\xe2\x9c\x93] Android Studio (version 2020.3)\n \xe2\x80\xa2 Android Studio at /Applications/Android Studio.app/Contents\n \xe2\x80\xa2 Flutter plugin can be installed from:\n https://plugins.jetbrains.com/plugin/9212-flutter\n \xe2\x80\xa2 Dart plugin can be installed from:\n https://plugins.jetbrains.com/plugin/6351-dart\n \xe2\x80\xa2 Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)\n\n[\xe2\x9c\x93] Connected device (2 available)\n \xe2\x80\xa2 iPhone (mobile) \xe2\x80\xa2 5d5629175f767d234062f6cfae22dc7bd3f5bc1b \xe2\x80\xa2 ios \xe2\x80\xa2 iOS 14.7.1 18G82\n \xe2\x80\xa2 Chrome (web) \xe2\x80\xa2 chrome \xe2\x80\xa2 web-javascript \xe2\x80\xa2 Google Chrome 96.0.4664.110\n\n\xe2\x80\xa2 No issues found!\nRun Code Online (Sandbox Code Playgroud)\nXcode版本:13.2.1
\n模拟器中的 iOS 版本:15.2
\n任何帮助将非常感激。谢谢。
\nRyo*_*han 28
也许这是一个解决方案:
\n请参阅 XCode 上的 \xe3\x80\x8cbuild settings\xe3\x80\x8d 并将 \xe3\x80\x8c 支持的平台:iphoneos\xe3\x80\x8d 更改为 \xe3\x80\x8c 支持的平台:iOS\xe3\x80\x8d。
\n\n| 归档时间: |
|
| 查看次数: |
9050 次 |
| 最近记录: |