appToStart.bundleID is empty. Cannot launch simulator. However XCode can.
XCode 4.5.2
Build - OK
Launch simulator - OK
AppCode 1.6.4
Build - OK
Launch simulator - Failed.
The reason is appToStart.bundleID should be a non-empty string, but it is nil
Actually Bundle Idenfier is not empty. It's a hard coded value.
I guess it's because of Bundle Display Name or Bundle Identifier contains russian or special characters like quastion mark.
Any ideas?
Message from AppCode:
"/Users/imochalov/Library/Caches/appCode10/DerivedData/BookKate-36b18a76/Build/Products/Debug-iphonesimulator/Eng Name - Рус Имя.app/Eng Name - Рус Имя"
2012-12-19 01:13:25.264 simlauncher[6132:707] ASSERTION FAILURE in /SourceCache/iPhoneSimulatorRemoteClient/iPhoneSimulatorRemoteClient-50/Source/DTiPhoneSimulatorSession.m:381
Details: appToStart.bundleID should be a non-empty string, but it is nil
Object: <DTiPhoneSimulatorSession: 0x10011a7b0>
Method: -_fillSessionStartRequestInfo:fromConfig:withError:
Thread: <NSThread: 0x10010d230>{name = (null), num = 1}
Backtrace:
0 0x0000000100029581 -[DTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsFoundation)
1 0x0000000100029203 _DTAssertionFailureHandler (in DevToolsFoundation)
2 0x0000000100007209 -[DTiPhoneSimulatorSession _fillSessionStartRequestInfo:fromConfig:withError:] (in iPhoneSimulatorRemoteClient)
3 0x0000000100006f49 -[DTiPhoneSimulatorSession _startSessionInSimulatorWithError:] (in iPhoneSimulatorRemoteClient)
4 0x0000000100006838 -[DTiPhoneSimulatorSession _handleSimulatorReadyMessage:] (in iPhoneSimulatorRemoteClient)
5 0x00007fff8aa5d5cc ____CFXNotificationPostToken_block_invoke_0 (in CoreFoundation)
6 0x00007fff8a9be272 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
7 0x00007fff8a97ea4f __CFRunLoopDoBlocks (in CoreFoundation)
8 0x00007fff8a9a3220 __CFRunLoopRun (in CoreFoundation)
9 0x00007fff8a9a26b2 CFRunLoopRunSpecific (in CoreFoundation)
10 0x00007fff8a3d689e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation)
11 0x00007fff8a36f18a -[NSRunLoop(NSRunLoop) run] (in Foundation)
12 0x00000001000018be main (in simlauncher)
13 0x000000010000117c start (in simlauncher)
2012-12-19 01:13:25.266 simlauncher[6132:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'ASSERTION FAILURE in /SourceCache/iPhoneSimulatorRemoteClient/iPhoneSimulatorRemoteClient-50/Source/DTiPhoneSimulatorSession.m:381
Details: appToStart.bundleID should be a non-empty string, but it is nil
Object: <DTiPhoneSimulatorSession: 0x10011a7b0>
Method: -_fillSessionStartRequestInfo:fromConfig:withError:
Thread: <NSThread: 0x10010d230>{name = (null), num = 1}
Backtrace:
0 0x0000000100029581 -[DTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsFoundation)
1 0x0000000100029203 _DTAssertionFailureHandler (in DevToolsFoundation)
2 0x0000000100007209 -[DTiPhoneSimulatorSession _fillSessionStartRequestInfo:fromConfig:withError:] (in iPhoneSimulatorRemoteClient)
3 0x0000000100006f49 -[DTiPhoneSimulatorSession _startSessionInSimulatorWithError:] (in iPhoneSimulatorRemoteClient)
4 0x0000000100006838 -[DTiPhoneSimulatorSession _handleSimulatorReadyMessage:] (in iPhoneSimulatorRemoteClient)
5 0x00007fff8aa5d5cc ____CFXNotificationPostToken_block_invoke_0 (in CoreFoundation)
6 0x00007fff8a9be272 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
7 0x00007fff8a97ea4f __CFRunLoopDoBlocks (in CoreFoundation)
8 0x00007fff8a9a3220 __CFRunLoopRun (in CoreFoundation)
9 0x00007fff8a9a26b2 CFRunLoopRunSpecific (in CoreFoundation)
10 0x00007fff8a3d689e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation)
11 0x00007fff8a36f18a -[NSRunLoop(NSRunLoop) run] (in Foundation)
12 0x00000001000018be main (in simlauncher)
13 0x000000010000117c start (in simlauncher)
'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8aa010a6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff95afb3f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8aa95229 -[NSException raise] + 9
3 DevToolsFoundation 0x0000000100029203 _DTAssertionFailureHandler + 343
4 iPhoneSimulatorRemoteClient 0x0000000100007209 -[DTiPhoneSimulatorSession _fillSessionStartRequestInfo:fromConfig:withError:] + 502
5 iPhoneSimulatorRemoteClient 0x0000000100006f49 -[DTiPhoneSimulatorSession _startSessionInSimulatorWithError:] + 203
6 iPhoneSimulatorRemoteClient 0x0000000100006838 -[DTiPhoneSimulatorSession _handleSimulatorReadyMessage:] + 219
7 CoreFoundation 0x00007fff8aa5d5cc ____CFXNotificationPostToken_block_invoke_0 + 284
8 CoreFoundation 0x00007fff8a9be272 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 18
9 CoreFoundation 0x00007fff8a97ea4f __CFRunLoopDoBlocks + 255
10 CoreFoundation 0x00007fff8a9a3220 __CFRunLoopRun + 1904
11 CoreFoundation 0x00007fff8a9a26b2 CFRunLoopRunSpecific + 290
12 Foundation 0x00007fff8a3d689e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
13 Foundation 0x00007fff8a36f18a -[NSRunLoop(NSRunLoop) run] + 74
14 simlauncher 0x00000001000018be main + 501
15 simlauncher 0x000000010000117c start + 52
)
libc++abi.dylib: terminate called throwing an exception
Process finished with exit code 134
请先登录再写评论。
Ivan,
first, try cleaning Derived Dir in Xcode (Hold Option key in Product menu and select Clean Derived Dir action) and rebuilding the app - will it run correctly?
After that try cleaning '~/Preferences/Caches/appCodeXX/DerivedDir' and rebuilding and running the app in AppCode.
If the problem persists, please try isolating it in a sample project and attach it to a bug report - we'll investigate ASAP.
Unfortunately, it doesn't work.
XCode builds and simulator works fine. But AppCode doesn't.
I've created a simple project by removing code and names from the original one. Now it's super small and the issue appears still.
Bug # OC-6049
http://youtrack.jetbrains.com/issue/OC-6049
Hi Anton,
AppCode2.0 EAP also have this issue.
I found the walk around solution for this issue.
The same bug was reprodued when I set the system language th Chinese.
And if the system default language is English, the bug disappeared and the simulator can work triggered by AppCode.