Game Development Reference
In-Depth Information
5. After executing all the preceding steps, we can find our custom AppIDs in the
member center.
6. As the specific container is created, now go to the
Capabilities
tab of our app
Xcode project. We can see an extra container visible in the
iCloud
section.
7. Now to use the specific container, select the
Specify custom containers
radio
button then select the
iCloud.com.mb.FlyingSpaceshipShared
con-
tainer.
Now we will prepare our code for iCloud. We will be incorporating some initial setup in
the code for iCloud services to be used by the app. Firstly, when the user launches an
iCloud-enabled FlyingSpaceship game for the first time, we should invite them to use
iCloud. The choice should be all or none. Hence, to invite the user to use iCloud, the fol-
lowing are the steps of the initial setup: