Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17030] OTHER_CFLAGS from module.xcconfig only present in Release configurations

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2016-11-28T22:17:35.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsCLI
Labelsbuild, cb-tooling, module, release
ReporterArley Andrada Maria
AssigneeHans Knöchel
Created2014-05-26T02:54:04.000+0000
Updated2017-03-23T22:30:46.000+0000

Description

When OTHER_CFLAGS are defined in module.xcconfig they are only applied to Release builds. This issue makes it very hard to test my module in an app, and users of my module are confused as to why they only works in Release builds.

Comments

  1. Hans Knöchel 2016-09-03

    If I see it correct (and of course need more time to sort things out), this pieces of the titanium_mobile/iphone/cli/commands/_buildModule.js could cause the problem:
       
       	// Create a build for the device
       	xcodebuildHook(this.xcodeEnv.executables.xcodebuild, [
       		'-configuration', 'Release',
       		'-sdk', 'iphoneos'
       	], opts, 'xcode-dist', done);
       
       	// Create a build for the simulator
       	xcodebuildHook(this.xcodeEnv.executables.xcodebuild, [
       		'-configuration', 'Release',
       		'-sdk', 'iphonesimulator'
       	], opts, 'xcode-sim', done);
       
    So changing the second hook (which is responsible for sim-builds) to Debug could actually do something. [~cbarber] Any quick advice?
  2. Chris Barber 2016-09-22

    [~hansknoechel] We only support building "Release" builds for iOS modules. Either this ticket is a won't fix or we can introduce \-\-deploy\-type for module builds where it would default to "production", but could be set to "development" which in turn would set the configuration to "Debug". Thoughts?
  3. Hans Knöchel 2016-11-28

    As per Chris' comment above, modules should not have debug configurations.
  4. Lee Morris 2017-03-23

    Closing ticket as Won't Fix with reference to the above comments.

JSON Source