我尝试开始使用Ionic,但是当我使用离子仿效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
答案 0 :(得分:2)
您是否在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>
答案 1 :(得分:0)
在使用Xcode 7 SDK构建时,我在Xamarin Studio中收到类似的错误消息。您是否尝试过针对Xcode 6.3.2运行,或者您是否还有另一个理由让您使用Xcode 7 beta运行Ionic?
根据我的经验,最好在尝试使用新工具时保持环境尽可能熟悉,这样可以减少不熟悉的内容,从而更容易进行故障排除。