iPhone Compiler Fails: No architectures to compile for

前端 未结 9 1448
轻奢々
轻奢々 2020-12-01 08:01

I\'m trying to implement the Cocoa plotting framework (Alpha Release 0.1) in my iPhone app.

I figured I\'d first try to run the sample they provide. I attempted to o

相关标签:
9条回答
  • 2020-12-01 08:27

    I also went to the Build settings for the target(s) that failed and added "i386" to the valid architectures

    0 讨论(0)
  • 2020-12-01 08:37

    You have selected as active architecture "active arch=i386 (your Mac)" but the project compiles for " VALID_ARCHS=armv6 armv7 (iPhone Device)", try setting the right arch in the project settings, so it is built for iPhone as it should be.

    0 讨论(0)
  • 2020-12-01 08:37

    If you tried all method with "NO SUCCESS"

    • Try to run project on you device, if it works on device then it will works fine on simulator too.
    0 讨论(0)
  • 2020-12-01 08:38

    armv6 armv7 , Works for me in valid Architecture .

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

    Adding i386 to the Valid Architectures list worked for me!

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

    This happens all the time with old projects migrated to SDK 3.2/4.0. You have to open the target settings and change everything to SDK 4.0 or 3.2. You can still have the target OS be 3.0 if you want that. If it still says "missing SDK" you neglected to change one of those settings to 4.0 or 3.2.

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