gpt4 book ai didi

ionic - 尝试使用 Ionic 进行模拟时出现 Xcode-beta 错误

转载 作者:行者123 更新时间:2023-12-04 03:06:21 26 4
gpt4 key购买 nike

我正在尝试开始使用 Ionic,但是当我使用“ionic emulate ios”进行模拟时,控制台会向我显示这个
问题:

No target specified for emulator. Deploying to iPhone-6 simulator
2015-06-19 10:07:59.674 ios-sim[771:9114] stderrPath: /Users/damivazbien/myApp/platforms/ios/cordova/console.log
2015-06-19 10:07:59.674 ios-sim[771:9114] stdoutPath: /Users/damivazbien/myApp/platforms/ios/cordova/console.log
2015-06-19 10:08:00.753 ios-sim[771:9114] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-8114.19/DVTFoundation/PlugInArchitecture/PlugInManager/DVTPlugInManager.m:257
Details: Requested but did not find extension point with identifier Xcode.DVTFoundation.DevicePlatformMapping
Object: <DVTPlugInManager: 0x7fe8faca4b50>
Method: -extensionPointWithIdentifier:
Thread: <NSThread: 0x7fe8fac105e0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Timed out waiting for device to boot" UserInfo=0x7fe8fad0c7a0 {NSLocalizedDescription=Timed out waiting for device to boot}
Error code 1 for command: ios-sim with args: launch,/Users/damivazbien/myApp/platforms/ios/build/emulator/myApp.app,-- devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,-- stderr,/Users/damivazbien/myApp/platforms/ios/cordova/console.log,-- stdout,/Users/damivazbien/myApp/platforms/ios/cordova/console.log,--exit
Error: /Users/damivazbien/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:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)

现在我已经安装了最后一个 Xcode beta

最佳答案

您是否检查过 stderr 日志中的详细信息?

%project_name%/platforms/ios/cordova/console.log

如果您使用 ios9 模拟器并看到白屏,可能您遇到了 ios9 强制使用 https 的问题。

肮脏的方法只是更新到 xcode 项目配置 plist 以禁用 ATS
platforms/ios/%project_name%/%project_name%-Info.plist 

您可以通过将其添加到配置文件来禁用 Apple Transport Security
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>

关于ionic - 尝试使用 Ionic 进行模拟时出现 Xcode-beta 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30939279/

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