Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19534] How to include the .bundles on a native module

GitHub Issuen/a
TypeStory
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-12-11T22:50:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterShuo Liang
AssigneeUnknown
Created2015-09-17T04:36:16.000+0000
Updated2018-12-11T22:50:54.000+0000

Description

Customer try to develop a native module, but there is no way add .bundles file into module. Tried add to asset folder and platform folder in module, but after package module into a mobile project, the .bundles file does not work well. So is there a way to add .bundles file into native module.

Comments

  1. Chee Kiat Ng 2015-10-20

    Ok so static libs cannot contain bundle files, so putting that .bundles in the Xcode project is out of the question. The best alternative i can think of is, create a framework instead. Put the contents of the bundle file (it's really a folder of files) into a framework and put it in the platform directory. After which you need to edit *module.xcconfig* to have
       OTHER_LDFLAGS= -framework <name of your framework>
       
    and of course, in your Xcode project reference to the framework to access those bundle files. One example you can look at is our Facebook module :)

JSON Source