I upgraded my ionic framework in my MacBook using “npm update -g ionic” last night around 10:30pm, I build my app successfully using “ionic build ios”.
However when I try to launch the iOS emulator with “ionic emulate ios” it did not work, it build successfully but it was not able to launch the iOS emulator
gibrans-macbook:CLMobile $ ionic emulate ios
Running command: /Users//Mobility/<ionic_app>/Hybrid-iOS/CLMobile/hooks/after_prepare/010_add_platform_class.js /Users//Mobility/<ionic_app>/Hybrid-iOS/CLMobile
add to body class: platform-ios
Running command: /Users//Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/cordova/run --emulator
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/build/emulator
SDKROOT = iphonesimulator8.0
VALID_ARCHS = i386
=== BUILD TARGET CordovaLib OF PROJECT CordovaLib WITH CONFIGURATION Debug ===
Check dependencies
2014-09-30 22:29:16.817 xcodebuild[8110:4e03] DeveloperPortal: Using pre-existing current store at URL (file:///Users//Library/Developer/Xcode/DeveloperPortal%206.0.1.db).
=== BUILD TARGET <ionic_app> OF PROJECT <ionic_app> WITH CONFIGURATION Debug ===
Check dependencies
PhaseScriptExecution Copy\ www\ directory build/<ionic_app>.build/Debug-iphonesimulator/<ionic_app>.build/Script-304B58A110DAC018002A0835.sh
cd /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios
/bin/sh -c /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/build/<ionic_app>.build/Debug-iphonesimulator/<ionic_app>.build/Script-304B58A110DAC018002A0835.sh
real 0m2.161s
user 0m0.335s
sys 0m0.766s
ProcessInfoPlistFile build/emulator/<ionic_app>.app/Info.plist <ionic_app>/<ionic_app>-Info.plist
cd /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/<user>/Android/sdk/platform-tools:/Users/<user>/Android/sdk/tools:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/gradle-2.0/bin:/usr/local/apache-maven-3.2.3/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin:/Users/<user>/Tomcat/apache-tomcat-8.0.12/bin:/Users/<user>/.rvm/bin"
builtin-infoPlistUtility /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/<ionic_app>/<ionic_app>-Info.plist -genpkginfo /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/build/emulator/<ionic_app>.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -additionalcontentfile /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/build/<ionic_app>.build/Debug-iphonesimulator/<ionic_app>.build/MainViewController-PartialInfo.plist -o /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/build/emulator/<ionic_app>.app/Info.plist
GenerateDSYMFile build/emulator/<ionic_app>.app.dSYM build/emulator/<ionic_app>.app/<ionic_app>
cd /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/<user>/Android/sdk/platform-tools:/Users/<user>/Android/sdk/tools:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/gradle-2.0/bin:/usr/local/apache-maven-3.2.3/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin:/Users/<user>/Tomcat/apache-tomcat-8.0.12/bin:/Users/<user>/.rvm/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/build/emulator/<ionic_app>.app/<ionic_app> -o /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/build/emulator/<ionic_app>.app.dSYM
Touch build/emulator/<ionic_app>.app
cd /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/<user>/Android/sdk/platform-tools:/Users/<user>/Android/sdk/tools:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/gradle-2.0/bin:/usr/local/apache-maven-3.2.3/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin:/Users/<user>/Tomcat/apache-tomcat-8.0.12/bin:/Users/<user>/.rvm/bin"
/usr/bin/touch -c /Users/<user>/Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/build/emulator/<ionic_app>.app
** BUILD SUCCEEDED **
2014-09-30 22:29:19.694 ios-sim[8410:507] stderrPath: /Users//Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/cordova/console.log
2014-09-30 22:29:19.696 ios-sim[8410:507] stdoutPath: /Users//Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/cordova/console.log
2014-09-30 22:29:20.015 ios-sim[8410:507] -[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fe43ad07d90
2014-09-30 22:29:20.026 ios-sim[8410:507] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSArrayM localizedDescription]: unrecognized selector sent to instance 0x7fe43ad07d90’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff84f6925c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff824f9e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff84f6c12d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff84ec7272 forwarding + 1010
4 CoreFoundation 0x00007fff84ec6df8 _CF_forwarding_prep_0 + 120
5 ios-sim 0x0000000100ad8e29 -[iPhoneSimulator LoadSimulatorFramework:] + 245
6 ios-sim 0x0000000100ada8e0 -[iPhoneSimulator runWithArgc:argv:] + 2271
7 ios-sim 0x0000000100adacb2 main + 101
8 ios-sim 0x0000000100ad8ce4 start + 52
9 ??? 0x000000000000000b 0x0 + 11
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Users//Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/cordova/run: line 158: 8410 Abort trap: 6 ios-sim launch “$SIMULATOR_APP_PATH” --stderr “$CORDOVA_PATH/console.log” --stdout “$CORDOVA_PATH/console.log” $TARGET_FLAG --exit
Error: /Users//Mobility/<ionic_app>/Hybrid-iOS/CLMobile/platforms/ios/cordova/run: Command failed with exit code 134
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131: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)
gibrans-macbook:CLMobile $