Skip to content

xcode-project use-profiles failing due to certificate length #2663

Closed Answered by priitlatt
pstromberg98 asked this question in Q&A
Discussion options

You must be logged in to vote

@pstromberg98, actually there is nothing wrong with the certificate. It is just that RFC-5280 specifies min and max lengths for certificate's common name, which isn't respected/enforced by Apple. Recent version of cryptography reports about such cases as a warning.

The actual failure reason is in your project file ios/Runner.xcodeproj/project.pbxproj, where code signing entitlements are not defined properly. According to our logs the problematic line is 463:

CODE_SIGN_ENTITLEMENTS = CODE_SIGN_ENTITLEMENTS = "Runner/RunnerDebug-production.entitlements";;

which I believe should instead be

CODE_SIGN_ENTITLEMENTS = "Runner/RunnerDebug-production.entitlements";

You can use the switch --code-…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pstromberg98
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants