I’ve recently been doing some iphone dev and ran into these two problems. I traced the issue down to the fact i had been doing JailBreak development with xcode before enrolling in the apple developer program. When setting up xcode to not codesign I set a couple plist values as NO. Specifically ENTITLEMENTS_REQUIRED, the two problems described are a result of this. If you are having this problem, either restore your backed up plists or reinstall xcode and try to build your project again. You may need to clean your targets.