Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3431] defines.h files is not generated properly for HW builds when files are placed in /Resources/iphone directory

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2016-08-19T21:27:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDaniel Arroyo
AssigneeIngo Muschenetz
Created2011-04-15T03:45:08.000+0000
Updated2017-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

Comments

  1. Robert Johnson 2011-05-12

    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.
  2. Chris Barber 2016-08-19

    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.
  3. Lee Morris 2017-03-22

    Closing ticket as invalid with reference to the above comments.

JSON Source