Xcode Hangs on "Linking"

I’m using Unity 3.3 and Xcode 4.0.2. My project exports out of Unity fine, but when I try to run it via Xcode the program hangs during the “Linking” step. I’ve been fiddling with the Base SDK and Deployment Target settings in Xcode but it hasn’t helped. Any suggestions?

Ok! So I’ve been working on this for a few hours and I think I’ve figured out what’s going on at least in my scenario and I was having the same problems as a lot of the posts I was reading concerning Xcode 4

From the beginning, I’m using unity 3.4…my player settings are:


Target Device: iPhone + iPad (from what I’ve gathered, this is more universal)

Target Platform: Universal armv6+armv7 (OpenGL ES1.1+2.0)

Api Compatibility Level: .NET 2.0 Subset

SDK Version: iOS Simulator 4.2

Target iOS Version: 4.2


From there I make a build with unity (NOT build and run). Once the .xcodeproj file is shown in finder, open it in xcode (I’m using Xcode 4.0.2).

Here are my Xcode settings:


Project->Build Settings->Architectures: i386 (on every failed attempt, this was an arm architecture and I won’t pretend to know for sure, but I think that was my problem)

Targets->Build Settings->Architectures: i386 (for both targets)


A big note here is that all these settings are what unity built straight into the project so if your player settings in unity were like mine, you shouldn’t have to change anything.

Another note is that I haven’t provisioned my iphone yet to test it on the device, but I’ll repost/edit if I figure out more for this little issue.

happy coding (:

I usually have to turn off development build and profiling and debugging etc. You’ll still get Debug.Log message in the console. Also make sure all your textures are properly sized. And you’ve removed anything unnecessary.

Had the same problem you did, do steps 12-15 on this page: TechExxpert: Developing iPhone Games with Unity on Windows

It should work after that. Then undo them one at a time to see witch one of them is the problem. Let me know if doesn’t work, I’ll look more into it.

Same problem here… Tried deadfire55’s suggestions without success, xcode still hangs during linking…

Difference is I’m using Unity 3.4, XCode 4.0.2 and iOS SDK 4.3

Also I’ve just created a Unity project from scratch, saved the scene and tried compiling it “as is”. Same problem…

Here’s what I do now:

“Build” from Unity.
Go to PROJECT settings, (not target) and change the Base SDK to one of the built-in Xcode options.
Change “Build Active Architecture Only” to YES.
Change Code Signing Identity to iPhone Developer.

Cross your fingers!

Here’s what I do now:

“Build” from Unity.

In Xcode, go to PROJECT settings, (not target) and change the Base SDK to one of the built-in Xcode options.
Change “Build Active Architecture Only” to YES.
Change Code Signing Identity to iPhone Developer.

Cross your fingers!