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 full-size slide

  2. Fenrir Inc.
    @griffin-stewie

    View full-size slide

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

    View full-size slide

  4. handling
    WatchKitExtensionRequest

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  9. 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 full-size slide

  10. SPErrorInvalidBundle

    NoGizmoBinaryMessage

    View full-size slide

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

    View full-size slide

  12. Code sign Errors

    View full-size slide

  13. 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 full-size slide

  14. I can't wait to wear …

    View full-size slide