Cordoba builds ios but not starting

I have been working with corridor and Android for a long time, everything works,

The thing is, I wanted to add iOS and run the project so that I can check that it’s not working,

The fact is that it builds fine ( log ), but when I start it I get:

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) 

I work with the latest version of El Capitan, cordova and xcode,

What am I missing here?

PS: In the same project, Android builds and launches ...

-Edit -

If I open from xcode, I get:

enter image description here

-Edit -

Now it starts with an emulator from xcode, but still not from the cordova run ios --emulator

+5
source share
1 answer

Try changing file permissions using chmod and chown ... It worked in my case

0
source

Source: https://habr.com/ru/post/1235459/


All Articles