问题
I am trying to submit an iOS App + Apple watch extension to the App Store.
- I selected the app as my target, created an archive (Product > Archive).
- I clicked on the archive in Window > Organizer and clicked Export (I am using the Application loader to submit the app).
- I selected "Save for iOS App Store Deployment"
- In the next window (in Binary and Entitlements), I expected to see the the app and the watchkit extension. But I see only the app. Why is this ? Is it expected ? Or did I miss some setting change somewhere ?
回答1:
Because this is a very special piece of application, and you can not just simply submit the application like the way you used to do.
The differences are the total number of provisioning profile. Without WatchKitExtension, a provisioning profile is enough. However, you have to apply for three different application identifiers and three different provisioning profile in order to let the Xcode to detect you actually have your phone app, watch app and watch extension.
So, what you need to do is really simple. Just create two more app identifiers based on the bundle identifier you saw from the WatchApp target and WatchExtension target. Then, create two more provisioning profile. Last step, import them into your Xcode. And you are good to go.
来源:https://stackoverflow.com/questions/30020461/submitting-the-apple-watch-app