开发者

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.2'

What does the following error mean开发者_JAVA技巧;

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 4.2'

I only get the error when trying to test on device.. How to fix this?


@hmthur: You would find your solution in either of these links.

These are the links you can refer to as they too discuss the same problem as you have.

http://davidbits.blogspot.com/2010/11/codesign-error-code-signing-is-required.html

and

http://forums.macrumors.com/showthread.php?t=1061459

As far as I know, it is something to do with setting your active executable as Simulator and not device if you don't have developer license.

Also in some cases it is the problem with the code signing identity as discussed in one the links above.

Hope this helps you.


Make sure you have Targets (not Project) selected when you are editing Build Settings - Code Signing. Then under Debug, all of the options must be set to the Provisioning Profile for your particular bundle identifier, and under Release all of the options must be set to the Distribution profile of your particular bundle identifier.


If you run xcodebuild from a Build Phase Run Script or Pre- or Post action in the schemes in another target, and you copy the environment variables, this problem might occur also.

To fix this, run xcodebuild without the environment variables like so:

/usr/bin/env -i xcodebuild <xcodebuild arguments>

Compiling and running a target during the build phase of another target is used when a coredata store needs to be prefilled before archiving.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜