Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18052] iOS: Support WatchKit

GitHub Issuen/a
TypeEpic
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-08-05T23:35:34.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.0.0
ComponentsiOS
Labelsnotable, roadmap, watchkit
ReporterIngo Muschenetz
AssigneeChris Barber
Created2014-11-18T21:29:11.000+0000
Updated2017-03-31T22:21:28.000+0000

Description

The iOS 8.2 beta includes support for WatchKit, implemented in a similar fashion to Share Extensions (TIMOB-17335) https://developer.apple.com/watchkit/ We should provide support in the Titanium SDK for developing WatchKit-enabled applications.

Comments

  1. Rick Blalock 2014-11-19

    Like iOS 8 extensions - if we can't provide the Ti runtime in the extension, we could at least allow for the target to be created in the Ti app, so the watch extension can be attached to it (https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/ConfiguringYourXcodeProject.html#//apple_ref/doc/uid/TP40014969-CH2-SW1). We'll need the WatchKit API's that the phone uses exposed as a module I imagine.
  2. Mads Moller 2014-11-19

    Since this came out today: https://developer.apple.com/watchkit/ I wonder if its possible to use Ti.UI namespace for this. It seems that all UI elements possible to use are bundled in the watchkit (WKInterface). Secondly, in the begining of the video, Apple stats that we cannot create runtime UI, so all UI most be prebaked into Storyboards. Is this something Titanium can adapt to (within 3.x ) ?
  3. Shannon Hicks 2015-03-05

    Can you guys also test the WatchKit portion being written with Swift? One of two things need to happen: 1. The documentation needs to cover how to do it with Swift 2. The documentation needs to specifically state if it's not supported. We don't need people writing stuff in Swift if it won't work.
  4. Rick Blalock 2015-03-05

    I was able to get a swift extension to compile in Ti...so I assume it will work...
  5. Jamie Druce 2015-04-20

    Hey Rick, did you manage to get the Swift extension running in the sim? I managed to build my swift extension, it all compiled fine, but have yet to get it running in the simulator. After days and days of digging around, i found an crash log for my extension saying "Library not loaded: @rpath/libswiftCore.dylib". When looking into the project generated by Titanium, there is a flag called "Embedded Content Contains Swift Code", this is set to No, which i assume is my problem. It seems that we need a way to set this flag, otherwise swift is not supported.
  6. Ingo Muschenetz 2015-04-20

    [~jdrucey] Did you file a ticket about the Swift flag?
  7. Ben Bahrenburg 2015-04-20

    Hi Jamie, isn't this really at the extension level? I ran into this with just a native Obj-C project. Details here: http://bencoding.com/2015/04/06/embedding-swift-in-your-objective-c-app-solving-the-libswiftcore-dylib-error/
  8. Jamie Druce 2015-04-21

  9. Susan Diaz 2015-05-29

    @Ben, Certainly I loved you notes on ibswiftCore.dylib error which I performed few tests in swift but that was full of glitches and I think this is the best way to embed swift to objective-c for other client projects we had few things which were not been the best in form what should be done but now its clear by doing that provided stuff.. cheers. thanks! Susan Diaz | A Programming Freak! http://www.agileinfoways.com
  10. Chris Barber 2015-08-05

    As of right now, all known WatchKit related issues have been resolved. There may be bugs, but we'll fix those as we find them. :)
  11. Lee Morris 2017-03-31

    Closing ticket as fixed, if there are any problems, please file a new ticket.

JSON Source