[TIMOB-3431] defines.h files is not generated properly for HW builds when files are placed in /Resources/iphone directory
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-08-19T21:27:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Daniel Arroyo |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:45:08.000+0000 |
Updated | 2017-03-22T20:57:03.000+0000 |
Description
My files where placed in /Resources/iphone and the emulator builds worked fine but when I did HW builds the application would crash on start on HW and even subsequent emulator builds.
I traced it down to the build/iphone/Classes/defines.h file being re-created wrong by the HW build process.
Taking my files our of /Resources/iphone directly into /Resources fixed the problem.
Titanium SDK 1.2.2, Mobile SDK 1.6.1 and XCode 4 on Mac OS 10.6
This is not a problem just for code put into /Resources/iphone, its a problem for code put into any directory. For example, all of my code is stored in /Resources/common, and I just have a small app.js that simply executes a single line app.js ti.include("common/app_main.js"); common/app_main.js ti.API.info(titanium.App.id); This will give an error that Titanium.App is undefined.... But its all because defines.h is created incorrectly at times. Its unable to figure out the proper dependencies if the code calling that Titanium functions are not in the root of the resources directory.
This hasn't been an issue in years. I'm sure it was fixed in 3.0.0 and improved since. Being this ticket refers to Titanium SDK 1.2.2 and
ti.include()
, I'm marking this issue as invalid.Closing ticket as invalid with reference to the above comments.