Simctl crashes during an attempt to install a nonexistent app.

Originator:iosdeveloperzone
Number:rdar://19916914 Date Originated:22-Feb-2015 12:41 PM
Status:Closed Resolved:31-Mar-2015 11:25 AM, Xcode 6.3 6D554n
Product:Developer Tools Product Version:Xcode 6.1.1 (6A2006), 6.2 (6C121), 6.3 (6D520o)
Classification:Security Reproducible:Always
 
Summary:
simctl crashes on an attempt to install nonexistent file.


Steps to Reproduce:
1) Boot a simulator
2) xcrun simctl install booted '/xxxxxx' where /xxxxxx is a nonexistent file.


Expected Results:
Program should not crash, should exit with appropriate error message (e.g. File ‘/xxxxxx’ does not exist).

Actual Results:
2015-02-22 12:26:54.466 simctl[7476:1007] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff8b17025c __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x00007fff8baf9e75 objc_exception_throw + 43
	2   CoreFoundation                      0x00007fff8b06fdd1 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 385
	3   CoreFoundation                      0x00007fff8b085ad9 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 57
	4   simctl                              0x000000010a5ff6a6 simctl + 13990
	5   simctl                              0x000000010a600d5d simctl + 19805
	6   libdyld.dylib                       0x00007fff844e95fd start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!