[TIMOB-23303] iOS: Today extension doesn't show any content
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-05-17T10:00:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.4.0 |
Components | iOS, Tooling |
Labels | extension, qe-5.4.0 |
Reporter | Chee Kiat Ng |
Assignee | Chee Kiat Ng |
Created | 2016-05-03T04:38:05.000+0000 |
Updated | 2016-07-21T17:27:32.000+0000 |
Description
You can't see the changes made to the MainInterface.storyboard in the today extension project. The reason why this happens is that the Linked Frameworks and Libraries of the extension target is somehow not referenced properly when combined with the main app.
See example app: https://github.com/cheekiatng/titaniumToday
The work around now is to open the Xcode project in the build folder, select the titaniumToday extension target, and manually add NotificationCenter.framework in Linked Frameworks and Libraries.
Attachments
File | Date | Size |
---|---|---|
generated extension xcodeproj.png | 2016-05-03T04:59:14.000+0000 | 181679 |
original extension xcodeproj.png | 2016-05-03T04:59:14.000+0000 | 71463 |
PR HERE: https://github.com/appcelerator/titanium_mobile/pull/7986
Steps to Test
1. Create a native Titanium App *appc new* 2. Example app name istitaniumToday
, thecom.appcelerator.sg.titaniumToday
3. Open Xcode and create new projectFile->New Project->Other->Empty
4. Name ittitaniumToday
4.File->New->Target->Application Extension->Today Extension
5. Name ittitaniumToday
and change Organization Identifier tocom.appcelerator.sg.titaniumToday
so that the Bundle Indemnifier iscom.appcelerator.sg.titaniumToday.titaniumToday
6. If you wish, you can activate scheme when prompted, it doesn't matter. 7. Change contents of MainInterface.storyboard as you see fit 8. Create folderextensions
in Titanium Project folder and copy the Xcode extension project into it. 9. In tiapp.xml, include these properties in10. *appc run -p ios*
Expected Result
if you pull down from the top date and open the today, you will see "1 New widget available". Click Edit and add titaniumToday. You will see "Hello Wilson"Actual Result
You can add titaniumToday, but "Hello Wilson" is not shown.PR Merged.
Verified as fixed, Followed the brilliantly detailed test steps and was able to add the titaniumToday widget, where "Hello Wilson" was shown. Tested On: iPhone 6S (9.3.2) Device Mac OSX El Capitan 10.11.5 Ti SDK: 5.4.0.v20160713141635 Appc Studio: 4.7.0.201607111053 Appc NPM: 4.2.7 App CLI: 5.4.0-33 Xcode 7.3 Node v4.4.7 *Closing ticket.*