How do you make Build Run use a specific Device version when compiling?
Thanks,
r.b
How do you make Build Run use a specific Device version when compiling?
Thanks,
r.b
I hope this doesn’t lead to a big can of provisioning worms for you…
Anyhow, when you hit command-b or build and run from Unity, it’ll start up XCode. You can press the stop button while it’s compiling in XCode.(Project build tab/window)
In the upper left, make sure the dropdown is set to Device(version) and not Simulator.
If you are having problems uploading to the device, then here’s some more info…
In the same project, on the left column, locate the blue app icon (Unity-iPhone) beneath “Groups and Files.”
Double click it.
You’ll find a few options here as well, with up/down arrows meaning a click will bring up a selection.
At the upper left set the configuration to “All configurations” to keep it simple.
Base SDK - Not sure this matters, but set appropriately.
Under Code Signing set the options for:
Scroll down to Deployment and set the deployment OS to 2.x.x
I’ve gotten away with less, in fact after going through that once, I can then just ensure the upper left selection in the compile window is set to Device version 2.0 or higher and it works ok. Of course or distribution time, I’d be a lot more specific.
This is assuming you have gotten past the provisioning headache and the device ID you’re developing with is registered.
Sorry, I wasn’t clear. Is there an option in the Unity IDE to tell XCode which version of the SDK to use.
r.b.
There is not. My advice is to open up the project in Xcode (after building in Unity), set the SDK version inside Xcode, and then just leave Xcode open while you develop. It should retain the SDK version you selected on each successive Build Run within Unity.
thx
Unity has a base XCode project that it copies every build. You can edit the settings in that base project (for default OS version, device instead of simulator, code signing identity, etc>) and make life much simpler.
Right click on the application “Unity iPhone.app” and pick “Show Contents” from the menu. Inside you’ll see a folder “Contents”. Navigate down to here:
“/Applications/Unity iPhone/Unity iPhone.app/Contents/Frameworks/iPhone-Trampoline”
That’s where you’ll find the “Unity-iPhone.xcodeproj” project file that gets copied for each build in Unity. Open that project in XCode, make your desired changes, and save and close it.