When a new SDK is selected in Studio, and the project is saved and a run is attempted, and error will occur:
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.03360/iphone/builder.py", line 1162, in main
execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s" % (log_id,sdk_version,debugstr)],False)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.03360/iphone/builder.py", line 1080, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.03360/iphone/run.py", line 39, in run
Steps to reproduce:
1) Launch studio
2) Create a new mobile project with iOS targets
3) Run project in simulator or on device
4) Choose a new SDK and save Tiapp.xml
5) Attempt to run on device or in the simulator
Failure with an error as listed above
THe build completes and runs as expected.
The workaround is to clean the project and run again. It will be successful.