[TIMOB-20473] iOS: Support storyboard in iOS-modules
GitHub Issue | n/a |
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-02-18T18:15:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.0.0 |
Components | iOS |
Labels | module, storyboard |
Reporter | Rainer Schleevoigt |
Assignee | Vijay Singh |
Created | 2016-02-25T21:20:44.000+0000 |
Updated | 2021-02-18T18:15:00.000+0000 |
Description
Some iOS libraries use storyboard for UI. To build a module I cannot embed this storyboard – I have to add it (after compiling with studio) in xcode. It is a workaround, that doesn't work in SDK ≧ 5.0.0. because the error message appears "cannot find app.js".
Proposal: the build process looks into module folder, detects a folder named "storyboard" and copy the content into xcode project.
Attachments
I just ran into the same thing today. See my ticket on the source module project https://github.com/hyperlab/TiMixpanel/issues/29 Mixpanel requires storyboards to show their in-app surveys.
Hi Tim, in my case it is a ready to use banking module for money transactions and for security reasons it is not allowed to modify the lib. In my module I only wrap the create method and the result callbacks. I will look to your project. Cheers! Rainer
Can you try this? Open the Xcode project in build folder. 1. Don't clean in Xcode. 2. Xcode->Preferences 3. Locations->Derived Data->Advanced 4. Select Custom->Relative to Workspace 5. Done. Now go ahead to build or run. Remember, don't clean, otherwise you have to *appc run* again to build the project. And also remember to revert back this change once you are done with the Xcode project and wish to go back to do things in Titanium.
Following the steps above, I get a "Could not find the file app.js" error.
PR - https://github.com/appcelerator/titanium_mobile/pull/12328 To test - 1. Get attached module (ti.storyboard) which has storyboard. 2. Build module. 3. Create new app. Include the module in tiapp.xml. 4. Replace app.js with following -
5. Run the app. On click of button, it will present view controller with label 'Titanium Rocks!'
FR Passed Waiting for Jenkins build
Merged to master branch