x


The game exporting proccess for iPhone....

How do you export an iPhone game? (How do I set up PlayerSettings and iPhoneBundleIdentifier)

(How to set up Xcode...and such things)

Minor Question:

Does it require the newest SDK and such?

more ▼

asked Jun 27 '10 at 01:01 PM

MikezNesh gravatar image

MikezNesh
843 64 74 93

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

The getting started section of the manual gives a very clear step by step of the set up process.

  1. First thing you need to do is get an apple developer license
  2. Make sure you have the latest version of Mac OS (no windows version)
  3. Download the latest iphone SDK and install it
  4. Buy a copy of Unity iPhone Basic or Pro and install it
  5. Go the to the apple developer web site and click on the provisioning portal link
  6. Create and download your certification key
  7. Create a new App ID (com.yourCompany.yourGame)
  8. Add the UDID of your test phone to the device list
  9. Create a provisioning profile using your certificate key and App ID and all the devices you're gonna use for testing.
  10. Connect your phone to your mac and open xcode, click on organise and add the provisioning profile you just made
  11. Make your game in Unity
  12. Click on edit > player settings
  13. Input the App Id you made earlier (com.yourCompany.yourApp) without the unique string of letters and numbers Apple generates
  14. Set all the other settings like icons and display name and code stripping (leave this off if you're unsure) Generally leaving settings on default will be fine for debugging
  15. Click on build and run and unity will start compiling (and maybe compressing textures if you've set it which takes a while the first time)
  16. XCode will launch and compile the code. If there are no errors it'll also install it onto your phone and run it.

If you have additional xcode to add to the game you can do so before you press run in xcode (if you're using in-app purchasing you you'll need to activate it in the provisioning portal and also you need to import the storekit package)

If you get an error like "no phone connected with the correct certificate" it means you need to put the provisioning profile on the phone.

To test the app on other devices you need to add all the UDIDs of the devices to the provisioning profile and drag that and the compiled app into iTunes and sync the device.

Generally you don't need to alter settings in xcode if you're running a normal unity game but make sure you've selected the correct target OS you set in unity and also select run on device as unity doesn't support iphone simulator.

more ▼

answered Jun 27 '10 at 03:11 PM

spinaljack gravatar image

spinaljack
9.1k 18 31 91

very clear. thanks

Jun 28 '10 at 12:59 AM MikezNesh

It is ok if you build the game then attach the UDID and stuff right?

Jun 28 '10 at 01:06 AM MikezNesh

The game wont run without a provisioning profile on the device so there's not much reason to compile it before then. Unless you mean make the game in unity, in which case go nuts.

Jun 28 '10 at 02:13 AM spinaljack
(comments are locked)
10|3000 characters needed characters left

why can i not use the windows version?

more ▼

answered Mar 19 at 11:02 AM

luhaowei gravatar image

luhaowei
1 1

Because your copy of Windows does not have XCode.

Mar 19 at 11:02 AM Graham Dunnett ♦♦
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2000
x799
x351
x347
x52

asked: Jun 27 '10 at 01:01 PM

Seen: 8100 times

Last Updated: Mar 19 at 11:02 AM