I’ve been using Unity 4.2.2, and everything’s been working. Yesterday I updated my system to Mavericks and Xcode 5.0.1. The project I’m working on builds and runs on my iPad no problem. But I cannot create an archive for ad-hoc distribution. I get one linker error:
This is sort of like the problem I had after updating to Unity 4.2.2, but then I got hundreds of these linker errors. I started with a new Xcode project and cleaned it. Any suggestions?
Try avoiding use “armv7s” as architecture in your project, since the Unity static libraries that are not compiled for armv7s yet. Do that in your project settings → Build Settings → Architectures → Architectures, just left “armv7” alone.
I don’t see any Architectures settings, or Build Settings. Where are those? Under Project Settings → Player there used to be an arm6/arm7 setting, but that’s no longer an option in Unity 4.2.2.
As I said, it builds fine and runs on my iPad, I just can’t build an archive. I’ve never run into that problem before. It has always either worked for both or not.
Under the Ad-Hoc setting, architectures was set to Standard (arm7, arm7s), which I didn’t change. There is no option that doesn’t use arm7s. What fixed the problem was changing Build Active Architecture Only to Yes for my ad-hoc build. Still have the Release build set to No, as it was, so I’ll eventually see what happens with that.
Same thing is happening again on another project. But this time setting Build Active Architecture Only to Yes doesn’t work. Any other suggestions? Is there a Unity update I should have (currently running 4.2.2f1)?