Just trying to get started

I’m running on the Unity3D iPhone trial and I’m just trying to get some a sample to load in the emulator or on the device itself but I can’t get it to build in Xcode.

I couldn’t find a guide that showed you need this version of unity, with this version of xcode etc… etc…

Is there such a guide? or am I just missing something simple?

Here is what I have.
OSX 10.6.8
Unity 3.4.1 with iOS Trial
XCode 4.1 for snow leopard (Build 4B110f)
iOS SDK 4.3

I tried loading the Match Game example from resources I’m able to load it in unity and build to iOS.
Then I try loading the xcode project and try to build to simulator (or device).
I fixed the Base SDK and Architecture issues by setting them to:
Architectures: Standard (armv6 armv7)
Base SDK: (Latest iOS (iOS 4.3))

Now when I build, I get 1 warning:
ld: warning: ignoring file /Users/jgreiner/Desktop/MatchGame2/Libraries/libiPhone-lib.a missing requires architecture i386 in file.

Then I get 201 linker errors though I presume they are because of the ignored library.

Any help would be greatly apreciated I would like to be able to get one of the samples running and tested before the trial runs out, we only have 15 more days left (I tried this a while ago and was too busy to try and sort out why it didn’t work).

-jeremy

You really have to read the doc first. Have you ever subscribed to the Apple Developer Program ? I believe you don’t.

The config you have is ok. It’s all about starting.

Which doc am I supposed to read? I read the basic iPhone doument and it didn’t cover this.

I am subscribbed to the apple developer program, and have downloaded several of the Apple’s samples, compiled and run in the simulator without a problem. (I did that first to make sure the environment was set up properly.

you have to set up some settings on the unity side, you need to choose which ios device you are targetting, arm 6 or 7 , full or subset .net , bundle identifiers, which orientation is this going to run and thinks like that, those are in the player settings of the unity project, then after that, build it for ios and unity will generate a project… unity ios projects set up to be run on ipad, will not work on the ipad simulator, to be able to run them in the simulator you need to choose the ipad simulator as the target in the unity player settings

once unity generates the project, if your xcode has already set up the developer provision profiles, its matter of just building it

i myself have only tried with arm 7 only settings on a ipad 2 and everything works alright

several links :

Anyway, you’ll have to purchase the Developer Program at Apple first. You won’t be able to install anything on your iDevice without this program.

Then :

You’ll have to read a lot of documentation before you start anything.