[TIMOB-2253] Build issues for First Time Developers
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-07-16T12:13:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | jtobias |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:14:52.000+0000 |
Updated | 2012-07-16T12:13:08.000+0000 |
Description
SUMMARY
When developing with Titanium on Mac OS X (e.g. 10.6.4) for the
first time, a test project may likely fail. This happened to me
internally, and per Ralf, an external OS X developer following the
same prescribed set of steps and versions of all software. The
behavior is the difference between downloading Titanium Mobile
1.4.1.1 with the test working, but using git to clone 1.5.0 (the
latest stable release), and scons to build it, results in
"execute_xcode" reporting an ERROR per the output below:
DIAGNOSTIC OUTPUT
[ERROR] Error: Traceback (most recent call
last): File "/Library/Application
Support/Titanium/mobilesdk/osx/1.5.0/iphone/builder.py", line 866,
in main
execute_xcode("iphonesimulator%s" %
iphone_version,["GCC_PREPROCESSOR_DEFINITIONS=LOGID__=%s
DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s" %
(log_id,sdk_version)],False)
File "/Library/Application
Support/Titanium/mobilesdk/osx/1.5.0/iphone/builder.py", line 789,
in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application
Support/Titanium/mobilesdk/osx/1.5.0/iphone/run.py", line 31, in
run
sys.exit(rc)
SystemExit: 1
For further detail, if one sees this behavior, there's more
information in build.log (under
<YOUR_PROJECT>/build/iphone/build/build.log.
WORKAROUND:
First by deleting the files in the project's build/iphone
directory, and then rebuilding, the error went away.
Ralf couldn't reproduce this:
• a recent change (unknown at this point) may have created a
"build by-products" issue (i.e. in 1.5.0 from earlier),
• an external developer ran into the same symptoms (see
Ralf): Titanium Developer outputs: "builder.py [ERROR]" (see above)
IMPACT:
Developers starting from scratch, like a new (a clean Mac, fresh
installs), may benefit from this workaround, but we should explored
it more detail
ISSUES
- Potentially renaming or moving the Titanium SDK folder doesn't
change the outcome, and adding spaces like 1.5.0 11_01 may worsens
it - Adding spaces to the Titanium SDK path may reveal further bugs
and should be tested
Thomas mentioned there is a duplicate bug in Titanium Developer (Ticket #74), so this ticket should be related to that one, or put in the Titanium Developer project instead of Titanium Mobile (per Thomas).
I was able to reproduce this "first time through" issue acting as an external developer on a "fresh Mac" (Mac OS 10.6.4 and iOS SDK 4.1)
Invalidating due to age (ticket affects 1.5, 1.6)