gpt4 book ai didi

ionic-framework - Ionic emulate Ios 无法运行 session 没有打开我的应用程序

转载 作者:行者123 更新时间:2023-12-04 18:37:57 33 4
gpt4 key购买 nike

Ionic emulate ios 在 Mac OS Yosemite 上失败。他们有一些情况是模拟了 ios 设备,但在终端控制台弹出下面的错误消息后不久。

** BUILD SUCCEEDED **

No target specified for emulator. Deploying to iPhone-6 simulator
An error was encountered processing the command (code=146):
Invalid device state
An error was encountered processing the command (code=146):
Exception encountered connecting to CoreSimulatorBridge: Unable to connect to CoreSimulatorBridge
ENOENT, no such file or directory '/Users/yay/Library/Logs/CoreSimulator/2CAA2C39-7F22-4AF2-BBDE-86609188F37C/system.log'
Error code 1 for command: ios-sim with args: launch,/Users/yay/code/myApp/platforms/ios/build/emulator/myApp.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/yay/code/myApp/platforms/ios/cordova/console.log,--stdout,/Users/yay/code/myApp/platforms/ios/cordova/console.log,--exit
Error: /Users/yay/code/myApp/platforms/ios/cordova/run: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

最佳答案

问题是因为您使用 sudo 创建和/或构建项目。

只需输入这些命令(当然没有 $):

1)用sudo删除

$ sudo ionic platform remove ios

2)在没有sudo的情况下重新添加iOS
$ ionic platform add ios

3)运行iOS模拟器
$ ionic emulate ios

来源: https://github.com/driftyco/ionic/issues/4052 (rajkotecha 的评论)

关于ionic-framework - Ionic emulate Ios 无法运行 session 没有打开我的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31280134/

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