问题
I know this has been asked before.
However, I have ensured that the profile is in BOTH the project and target.
Actually should I set that up in the project or in target?
Update: I can actually install the app on device but if and only if I change the code signing identity to iPhone Developer for debug.
However, I obviously want to launch the application with my distribution profile instead of my developer profile.
回答1:
I finally got this thing solved.
Basically I deleted all certificate and provisioning profile from itunes connect or apple developer website.
Then I waited 5 minutes. Add 2 distribution provisioning profile. Then do it again.
It works.
Oh ya, I need to ensure that the code signing identity points to the right provisioning profile. That's it.
回答2:
Make your deployment target less than 6.1. It will work
回答3:
In my case, I didn't set the Scheme correctly. Newbies can forget this sometimes.
Go to: Product -> Scheme -> Edit Scheme
Select Archive and make sure that the Build Configuration has desired value Debug/Release (as compared to target settings)
来源:https://stackoverflow.com/questions/15262177/codesign-error-code-signing-is-required-for-product-type-application-in-sdk