I have struggled to set up iOS and Apple Watch app’s code signing. And I wrote something that you have to remember before doing it.
First, you have to create each app id for them. Create iOS app’s App ID, Watchkit app’s App ID and Watchkit extension’s App ID. Totally you need three App IDs. I think that it’s really complicated at the beginning.
Second, the bundle identifiers are really important!
I have met several errors based on WatchOS 2.1. So here are the bundle identifer naming convention which works fine.
- iOS app: com.apple.[Your App Name]
- WatchKit app: com.apple.[Your App Name].watchkitapp
- WatchKit extension: com.app.[Your App Name].watchkitapp.watchkitextension.
I am not sure that there are a strict rule on it. But, the configuration above is the only thing which works fine for me.
Third, the provisioning file is frustrating. In the general pane I have met a lot of errors which says ‘Code Sign error: No codesigning identities found’. If you are sure that your configuration is okay, quit your Xcode and re-launch it. It normally sovles the issue.
Fourth, Carefully Look info.plist files. Your provisiong files are correct and no error on Code signings. But, you might get an error that is related to a bundle identifier. In my case I solved my issue through this thread
I hope that this article is helpful for you.
0 κ°μ λκΈ:
Post a Comment