Building and installing a Ready game on iOS
I’ve been playing around with Ready which is a lovely and easy to use tool that allows you to create video games. Ready is aimed at the class room to teach kids about the basics of programming in a fun way, if you’ve seen Scratch, you’ll know what I’m talking about.
Ready is made using Unity and also has the ability to export your creations and build them on Unity. Naturally once you can build them in Unity, why not go all the way and deploy them to an iOS device?
I should point out that you can play your own creation on an iOS device if you have the Ready app installed. So this is only if you’re interested in customising the behaviour of your Ready game, or perhaps you’ve wanted to know how to build your Unity game for iOS.
This blog post assumes you have Ready, Unity and Xcode installed on the same computer.
I’ll be using the personal/private use iPhone developer license (free), but the instructions are the same if you’ve got a paid iPhone developer license. I’ve used Xcode 9.4.1 (9F2000)
Unity has a free tier, so long as your new game doesn’t exceed 10,000 US dollars in profit you won’t need to buy a license 😉! I’ve used Unity 2018.1.0f2. I’ve also installed Unity Remote 5 on m iOS device to allow for testing before we export the game to Xcode.
Make a game in Ready and export it
As you can see I’ve gone for a really basic animated Sprite with drag behaviour. The game was created for landscape mode. This will be important to know later on.
In Ready, click the Gear icon (game settings), then click the Export to Unity3D
button.
- Create a new folder and select it as export target.
Playable in Unity
- Open Unity > click on
Open
button (next toMy Account
link) and click into your newly exported Ready game folder, then clickOpen
button. You want to open the project where you can seeAssets
andProjectSettings
folders. - In the Project window.
- Select the
Assets
folder. - Double click on
ReadyPackage
asset to decompress the data.
- Select the
- In the Import Unity Package dialogue, click the
Import
button. This may take a while. - Back in the Project window.
- Select the
Scenes
folder. - Double click on the
PlayerScene
asset to load it.
- Select the
- In the Unity menu bar, click on
Ready
>Recreate Project
. - Click the
Play
icon to test the build. - Click the
Play
icon to stop playing.
Playable in Unity Remote
- In the Unity menu bar click on
File
>Build Settings…
. - Click on the
Add Open Scenes
buttons. - Select
iOS
as your platform. - Click
Switch Platform
. This may take a while. - Close pop up window
- Connect your iOS device to your Mac.
- In the Unity menu bar click on
Edit
>Project Settings
>Editor
- In the
Unity Remote
section, select your connectedDevice
from the drop down list - Start up the Unity Remote 5 on your iOS device
- Click the
Play
icon to test the build on your iOS device. - Click the
Play
icon to stop playing.
You will notice that the game looks skewed in portrait mode, if you tilt your iOS device into landscape mode you’ll see the game correct it’s scaling.
Playable on iOS
- In the Unity menubar click
File
>Build Settings…
. - Select the
iOS
platform. - Click the
Player Settings
button.- Set your Company name.
- Set your icon (pick from assets).
- Set
Default Orientation
to eitherLandscape Right
orLandscape Left
.
- Click the
Build
button. - Pick target folder and click
Save
. This will take a while - In
Finder
go to the target folder and openUnity-iPhone.xcodeproj
, this will launch Xcode. - In
Project navigator
(left most icon [folder]) in picker, selectUnity-iPhone
- In the
Identity
section, update theBundle Identifier
field. Important: this must be a unique. - In the
Signing
section- check
Automatically manage signing
- Select your
Team
from drop down list
- check
- Click on this icon to fix any warnings
- Make sure your device is connect and has been selected from the drop down list
- Unlock your iOS device and click
Play
icon. This will take a while, you may also see warnings during compilation.
Marvel at your new iOS game!
You may need to trust your personal certificate (they’re renewed every six days) if you see this pop up window whilst deploying the app to your iOS device.
In iOS 11 this setting can be found in Settings
> General
> Profile & Device Management
. Select the DEVELOPER APP
profile and trust the certificate.