Project: appceleratorstudio
Issue TISTUD-4079: CLI: Setting --retina flag will render 3.0.2.GA projects unable to launch simulator. 
h5. Description While trying to investigate bugs from the triage meeting, I set the Studio preference to "retina" for the iOS simulator. Attempting to launch in this configuration failed, with an error complaining of a "ridiculous" capacity. This occurs in Studio and in the CLI as well. h5. Console output {code} [DEBUG] Simulator command: "/Users/emerriman/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/iphone/ios-sim" launch "/Users/emerriman/Documents/Appcelerator_Studio_Workspace/Kitchen Sink/build/iphone/build/Debug-iphonesimulator/KitchenSink.app" --sdk 6.1 --family iphone --retina [ERROR] An error occurred running the iOS Simulator [ERROR] 2013-04-02 15:18:49.649 ios-sim[61549:1307] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithCapacity:]: capacity (18446744073709551615) is ridiculous' [ERROR] *** First throw call stack: [ERROR] ( [ERROR] 0 CoreFoundation 0x00007fff88a32b06 __exceptionPreprocess + 198 [ERROR] 1 libobjc.A.dylib 0x00007fff9502d3f0 objc_exception_throw + 43 [ERROR] 2 CoreFoundation 0x00007fff889e3035 -[__NSPlaceholderArray initWithCapacity:] + 245 [ERROR] 3 CoreFoundation 0x00007fff88a13719 +[NSMutableArray arrayWithCapacity:] + 41 [ERROR] 4 ios-sim 0x0000000100003463 -[iPhoneSimulator runWithArgc:argv:] + 2771 [ERROR] 5 ios-sim 0x000000010000373b main + 155 [ERROR] 6 ios-sim 0x0000000100001694 start + 52 [ERROR] ) [ERROR] libc++abi.dylib: terminate called throwing an exception [ERROR] [ERROR] Project failed to build after 42s 901ms {code} h5. Steps to reproduce: 1) Create a project and set tiapp.xml to 3.0.2.GA 2) Run from studio with the retina preference set, or use the CLI "ti -p ios -T simulator --retina" h5. Result: Error as listed above. h5. Expected: Retina iphone simulator launches. h5. Notes: Looking at ios-sim.m, there is a line where the number of args goes negative. There may be some legacy code in 3.0.2.GA where "--retina" was implemented but expects "true".
Story points: 5