XCode 4.5 (4G182) + iPhone 5 iOS6 - Choose a destination with a supported architecture in order to run on this device

后端 未结 17 2265
我寻月下人不归
我寻月下人不归 2020-12-14 07:06

So I have a brand new app I created last night for iOS6, using XCode 4.5. I can properly develop on my iPhone 4 with iOS6.

Today I got my new iPhone 5 with iOS6 and,

相关标签:
17条回答
  • 2020-12-14 07:32

    some times this happens when your project was build in xcode 4.5 and you are trying to run in xcode 5.0. so in my case I found the solution.

    Change your compiler for C/C++/ObjectiveC Go to Build

    Settings->Build OPtions->compiler for C/C++/ObjectiveC; select Default(Apple LLVM5.0)

    0 讨论(0)
  • 2020-12-14 07:33

    One of my 3rd party libraries couldn't run on armv7s so I removed that option. I also removed armv6 and kept armv7 as the only option. It built and ran on the phone with only armv7.

    0 讨论(0)
  • 2020-12-14 07:34

    Make sure the bundle name (in plist file) is same as the project name. I changed it and it worked.

    0 讨论(0)
  • 2020-12-14 07:35

    Also you need to select the compiler LLVM in

    Project --> Build Settings --> Build Options

    enter image description here

    0 讨论(0)
  • 2020-12-14 07:41

    Just need to select the compiler LLVM in

    Targets --> Build Settings --> Build Options

    We just need to change the unsupported compiler to the default compiler :)

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