@関西モバイルアプリ研究会
Tips for Watch@griffin-stewie
View Slide
Fenrir Inc.@griffin-stewie
Debug
Use debugger both devices• Attach to Process• “By Process ID or Name”• Use “Executable Name” as Name
handlingWatchKitExtensionRequest
Handling WatchKitRequest• Use Background Task• Even if you call callback immediately• call `endBackgroundTask:` with after delay 2 sec
Submission
Provisioning Profile• 3 targets• iPhone app• Watch extension• Watch app
App Group ID• 3 targets• iPhone app• Watch extension• Watch app
Bundle Identifier• 3 targets• iPhone app• Watch extension• Watch app
Bundle IDProvisioningProfileApp ID App GroupiPhone app own = A A A NeedsWatchExtensionown = B Watch app’s ID= CB B NeedsWatch appown = C iPhone app’s ID= AC C Needs
FAQ
SPErrorInvalidBundle NoGizmoBinaryMessage
Make sure All IDs• WKAppBundleIdentifier• WKCompanionAppBundleIdentifier• Bundle Identifiers on each target
Code sign Errors
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
I can't wait to wear …
Watch