The error in Xcode - "No architectures to compile for..."

Hi!

Explain to me, please that means the error in Xcode:
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv6).

I’ve found only this:
Build - Architectures:
Architectures armv6 armv7
Valid Architectures armv6 armv7
but it has not turned out…

My OS - 10.6.3 and arch=i386…
Help me, please!

It’s possible the provisioning profile isn’t correctly set up (check out this thread for some more information).

the problem is that you try to compile for simulator (active arch i386) while you set only armv6 for valid. seems like you try to use the sim target to build a device runtime which is impossible.