Support embedded frameworks in native Titanium modules and Hyperloop.
- Download the
ti.dynamiclib.js
file and open it - Search for the
frameworkPaths
and specify your framework path(s). The paths are relative to thebuild/iphone
directory. - Adjust your module project code
- For classic modules:
- Add
LD_RUNPATH_SEARCH_PATHS=$(inherited) "@executable_path/Frameworks" $(FRAMEWORK_SEARCH_PATHS)
to your module.xcconfig - Place the
ti.dynamiclib.js
file in<your-module-ios-root>/hooks
- Add
- For Hyperloop modules (will be automated in future Hyperloop versions - Follow TIMOB-23853):
- Add the above to the
hyperloop.ios.xcodebuild.flags
object of your appc.js - Place the
ti.dynamiclib.js
file in<your-project-root>/plugins/ti.dynamiclib/hooks
- Add the plugin to your tiapp:
<plugin>ti.dynamiclib</plugin>
- Add the above to the
- For classic modules:
- Some frameworks include Simulator architectures ("fat libraries"). Those frameworks usually provide a script to strip the unused architectures for distribution, e.g.
strip-framework.sh
. If you use such a framework, adjust the path of the variablescriptPath
, otherwisenull
it to skip the build script phase. An example of this file is included in this repo (© Realm). - That's it! You can check an example integration in the Ti.Flic module (https://github.com/hansemannn/ti.flic)
Apache 2.0
This module is Copyright (c) 2016 by Axway. All Rights Reserved. Usage of this module is subject to the Terms of Service agreement with Axway, Inc.
Code contributions are greatly appreciated, please submit a new Pull Request!