First step
- Register as Apple developer:https://developer.apple.com/programs/enroll/
- Join unity cloud build:https://unity3d.com/unity/features/cloud-build
- Follow cloud build instructions there to set up for IOS project
Creating .CSR file in windows (certificate signing request)
- Download openssl binary:https://indy.fulgan.com/SSL/
- Unzip it
- Open command prompt for that folder note must run as administrator
- Enter the following command > openssl genrsa –out mykey.key 204
- Download the missing openssl.cfg file from this page:https://docs.oracle.com/cd/E19509-01/820-3503/ggeyz/index.htmland place them in same folder with file name openssl.cfg
- Enter the following command > set OPENSSL_CONF = c yourOpensslfolderopenssl.cnf
- Enter following command > openssl req –new – key mykey.key – out certificateSigningRequest.certSingingRequest – subj “/email addressyouraddress@exmaple.com, CN your Name , c = your country
- Now you can Upload the generated “ cerficationSigingRequest.certSigningRequest” file into Apple Developer site
Now part of Unity, ProBuilder is a unique hybrid of 3D modeling and level design tools, optimized for building simple geometry but capable of detailed editing and UV unwrapping too. Use ProBuilder to quickly prototype structures, complex terrain features, vehicles and weapons, or to make custom collision geometry, trigger zones or nav meshes.
Setting Up Apple Developer Licenses
Unity Build Settings
- Login into Apple developer account
- Go to “certificates , identifiers & Profiles”
- Create production certificate (for App Store and Ad Hoc)
- Upload your .csr file that you can generated in previous step
- Create App ID (make it wildcard so you can use it for many apps)
- Create provision profile for distribution
Creating .p12 file in windows
Unity Build Game For Mac Download
- Download your “ ios_devlopment.cer” from production certificates list (and copy it into your openssl folder)
- Enter following command > openssl x509 -in ios_development.cer -inform DER -out developer_identity.pem -outform PEM
- Use the mykey.key we created in CRS creation
- Enter following command > openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out iphone_dev.p12
- Enter password (write it down , as you will need it later)
Building .ipa with unity cloud build
Unity Mac Build On Windows
- Go to unity cloud build
- Create a new IOS projects (follow the instruction on the site)
- And when it as for the provision profiler and .p12 files you now have those files
- Then hit build and download your .ipa file
Copying .ipa to IOS device
- Install iTunes
- Connect IOS device to your PC
- Then drag and drop the cloud build .ips file here
- The click the ipad icon to view your ipad
- Click Apps
- Look for your .ips App in the list
- Click install button
- Click apply button at the bottom
- Done now you can run your app
Reference:
- https://unity3d.com/learn/tutorials/topics/cloud-build/your-first-cloud-build-project
- https://help.adobe.com/en_US/as3/iphone/WS144092a96ffef7cc-371badff126abc17b1f-7fff.html
- https://help.adobe.com/en_US/as3/iphone/WS144092a96ffef7cc-371badff126abc17b1f-8000.html
- https://www.tbs-certificates.co.uk/FAQ/en/openssl-windows.html