2015-06-19 11 views
4

儘量模仿我試着開始使用離子但是當我與'離子模擬內部監督辦公室的模擬控制檯顯示此 問題:的Xcode-β錯誤時,離子

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測試版

回答

0

在使用Xcode 7 SDK構建時,Xamarin Studio中出現類似的錯誤消息。您是否嘗試過使用Xcode 6.3.2運行,或者您有另一個很好的理由說明爲什麼您要使用Xcode 7 beta運行Ionic?

根據我的經驗,最好在嘗試新工具時儘可能保持熟悉的環境,不要陌生的東西進行,因此更容易排除故障。

+2

這是安裝OSX 10.11測試版可能OP,這意味着OP只能運行Xcode 7 beta,Xcode 6與El Capitan不兼容。我做了同樣的事情,並在RubyMotion中收到同樣的錯誤。 – Jurgen

+1

發現我可以暫時將以下內容添加到RubyMotion的Rakefile中:'app.info_plist ['NSAppTransportSecurity'] = {'NSAllowsArbitraryLoads'=> true}'。必須記住做正確的事情,併爲生產構建info.plist添加適當的例外。 – Jurgen

2

您是否在stderr日誌中查看詳細信息?

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

如果您使用ios9模擬器並查看白屏,可能您面臨的問題是ios9強制使用https。

骯髒的辦法就是通過增加這配置文件更新到Xcode項目配置的plist禁用ATS

platforms/ios/%project_name%/%project_name%-Info.plist 

您可以禁用蘋果交通運輸安全

<key>NSAppTransportSecurity</key> 
<dict> 
    <key>NSAllowsArbitraryLoads</key> 
    <true/> 
</dict> 
<key>NSLocationWhenInUseUsageDescription</key> 
<string></string> 
+0

他的模擬器無法啓動。這不是構建或應用程序運行時錯誤。我不諱言Apple Transport Security與此有關。 – jorisw