Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tips for Apple Watch.

Tips for Apple Watch.

@関西モバイルアプリ研究会

griffin-stewie

April 17, 2015
Tweet

More Decks by griffin-stewie

Other Decks in Programming

Transcript

  1. Tips for  Watch
    @griffin-stewie

    View Slide

  2. Fenrir Inc.
    @griffin-stewie

    View Slide

  3. Debug

    View Slide

  4. Use debugger both devices
    • Attach to Process
    • “By Process ID or Name”
    • Use “Executable Name” as Name

    View Slide

  5. handling
    WatchKitExtensionRequest

    View Slide

  6. Handling WatchKitRequest
    • Use Background Task
    • Even if you call callback immediately
    • call `endBackgroundTask:` with after delay 2 sec

    View Slide

  7. Submission

    View Slide

  8. Provisioning Profile
    • 3 targets
    • iPhone app
    • Watch extension
    • Watch app

    View Slide

  9. App Group ID
    • 3 targets
    • iPhone app
    • Watch extension
    • Watch app

    View Slide

  10. Bundle Identifier
    • 3 targets
    • iPhone app
    • Watch extension
    • Watch app

    View Slide

  11. Bundle ID
    Provisioning
    Profile
    App ID App Group
    iPhone app own = A A A Needs
    Watch
    Extension
    own = B


    Watch app’s ID
    = C
    B B Needs
    Watch app
    own = C


    iPhone app’s ID
    = A
    C C Needs

    View Slide

  12. FAQ

    View Slide

  13. SPErrorInvalidBundle

    NoGizmoBinaryMessage

    View Slide

  14. View Slide

  15. Make sure All IDs
    • WKAppBundleIdentifier
    • WKCompanionAppBundleIdentifier
    • Bundle Identifiers on each target

    View Slide

  16. Code sign Errors

    View Slide

  17. Make sure
    • Provisioning Profile on each target
    • Do not use Xcode 6.2 for setting
    • You cannot edit Watch app’s Build Settings
    • Use Xcode 6.3 or Xcode 6.1.1 to edit

    View Slide

  18. I can't wait to wear …

    View Slide

  19.  Watch

    View Slide