+31 (0) 20 760 2040 info@spilgames.com

Using Spil certificates

In the zip file you received from Spil you will find a folder called “ios_certificates”. Whin this folder you will find the following similar named files:

sdk-cert1

Installing the distribution certificate.
Double click the ios_distribution.cer
After entering your own Mac password. you will see the certificate added in the application Keychain access:

sdk-cert2

Also double click the .p12 file and type in your password followed by Spil’s password. You can find the password in the text file we send you.
Once it’s added correctly you should see the private key below the certificate:

sdk-cert3

Now also double click the files:
SampleApp_adHoc.mobileprovision
SampleApp_Distribution.mobileprovision

General settings:
Open xcode again select the project and go to the “general tab
Check the bundle identifier: com.spilgames.sample (copy this from the text file your received to prevent mistakes. the bundle is also case sensitive).
Check the version
The build can be 1 and only need to be increased in case you need to deliver the same version but need to deliver a new build.
Set the deployment version to at least 2 major versions smaller. So when iOS 9.0 released, the deployment target needs to be 7.0.
Note: Don’t mind the “no matching provisioning profiles found”, we will fix it later.

sdk-cert4

 

Make sure to enable the iCloud key value:

Select the “build settings” tab:

Building for AdHoc

sdk-cert5

 

Building for Distribution

sdk-cert6

You will see that the previous team issue is also sorted:

sdk-cert7

 

Export to an .ipa file
Change the target from the simulator to the device:

sdk-cert9

 

Select “Archive” from the top “product” menu.

sdk-cert10

 

Select the archived build click on the export button on the right side.

sdk-cert11

 

Choose either Ad Hoc or iOS app store deployment.

sdk-cert12

 

Select the “Use local signing assets” from the drop down list.

sdk-cert14

 

Choose export one app for all compatible devices. And follow the last steps.

sdk-cert15

You should now have exported an .ipa file.
Please rename the filename to make it clear which game, version and type (adhoc of production) it is.