Skip to content

Instantly share code, notes, and snippets.

@jgold6
Created February 2, 2016 20:40
Show Gist options
  • Select an option

  • Save jgold6/c4cbd092bcf0169ad058 to your computer and use it in GitHub Desktop.

Select an option

Save jgold6/c4cbd092bcf0169ad058 to your computer and use it in GitHub Desktop.
NewBox sample setting up provisioning profiles and app IDs.
(I am working in Xamarin Studio, though the same should work in Visual Studio if that is what you are using)
1. Open the NewBox solution
In the NBox project:
2. Open the Entitlements.plist file and scroll down to App Groups section and change
group.com.xamarin.NewBox,security
to
group.com.yourcompanyname.NewBox,security
replacing "yourcompanyname" with your company name ( to make id unique)
3. Open the Info.plist and also change the Application Name and Bundle Identifier to
com.yourcompanyname.NewBox.NBox
In the NBoxFileProvider project:
4. Open the Entitlements.plist file and scroll down to App Groups section and change
group.com.xamarin.NewBox,security
to
group.com.yourcompanyname.NewBox,security
replacing "yourcompanyname" with your company name ( to make id unique)
5. Open the Info.plist and change the Bundle Identifier to
com.yourcompanyname.NewBox.NBoxFileProvider
6. Click on the "Source" tab and scroll down to and expand the NSExtension key. Change the value for:
NSExtensionFileProviderDocumentGroup
from
group.com.xamarin.NewBox.security
to
group.com.yourcompanyname.NewBox.security
In the NewBox project:
7. Open the Entitlements.plist file. In the iCloud section, change:
iCloud.com.xamarin.NewBox
to
iCloud.com.yourcompanyname.NewBox
8. Click on the "Source" tab and change the value for the "com.apple.developer.icloud-container-identifiers" key from:
iCloud.com.xamarin.NewBox
to
iCloud.com.yourcompanyname.NewBox
9. Open the Info.plist file and change the Bundle Identifier from:
com.xamarin.NewBox
to
com.yourcompanyname.NewBox
10. Go to Apple's Developer portal at https://developer.apple.com/account/ios/certificate/certificateList.action
11. Make sure you have a valid Developer certificate and that it has been installed on your Mac.
12. In the "Identifiers" section select iCloud Containers and click the + button to add a new iCloud Container App ID. Name it whatever you like (but memorable) and make the ID:
iCloud.com.yourcompanyname.NewBox
13. In the "Identifiers" section select App Groups and click the + button to add a new App Group ID. Name it whatever you like (but memorable) and make the ID:
group.com.yourcompanyname.NewBox.security
You will need to do the following three times, once for each project in the NewBox solution.
14. In the "Identifiers" section select App IDs and click the + button to add a new App ID. Set App ID Description to whatever you like (but memorable).
Use an Explicit App ID for App ID Suffix and use the bundle identifier for the project. So you need three of these App IDs, one for each bundle identifier:
com.yourcompanyname.NewBox
com.yourcompanyname.NewBox.NBoxFileProvider
com.yourcompanyname.NewBox.NBox
15. In the Enable Services section For all three App Ids, enable iCloud and App Groups, and use the "Include CloudKit support" option for iCloud.
16. Click "Continue". You may note that App Groups and/or iCloud show up as configurable. We will configure that in a bit.
17. Click "Submit"
18. Once you have the App Ids for all three projects, then you need to configure the App Groups and iCloud for the App Ids.
19. Select each of the three app ids you just created and choose "Edit".
20. Click the Edit button next to App Groups and select the App Group ID you created step 13 above. Click "Continue".
21. Click the Edit button next to iCloud and select the iCloud Container you created step 12 above. Click "Continue".
22. When done, click "Done".
23. Now you need to create three provisioning profiles, one for each App ID created in step2 14 - 17. Use type iOS App Development.
24. After selecting the App ID for the profile, click "Continue" and select the Developer certificate(s) to use with that profile.
25. Click Continue and select the Devices that the profile will be valid on. (you may need to set up some devices in the Devices section if you have not done that already).
26. Click Continue and name the profile (something memorable) and click "Generate".
27. Once generated, click the "Download" button to download it to your Mac. Double click the downloaded Provisioning profile to install it in XCode.
28. Once you have all of those profiles created, make sure to go into the Project Options page for each project and set your Signing Identity and Provisioning Profile to the certificates ad profiles created above. (Project Options->Build->iOS Bundle Signing page)
29. try running the NewBox sample!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment