application executable is missing a required architecture armv6

前端 未结 8 1678
轻奢々
轻奢々 2020-12-02 08:00

I am using xCode 4.2 and trying to deploy my application. I am failing the validation with the following error message:

application executable is missing a          


        
相关标签:
8条回答
  • 2020-12-02 08:21

    Easy way to do it:

    1) Left-click project icon (blue icon, under "Run" button).

    2) Next to the project icon (to the right of it), left-click on project name under "PROJECT" (White background).

    3) Select tab "Build Settings" and look for submenu "Architectures" (First one). Left-click on "Standard (armv7) $(ARCH_STANDARD_32_BIT)" and select "Other..."

    4) Click on the "-" icon to remove original value ("$(ARCH_STANDARD_32_BIT)"). Click the "+" icon and write "armv6" (without double-quotes). Click the "+" icon again and add "armv7" (also without double-quotes). Click "Done".

    5) Make sure that "Build Active Architecture Only" is set to "No" (it should be)

    6) Next to the project icon (to the right of it), left-click on project name under "TARGETS" and repeat steps 3, 4 and 5.

    7) Press cmd + I on your keyboard (or Product -> Profile on Xcode menu) and check to see if everything is ok.

    0 讨论(0)
  • 2020-12-02 08:24

    My environment was Xcode 4.5.1. Changing two things solved this issue for me.

    1. Setting the deployment target to at least iOS 4.3.
    2. Keeping only armv7 architecture in the Architectures list under build settings and removing all others (including armv6) explicitly.
    0 讨论(0)
  • 2020-12-02 08:27

    Adding armv6 was only partially the problem for me to resolve the same issue with Xcode 4.5. I also had to increase my deployment target from iOS 4.1 to iOS 5.0 to get it to work. Many hours of frustration for such a simply fix. Hope it helps.

    0 讨论(0)
  • 2020-12-02 08:38

    In the Xcode 4.2 GM this is still a problem but you can resolve it by doing the following.

    1. Switch to the files/folders view in xcode project

    2. Select your Project ( the blue icon)

    3. Select your Application under Targets in the middle of the screen.

    4. Go To build settings

    5. Find Architectures > Distribution

    6. Expand this section so you can see both Debug and Release

    7. Change "Standard (armv7) - $(ARCH_STANDARD_32_BIT)" to "Other..."

    8. Replace, "Standard (armv7) - $(ARCH_STANDARD_32_BIT)" with "armv6", then add a new item "armv7"

    Remember you may need to do this for all included projects aka frameworks such as TAPKU

    enter image description here

    0 讨论(0)
  • For Xcode 4.5, set the deployment target to at least iOS 4.3 and that will resolve it. armv6 and earlier versions of iOS are almost extinct.

    0 讨论(0)
  • 2020-12-02 08:39

    For me it helped when I set only armv6 under Architectures

    0 讨论(0)
提交回复
热议问题