我一直在使用cordova Android一段时间了,一切正常, 问题是我想添加IOS并运行项目,所以我可以检查准备工作, 事情是,它建立良好(log),但在运行时,我得到: Running command: /Users/toniweb/Proyectos/
问题是我想添加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)
我正在使用最新版本的El Capitan,cordova和xcode,
我在这里错过了什么?
PS:在同一个项目中Android构建和运行……
-编辑-
如果我从xcode打开,我得到:
-编辑-
现在它运行来自xcode的模拟器,但仍然没有从终端cordova运行ios –emulator
尝试使用chmod和chown更改文件权限… 它适用于我的情况