My recent build error was:
[ERROR] Error: Traceback (most recent call last): File "/Users/username/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py", line 1148, 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 "/Users/username/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py", line 1066, in execute_xcode output = run.run(args,False,False,o) File "/Users/username/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/run.py", line 39, in run sys.exit(rc) SystemExit: 65
This error is a little more advanced and less common than most build errors. So let’s first address the most common issues. If your coding your application and you receive a random error, much like the one above follow the steps below to fix.
1.) Open your app folder where your builder/Resources are located.
2.) Open the build folder
3.) Open the iphone folder
4.) Delete/move all files locate din the iphone folder into the trash.
5.) Make sure you don’t delete the build or iphone folders only the contents of the iphone folder.
Most common build issues can be fixed by doing the first procedure above. However, if that does not fix it our problem is larger than the current app we are working on. Chances are, our problem is more in the core of Titanium. So how do we fix that? Follow the steps of fix #2 below very carefully and make sure you don’t miss a step.
1.) Backup your workspace folders (default in osx is user/documents/Titanium Studio Workspace
2.) Remove/move your Titanium Stuido into the trash.
3.) Even though we’ve removed titanium studio it’s not full gone. So open up your termal in OSX and remove /Users/username/Library/Application Support/Titanium/ the Titanium folder completely from your system. Type cd /Users/username (your usersname)/Library/Application/Support … Then -> rm -r Titanium.
This step completely removes titanium SDk and associated files from your system.
4.) Download Appcelerator Titanium Studio and re-install.
5.) Open Titanium Studio -> Click help -> Download updates/sdk
Fix #1 will help fix the most common build error that you will run into. However, if a larger error occurs then fix #2 will remove titanium from the system and re-install it. Fixing the issue generally 99% of the time.
Thanks for stopping by, and happing coding!