View app & ionic emulate problem

After I upload a demo .Then I open the app in iPad. I can not open the demo.Why?


demo ID 4FF29156

Most important.

when i run ionic emulate ios
I got error:
2015-01-30 12:22:02.283 ios-sim[4120:45829] stderrPath: xxxxxxxxxx/platforms/ios/cordova/console.log
2015-01-30 12:22:02.285 ios-sim[4120:45829] stdoutPath: xxxxxxxxxx/platforms/ios/cordova/console.log
2015-01-30 12:22:03.104 ios-sim[4120:45829] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/DVTiOSFrameworks/DVTiOSFrameworks-6274/DVTiPhoneSimulatorRemoteClient/DTiPhoneSimulatorSessionConfig.m:143
Details: (runtime) should not be nil.
Object:
Method: +rootWithSimRuntime:
Thread: <NSThread: 0x7fcb61510360>{number = 1, name = main}
Hints: None
Backtrace:
0 0x000000010914124a -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 0x0000000109140c9f _DVTAssertionHandler (in DVTFoundation)
2 0x0000000109140f8e _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010971d614 +[DTiPhoneSimulatorSystemRoot rootWithSimRuntime:] (in DVTiPhoneSimulatorRemoteClient)
4 0x000000010971c897 -[DTiPhoneSimulatorSessionConfig simulatedSystemRoot] (in DVTiPhoneSimulatorRemoteClient)
5 0x0000000107258ab0 -[iPhoneSimulator launchApp:withFamily:uuid:environment:stdoutPath:stderrPath:timeout:args:] at /usr/local/lib/node_modules/ios-sim/Source/iPhoneSimulator.m:370 (in ios-sim)
6 0x0000000107259cfd -[iPhoneSimulator runWithArgc:argv:] at /usr/local/lib/node_modules/ios-sim/Source/iPhoneSimulator.m:572 (in ios-sim)
7 0x0000000107259fbb main at /usr/local/lib/node_modules/ios-sim/Source/main.m:15 (in ios-sim)
8 0x000000010725737c start (in ios-sim)
xxxxxxxxxx/platforms/ios/cordova/run: line 136: 4120 Abort trap: 6 ios-sim launch “$SIMULATOR_APP_PATH” --stderr “$CORDOVA_PATH/console.log” --stdout “$CORDOVA_PATH/console.log” --devicetypeid com.apple.CoreSimulator.SimDeviceType.$TARGET --exit
Error: xxxxxxxxxx/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:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)

@mhartington
ionic -v 1.3.3,
cordova -v 4.2.0,
ios-sim --version 3.1.1,
Xcode 6.1.1.

Hmm, as for for the view app, I’m not sure. I tried it myself and didn’t have an issue.
Do you have the most recent version?

For not being able to emulate, can you run this

$ionic emulate ios -d

copy and past the out put from that

I copy all the information
Generating config.xml from defaults for platform “ios”
Calling plugman.prepare for platform “ios”
Preparing ios project
Processing configuration changes for plugins.
Iterating over installed plugins: [ ‘com.ionic.keyboard’,
‘org.apache.cordova.console’,
‘org.apache.cordova.device’ ]
Writing out cordova_plugins.js…
Wrote out iOS Bundle Identifier to “com.ionicframework.simos873415”
Wrote out iOS Bundle Version to “0.0.1”
iOS Product Name has not changed (still “Simos”)
Running command: /Users/raven/desktop/Code/Ionic/Simos/hooks/after_prepare/010_add_platform_class.js /Users/raven/desktop/Code/Ionic/Simos
add to body class: platform-ios
Command finished with error code 0: /Users/raven/desktop/Code/Ionic/Simos/hooks/after_prepare/010_add_platform_class.js /Users/raven/desktop/Code/Ionic/Simos
Running command: /Users/raven/desktop/Code/Ionic/Simos/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/raven/desktop/Code/Ionic/Simos
Command finished with error code 0: /Users/raven/desktop/Code/Ionic/Simos/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/raven/desktop/Code/Ionic/Simos
Running command: /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/cordova/run --emulator
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator
SDKROOT = iphonesimulator8.1
SHARED_PRECOMPS_DIR = /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/sharedpch
VALID_ARCHS = i386

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

Check dependencies

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

Check dependencies

PhaseScriptExecution Copy\ www\ directory build/Simos.build/Debug-iphonesimulator/Simos.build/Script-304B58A110DAC018002A0835.sh
cd /Users/raven/Desktop/Code/Ionic/Simos/platforms/ios
/bin/sh -c /Users/raven/Desktop/Code/Ionic/Simos/platforms/ios/build/Simos.build/Debug-iphonesimulator/Simos.build/Script-304B58A110DAC018002A0835.sh

real 0m14.157s
user 0m1.354s
sys 0m2.912s

ProcessInfoPlistFile /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator/Simos.app/Info.plist Simos/Simos-Info.plist
cd /Users/raven/Desktop/Code/Ionic/Simos/platforms/ios
export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/raven/documents/android-sdk-macosx/tools:/Users/raven/documents/android-sdk-macosx/platform-tools”
builtin-infoPlistUtility /Users/raven/Desktop/Code/Ionic/Simos/platforms/ios/Simos/Simos-Info.plist -genpkginfo /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator/Simos.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -additionalcontentfile /Users/raven/Desktop/Code/Ionic/Simos/platforms/ios/build/Simos.build/Debug-iphonesimulator/Simos.build/MainViewController-PartialInfo.plist -o /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator/Simos.app/Info.plist

GenerateDSYMFile /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator/Simos.app.dSYM /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator/Simos.app/Simos
cd /Users/raven/Desktop/Code/Ionic/Simos/platforms/ios
export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/raven/documents/android-sdk-macosx/tools:/Users/raven/documents/android-sdk-macosx/platform-tools”
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator/Simos.app/Simos -o /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator/Simos.app.dSYM

Touch /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator/Simos.app
cd /Users/raven/Desktop/Code/Ionic/Simos/platforms/ios
export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/raven/documents/android-sdk-macosx/tools:/Users/raven/documents/android-sdk-macosx/platform-tools”
/usr/bin/touch -c /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/build/emulator/Simos.app

** BUILD SUCCEEDED **

2015-01-31 01:18:44.811 ios-sim[6183:272350] stderrPath: /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/cordova/console.log
2015-01-31 01:18:44.815 ios-sim[6183:272350] stdoutPath: /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/cordova/console.log
2015-01-31 01:18:46.990 ios-sim[6183:272350] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/DVTiOSFrameworks/DVTiOSFrameworks-6274/DVTiPhoneSimulatorRemoteClient/DTiPhoneSimulatorSessionConfig.m:143
Details: (runtime) should not be nil.
Object:
Method: +rootWithSimRuntime:
Thread: <NSThread: 0x7ff2c1c05820>{number = 1, name = main}
Hints: None
Backtrace:
0 0x00000001024ca24a -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 0x00000001024c9c9f _DVTAssertionHandler (in DVTFoundation)
2 0x00000001024c9f8e _DVTAssertionFailureHandler (in DVTFoundation)
3 0x0000000102a89614 +[DTiPhoneSimulatorSystemRoot rootWithSimRuntime:] (in DVTiPhoneSimulatorRemoteClient)
4 0x0000000102a88897 -[DTiPhoneSimulatorSessionConfig simulatedSystemRoot] (in DVTiPhoneSimulatorRemoteClient)
5 0x000000010053fab0 -[iPhoneSimulator launchApp:withFamily:uuid:environment:stdoutPath:stderrPath:timeout:args:] at /usr/local/lib/node_modules/ios-sim/Source/iPhoneSimulator.m:370 (in ios-sim)
6 0x0000000100540cfd -[iPhoneSimulator runWithArgc:argv:] at /usr/local/lib/node_modules/ios-sim/Source/iPhoneSimulator.m:572 (in ios-sim)
7 0x0000000100540fbb main at /usr/local/lib/node_modules/ios-sim/Source/main.m:15 (in ios-sim)
8 0x000000010053e37c start (in ios-sim)
/Users/raven/desktop/Code/Ionic/Simos/platforms/ios/cordova/run: line 136: 6183 Abort trap: 6 ios-sim launch “$SIMULATOR_APP_PATH” --stderr “$CORDOVA_PATH/console.log” --stdout “$CORDOVA_PATH/console.log” --devicetypeid com.apple.CoreSimulator.SimDeviceType.$TARGET --exit
Command finished with error code 134: /Users/raven/desktop/Code/Ionic/Simos/platforms/ios/cordova/run --emulator

Error: /Users/raven/desktop/Code/Ionic/Simos/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:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)

Hmm alright lets try this.

Can you start the ios-simulator with ios sim?

$ ios-sim start

If that starts fine, lets try with a new project.

$ ionic start tmp &cd tmp
$ ionic platform add ios
$ ionic emulate ios

If that works, then it maybe an issue with your current project.
You may need to remove your current project and then add it back.

$ ionic platform rm ios 
$ ionic platform add ios

Thank you. When I add simulators in Xcode by myself. It works. :smile:

1 Like

Thanks for the post. I’m also having similar issue. When i typed in ios-sim start, i get the follow

$ ios-sim start
2015-02-26 23:21:58.452 ios-sim[24245:1306544] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/DVTiOSFrameworks/DVTiOSFrameworks-6274/DVTiPhoneSimulatorRemoteClient/DTiPhoneSimulatorSessionConfig.m:143
Details:  (runtime) should not be nil.
Object:   <DTiPhoneSimulatorSystemRoot>
Method:   +rootWithSimRuntime:
Thread:   <NSThread: 0x7fbd634107e0>{number = 1, name = main}
Hints: None
Backtrace:
  0  0x00000001049c424a -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1  0x00000001049c3c9f _DVTAssertionHandler (in DVTFoundation)
  2  0x00000001049c3f8e _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x0000000104f34614 +[DTiPhoneSimulatorSystemRoot rootWithSimRuntime:] (in DVTiPhoneSimulatorRemoteClient)
  4  0x0000000104f33897 -[DTiPhoneSimulatorSessionConfig simulatedSystemRoot] (in DVTiPhoneSimulatorRemoteClient)
  5  0x0000000102b04ab0 -[iPhoneSimulator launchApp:withFamily:uuid:environment:stdoutPath:stderrPath:timeout:args:] at /usr/local/lib/node_modules/ios-sim/Source/iPhoneSimulator.m:370 (in ios-sim)
  6  0x0000000102b05cfd -[iPhoneSimulator runWithArgc:argv:] at /usr/local/lib/node_modules/ios-sim/Source/iPhoneSimulator.m:572 (in ios-sim)
  7  0x0000000102b05fbb main at /usr/local/lib/node_modules/ios-sim/Source/main.m:15 (in ios-sim)
  8  0x0000000102b0337c start (in ios-sim)
  9  0x0000000000000002
Abort trap: 6

Please advice!

Thanks!

Justin

I got ios-sim start error because I remove IOS simulator from x-code .
After I add again , it works well.

open xcode–>windows–>Devices …

And try

ionic info

OS: Mac OS X Yosemite
Node Version: v0.12.0
Cordova CLI: 4.2.0
Ionic CLI Version: 1.3.11
Xcode version: Xcode 6.1.1 Build version 6A2008a
ios-sim version: 3.1.1

:grinning: