gpt4 book ai didi

Cordova 模拟 ios : Invalid device state

转载 作者:行者123 更新时间:2023-12-01 22:20:15 26 4
gpt4 key购买 nike

当我尝试使用sudophonegap run ios --verbose模拟phonegap/cordova项目时,我得到控制台日志:

An error was encountered processing the command (code=146):
Invalid device state

ENOENT, no such file or directory '/Users/<user>/Library/Logs/CoreSimulator/61A2A261-C1D4-4E31-B5DA-4C97191F1656/system.log'

Error code 1 for command: ios-sim with args: launch,/Users/<user>/.../mobile/platforms/ios/build/emulator/Hello World.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-5,--stderr,/Users/<user>/.../mobile/platforms/ios/cordova/console.log,--stdout,/Users/<user>/.../mobile/platforms/ios/cordova/console.log,--exit

Command finished with error code 2: /Users/.../ios/cordova/run --target=iPhone-5

ERROR running one or more of the platforms: Error: /Users/<user>/.../mobile/platforms/ios/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project

并且应用程序无法启动。我可以访问 ios-sim (v4.1.1)、cordova (v5.1.1) 和 phonegap (5.1.1-0.29.0)通过控制台。

另一个奇怪的事情是,当我进入 Intellij 中的运行配置时,出现警告:无法在路径中检测 ios-sim。 XCode 和开发人员工具是最新的。我使用的是 Mac OS X Yosemite。有人可以帮助我吗?

最佳答案

你可以试试

npm install -g ios-sim
npm install -g ios-deploy

关于Cordova 模拟 ios : Invalid device state,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31472955/

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