Problem
If a character return/line feed is anywhere in the description field of the TIAPP.xml, compilation fails.
Steps to Reproduce
1. Create a new blank project.
2. Edit the project settings in TIAPP.xml (or use attached file)
3. Add a multi-line description using char returns/line breaks.
4. Build for simulators/emulators
5. Observe errors below
Logs
[ERROR] /Users/sfeather/Documents/Developer/Titanium Studio Workspace/evangelapps-church/build/iphone/main.m:16:47: error: unexpected '@' in program [1]
[ERROR] /Users/sfeather/Documents/Developer/Titanium Studio Workspace/evangelapps-church/build/iphone/main.m:18:44: error: expected ';' after top level declarator [1]
[ERROR] /Users/sfeather/Documents/Developer/Titanium Studio Workspace/evangelapps-church/build/iphone/main.m:18:45: error: unexpected '@' in program [1]
[ERROR]
[ERROR] Error: Traceback (most recent call last):
Line 16 NSString * const TI_APPLICATION_DESCRIPTION = @"EvangelApps Church Framework
Line 17 Builds with 1.7.5";
Line 18 NSString * const TI_APPLICATION_COPYRIGHT = @"2011 by EvangelApps LLC";
[ERROR] Error(s) compiling generated Java code
[ERROR] /Users/sfeather/Documents/Developer/Titanium Studio Workspace/evangelapps-church/build/android/gen/com/evangelapps/church/EvangelappsChurchAppInfo.java:55: unclosed string literal
Line 54 public String getDescription() {
Line 55 return "EvangelApps Church Framework
Line 56 Builds with 1.7.5";
Line 57 }
Thanks for raising this ticket. It's not clear what this issue is, however, or how to reliably reproduce it. Please add a proper description and an tiapp.xml file to the main body of the ticket. All the fields must be complete. Please check it against the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist), and add any missing information. I will mark this resolved for now. Please reopen it once it is complete, and I will move it to the main project. Cheers
This bug continues to exists in 2.1.2 and is still tripping people up 6 months later: http://developer.appcelerator.com/question/133742/cant-run-my-app-anymore-on-ios-simulator#
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/3349 3.0.X pull request: https://github.com/appcelerator/titanium_mobile/pull/3350
Tested on: Titanium Studio, build: 3.0.0.201212131639 Titanium SDK, build 3.0.0.v20121212184921 MacBookPro 10.8.2 Mountain Lion XCode 4.5.2 Simulator 6.0 Closing as fixed.
!http://content.screencast.com/users/Stephen_Feather/folders/Jing/media/f083a29c-82ca-4f2d-b0c9-a5732659702a/00000582.png!
Fix Version/s: Release 3.0.0, Release 3.1.0, 2012 Sprint 22 JS, 2012 Sprint 22
According to your screenshot, you're using SDK 3.0.0.GA, but in the log you can see it's using the 3.0.0.GA/iphone/builder.py which was NOT fixed. It was only fixed in the new CLI's iOS build script. How did you manage to tell Studio to use the old builder.py?
Thats the question, isn't it? I don't have an alias in place (well, I do, titaniumpy points to the old python scripts for module dev per our last convo). Could it be that I'm still using 2.1.2 TiStudio (stable) ? and not the buggy 3.0?
Buggy 3.0? Impossible. Try build your app from the command line:
I was using a newly created project in 3.0.0 GA