gpt4 book ai didi

ios - Flutter.io (dart) 应用程序无法在 iOS 模拟器上启动

转载 作者:行者123 更新时间:2023-12-05 07:39:00 24 4
gpt4 key购买 nike

我有最新的 OSX Sierra、带有适用插件的最新 XCode,以及打开并准备就绪的 iPhone 6 模拟器。

我已按照 https://flutter.io/setup-macos/#ios-setup 上的所有说明进行操作.

当我从终端“flutter run”时,应用程序无法在模拟器上安装并显示消息:

无法为模拟器构建应用程序。在 iPhone 6 上启动应用程序时出错。

这是终端所说的...


            Launching lib/main.dart on iPhone 6 in debug mode...
Running pod install... 8.5s
Running Xcode build... 24.1s
Failed to build iOS app
Error output from Xcode build:

2017-11-22 13:13:38.122 xcodebuild[47659:25935636] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-13510/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757
Details: unexpected successful exit code from cancelled command <C0009:'CpResource app.flx':P12>
Object: <PBXTargetBuildContext: 0x7fccf1235200>
Method: -createCommandInvocationRecordFromInvocation:
Thread: <NSThread: 0x7fccf2847ea0>{number = 16, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **


The following build commands failed:
CopyPlistFile /Users/deborah/Desktop/chq_emulator/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist Runner/GoogleService-Info.plist
(1 failure)
Xcode's output:

Build settings from command line:
ARCHS = x86_64
BUILD_DIR = /Users/deborah/Desktop/chq_emulator/build/ios
ONLY_ACTIVE_ARCH = YES
SDKROOT = iphonesimulator11.1

=== CLEAN TARGET leveldb-library OF PROJECT Pods WITH CONFIGURATION Debug ===
... list of subsidiary infomation ...

Could not build the application for the simulator.
Error launching application on iPhone 6.

还有其他人对如何让 Flutter 在模拟器上运行有建议吗?

最佳答案

首先尝试运行您的 Xcode 并确保它是最新的。打开在 Xcode 上构建的 {flutter_project}/ios,然后尝试从那里在模拟器上运行 iOS 项目。

如果仍有问题,您可以在终端上运行此命令。这应该设置事件开发人员目录的路径。

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

关于ios - Flutter.io (dart) 应用程序无法在 iOS 模拟器上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47443739/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com