[TIMOB-26864] Drop requirement for extra hook to support Swift native modules and frameworks
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 8.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | engTriage |
Reporter | Jan Vennemann |
Assignee | Jan Vennemann |
Created | 2019-02-26T20:18:23.000+0000 |
Updated | 2019-06-18T13:57:15.000+0000 |
Description
With SDK 8.0.0 we now support writing native module with Swift. This is great, however, there are a few regressions in the developing experience compared to ObjC modules.
Since we don't have any Swift source files in our core yet the Swift standard libraries are not embedded by default and it needs to be done explicitly right now to support third-party frameworks. This is currently done through a simple [hook](https://github.com/appcelerator/titanium_mobile/blob/e15980ad3066fa6d50abb6ddb7ce725cd9659759/iphone/templates/module/swift/template/ios/hooks/ti.swiftsupport.js) for both Swift native modules as well as Hyperloop.
Now, the requirement for this hook prevents quick testing of module changes by building a module and then launching the example. Running
ti build -p ios
will crash the example on startup because the above hook is not active when doing this workflow. Users currently have to do a build only run with ti build -p ios -b
, then extract and copy the module into a test app to verify changes. This a time consuming task and needs to be improved.
No comments