2015-11-08 53 views
5

我一直在科爾多瓦& Android平臺,現在一段時間,一切正常,科爾多瓦建立IOS,但不會跑

的事情是,我想補充IOS和運行項目,所以我可以檢查準備這是行不通的,

的事情是,它建立精(log),但運行時我得到:

Running command: /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/cordova/run --emulator 
Building project : /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/funcook.xcodeproj 
    Configuration : Debug 
    Platform  : emulator 
Build settings from command line: 
    ARCHS = i386 
    CONFIGURATION_BUILD_DIR = /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/emulator 
    SDKROOT = iphonesimulator9.1 
    SHARED_PRECOMPS_DIR = /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/sharedpch 
    VALID_ARCHS = i386 

Build settings from configuration file '/Users/toniweb/Proyectos/cordova/funcook/platforms/ios/cordova/build-debug.xcconfig': 
    CODE_SIGN_IDENTITY = iPhone Developer 
    ENABLE_BITCODE = NO 

=== BUILD TARGET CordovaLib OF PROJECT CordovaLib WITH CONFIGURATION Debug === 

Check dependencies 

=== BUILD TARGET funcook OF PROJECT funcook WITH CONFIGURATION Debug === 

Check dependencies 

PhaseScriptExecution Copy\ www\ directory build/funcook.build/Debug-iphonesimulator/funcook.build/Script-304B58A110DAC018002A0835.sh 
    cd /Users/toniweb/Proyectos/cordova/funcook/platforms/ios 
    /bin/sh -c /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/funcook.build/Debug-iphonesimulator/funcook.build/Script-304B58A110DAC018002A0835.sh 

ProcessInfoPlistFile build/emulator/funcook.app/Info.plist funcook/funcook-Info.plist 
    cd /Users/toniweb/Proyectos/cordova/funcook/platforms/ios 
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" 
    builtin-infoPlistUtility /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/funcook/funcook-Info.plist -genpkginfo /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/emulator/funcook.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -additionalcontentfile /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/funcook.build/Debug-iphonesimulator/funcook.build/MainViewController-PartialInfo.plist -o /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/emulator/funcook.app/Info.plist 

GenerateDSYMFile build/emulator/funcook.app.dSYM build/emulator/funcook.app/funcook 
    cd /Users/toniweb/Proyectos/cordova/funcook/platforms/ios 
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/emulator/funcook.app/funcook -o /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/emulator/funcook.app.dSYM 

Touch build/emulator/funcook.app 
    cd /Users/toniweb/Proyectos/cordova/funcook/platforms/ios 
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" 
    /usr/bin/touch -c /Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/emulator/funcook.app 

** BUILD SUCCEEDED ** 

No target specified for emulator. Deploying to iPhone-6 simulator 
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=159): 
Invalid device state 
ENOENT, no such file or directory '/var/root/Library/Logs/CoreSimulator/759B7226-A331-436D-8189-310317E9BD87/system.log' 
Error code 1 for command: ios-sim with args: launch,/Users/toniweb/Proyectos/cordova/funcook/platforms/ios/build/emulator/funcook.app,--devicetypeid,com.apple.CoreSimulator.SimDeviceType.iPhone-6,--stderr,/Users/toniweb/Proyectos/cordova/funcook/platforms/ios/cordova/console.log,--stdout,/Users/toniweb/Proyectos/cordova/funcook/platforms/ios/cordova/console.log,--exit 
Error: /Users/toniweb/Proyectos/cordova/funcook/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:139:23) 
    at ChildProcess.EventEmitter.emit (events.js:98:17) 
    at maybeClose (child_process.js:753:16) 
    at Process.ChildProcess._handle.onexit (child_process.js:820:5) 

我與埃爾卡皮坦,科爾多瓦和Xcode中,

的最新版本

我在這裏錯過了什麼?

PS:在同一個項目的Android構建並運行...

CNC中

如果我在Xcode中打開我得到:

enter image description here

CNC中

現在它運行在Xcode的模擬器上,但仍然沒有從終端cordova run ios --emulator

+0

你有多個xcode版本嗎?嘗試打開xcode項目(它在平臺/ ios中,雙擊.xcodeproj)如果你最近更新它可能正在等待你接受條款 – jcesarmobile

+0

我在上面,我通過xcode而不是終端(loading ..) –

+0

它似乎沒有工作或提示任何接受窗口... –

回答

0

嘗試使用chmod和chown更改文件權限... 它適用於我的情況

+0

你如何建議我應該嘗試? –

+0

試試這個'sudo chmod 775/path/to/file' – Giri

+0

什麼文件...? –