- Home /
iPhone OS 4.0 : Build results in 'incorrect architecture'
My iPhone has been upgraded with version 4.0.
I have tried to build the project from Unity, with OS version 3.2, and at other attempts with OS version 'Unknown'. I also tried with both 'safe and slow' and 'fast' setups.
In accordance with replies to a similar question (an old one though, dated June 24th), I have tried various setups in xCode for the project package and for the project target, to enable armv6 and armv7 architectures, like:
- switching to "Standard armv6 armv7"
- switching to iPhone OS 3.2 / iPhone OS 4.0 for the SDK version.
It didn't work for me.
I cannot use the older 3.1.3 version since it is missing, and as far as I can remember what I did last week with 3.2 version was working like a charm.
The best result I could achieve was building and deploying to the iPhone without any warning, but with the iPhone sending the message "Incorrect architecture" to xCode.
Then, when I try any other build, it results in a fatal error that makes Xcode completely unstable.
I am completely stuck! sends an emergency signal to the Unity community
I just hope other Unity iPhone developers out there aren't stuck as I am. Or, that they have been stuck just as I am now, but can send me a quick tip to get out of this mess :)
Note: A possible event would be that the fatal error I receive is due to things that are now 'weak linked'.
The fatal error is:
-[PBXDebugScriptCommand debugSessionDidStart:]: unrecognized selector sent to instance 0x2017df5a0
... and I don't have a clue what it could come from.
did you: edit the project settings + edit active target + set the active architecture to armv6 on the quick selection button right above the overview in the main window?
if I do al three things it work for me
Ah, you have a lead here... I did everything except the last thing, and here is why: there is no option to select "armv6" in the quick selection button for me. Only armv7 is available. How could I even manage to no longer have this option, whereas you do have it, and most especially, how could I have it back?
A quick note : iPhone is 3G, not 3GS, my iPhone should not be armv7 only.
Found it! Vin could you post an answer so that I could credit you with the finding? to have the option back in the quick selector, I have another thing to do described here : http://forum.unity3d.com/viewtopic.php?t=49414
that is, double click on active target to selected "standard armv6 armv7" THEN check back the quick selector which will display the armv6 option, and select it.
Answer by Jaywalker · Jul 05, 2010 at 03:36 PM
Hey, as concluded in the comments:
This thread solves the issue
here's what I do:
Set the project Settings which can be found under: Project > edit project settings To:
Base SDK: iPhone Device 4.0
Architectures: Standard (armv6 armv7)
Set the active target which can be found under Project > Edit active Target (or doubleclick on the Unity-iPhone in the overview under Targets) To:
Base SDK: iPhone Device 4.0
Architectures: Standard (armv6 armv7)
Set the active architecture which can be found on the quick select list in the project window right above the overview To:
- armv6
cheers!
Nice job. It's always good when we find a solution that elegantly and straightly answers the problem pointed, even if when we look back it all suddenly looks so obvious now. :)
Your answer
Follow this Question
Related Questions
Is it necessary to build my iphone app with armv7 architecture? 1 Answer
About Transprent mode 2 Answers
Distribute terrain in zones 3 Answers
Unity Iphone Exporting, armv??? 1 Answer
Can I compile for armv7 only (iPhone)? 2 Answers