2016-01-13 84 views
1

即時得到這個錯誤運行的iOS模擬器的時候,當我嘗試運行的iOS模擬器嘗試使用流星運行IOS

=> Started proxy.        
=> Started MongoDB.       
=> Started your app.       

=> App running at: http://localhost:3000/  
=> Errors executing Cordova commands: 



    While running Cordova app for platform iOS with options --emulator: 
    Error: Command failed: /Users/paulhayes/code/microscope/.meteor/local/cordova-build/platforms/ios/cordova/run --emulator 
    ENOENT, no such file or directory '/Users/paulhayes/Library/Logs/CoreSimulator/E99C26C3-5BDD-4BBE-A63E-6510238BCC45/system.log' 
    Error code 1 for command: ios-sim with args: 
    launch,/Users/paulhayes/code/microscope/.meteor/local/cordova-build/platforms/ios/build/emulator/microscope.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/paulhayes/code/microscope/.meteor/local/cordova-build/platforms/ios/cordova/console.log,--stdout,/Users/paulhayes/code/microscope/.meteor/local/cordova-build/platforms/ios/cordova/console.log,--exit 
    at ChildProcess.exitCallback (/tools/utils/processes.js:137:23) 
    at ChildProcess.emit (events.js:98:17) 
    at Process.ChildProcess._handle.onexit (child_process.js:820:12) 

ExitWithCode:1 

我已經通過在https://www.meteor.com/tutorials/blaze/running-on-mobile和我列出的步驟走了沒有這樣的文件/目錄信息通過從xcode運行HelloWorld Swift應用程序檢查我的Xcode安裝 - 它工作正常。

任何幫助,將不勝感激

+0

只需嘗試「cordova build ios」,然後從xcode運行項目以查看它是否可用 –

+0

當我嘗試獲取'cordova:command not found'時。構建似乎正在工作,嘗試啓動模擬器時似乎出現問題。我將如何從xcode運行項目? (我打開了哪個目錄?) –

+0

如果不安裝,使用npm install -g Cordova安裝Cordova,一旦你運行run命令,它將創建一個平臺文件夾,在這個文件夾中你會發現Xcode項目 –

回答

0

我有同樣的問題,我花了一天才找到解決方案。短篇小說 -

  1. 確保你沒有的Xcode的任何舊副本系統中的某個地方,尤其是檢查/Recovered\ Items/Applications/目錄。
  2. 檢查您是否在Xcode> Window> Devices中使用與您獲得的錯誤相同的標識符定義的模擬器,例如, E99C26C3-5BDD-4BBE-A63E-6510238BCC45,如果你不需要添加一個匹配的模擬器到列表中,然後吃午飯,這樣就會創建目錄和system.log文件。
相關問題