Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23303] iOS: Today extension doesn't show any content

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-05-17T10:00:23.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsiOS, Tooling
Labelsextension, qe-5.4.0
ReporterChee Kiat Ng
AssigneeChee Kiat Ng
Created2016-05-03T04:38:05.000+0000
Updated2016-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

FileDateSize
generated extension xcodeproj.png2016-05-03T04:59:14.000+0000181679
original extension xcodeproj.png2016-05-03T04:59:14.000+000071463

Comments

  1. Chee Kiat Ng 2016-05-03

    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 is titaniumToday, the in tiapp.xml will be something like com.appcelerator.sg.titaniumToday 3. Open Xcode and create new project File->New Project->Other->Empty 4. Name it titaniumToday 4. File->New->Target->Application Extension->Today Extension 5. Name it titaniumToday and change Organization Identifier to com.appcelerator.sg.titaniumToday so that the Bundle Indemnifier is com.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 folder extensions in Titanium Project folder and copy the Xcode extension project into it. 9. In tiapp.xml, include these properties in section
           <extensions>
             <extension projectPath="extensions/titaniumToday/titaniumToday.xcodeproj">
               <target name="titaniumToday">
                 <provisioning-profiles>
                   <device/>
                   <dist-appstore/>
                   <dist-adhoc/>
                 </provisioning-profiles>
               </target>
             </extension>
           </extensions>
       
    10. *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.
  2. Chee Kiat Ng 2016-05-17

    PR Merged.
  3. Harry Bryant 2016-07-21

    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.*

JSON Source