I'm trying to prepare an application for IOS6 release and have installed Xcode 4.5 and Ti SDK 2.1.3.v20120921141611 installed
I did not create the original application we have taken over the maintenance and enhancement of it and am learning what it does etc.
When I launch any objective C app in the simulator via x-code it works fine, but running this app through titanium I get the error below, I've reduced the code to literally "hello world" and am still getting the error below.. any clues would be very helpful :)
[INFO] Launching application in Simulator 2012-09-21 18:02:28.525 ios-sim[3718:d07] _developerFolderPath(): Bundle not found for DevToolsFoundation_BundleIdentifier. 2012-09-21 18:02:28.551 ios-sim[3718:d07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: DTDeveloperDirDeveloperDomain)' *** First throw call stack: ( 0 CoreFoundation 0x00007fff953a5f56 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8e073d5e objc_exception_throw + 43 2 CoreFoundation 0x00007fff953a5d8a +[NSException raise:format:arguments:] + 106 3 CoreFoundation 0x00007fff953a5d14 +[NSException raise:format:] + 116 4 CoreFoundation 0x00007fff95362c4b -[__NSCFDictionary setObject:forKey:] + 219 5 DevToolsFoundation 0x000000010001bda5 -[DTDeveloperPaths _developerFolderPath] + 409 6 DevToolsFoundation 0x000000010001b962 -[DTDeveloperPaths _pathForDirectory:inDomain:forVersionPathComponent:] + 290 7 DevToolsFoundation 0x000000010001b704 -[DTDeveloperPaths preferredPathForDirectory:inDomains:forToolsVersion:] + 205 8 iPhoneSimulatorRemoteClient 0x000000010000c720 +[DTiPhoneSimulatorSystemRoot knownRoots] + 164 9 ios-sim 0x0000000100002cf0 -[iPhoneSimulator runWithArgc:argv:] + 864 10 ios-sim 0x000000010000373b main + 155 11 ios-sim 0x0000000100001694 start + 52 12 ??? 0x0000000000000007 0x0 + 7 )
Be sure the xCode command line tools were installed. This has been an extra download in the past, but 4.5 mage have changed that.
xcode-select from the command line to see which xcode is being used, to ensure that titanium, which works from the command line via the python scripts, is using the right install.
I downloaded the command line tools and switched to /Applications/Xcode.app/Contents/Developer
I've already linked my /Developer folders to /Applications/XCode.app/Contents/Developer/
I'm still getting the same error so assume the simulator files I need are missing from my SDK...
I found this thread where it suggested you download some simulator files and copy them to the SDK folders :
However that sim zip is obviously for xcode 4.3, is that something else I need to do ?
Btw, I had already done this :
Think you can help? Login to answer this question!