XCode 4.3 - Build error “missing required architecture armv7”

后端 未结 6 842
太阳男子
太阳男子 2021-01-02 15:37

After upgrade XCode from 4.2 to 4.3 I\'ve got below problem. I can\'t build it. Do you guys have idea how can I resolve this problem? even some clue would be helpful to me.<

6条回答
  •  醉话见心
    2021-01-02 16:16

    I was getting the same linking error for the Simulator after upgrading from Xcode 4.2 -> 4.3.1. I noticed that new projects in 4.3.1 do work with Unit Tests, so just compared the project differences.

    What fixed it for me was:-

    1. Select Project in project navigator
    2. Select Test Target
    3. Select Build Settings
    4. Go down to Framework Search Paths and single-click it
    5. Delete whatever is there
    6. Enter $(SDKROOT)/Developer/Library/Frameworks $(DEVELOPER_LIBRARY_DIR)/Frameworks
    7. If you had any custom frameworks, add those back

    Actually, Unit Tests run fine on the Device, too.

提交回复
热议问题