Xcode Error with "Code Signing" Error

Alternative names

(For search)

  • Xcode 'CodeSign Error: Code Signing Required'
  • Xcode: iPhone application code error
  • / usr / bin / codesign failed with exit code 1
  • Jenkins not working with code sign error
  • Command line failure: "provisioning profiles not found"
  • Xcode project archiving fails with initialization error
  • Missing Signing Certificates in Xcode

Symptoms

The problem manifests itself in one of several ways:

  • Running the application on the device leads to an error that refers to "code signing" or "expired certificates"
  • Creating from the command line (or using a continuity integration system like Jenkins ), with an error similar to this:

    Check dependencies Code Sign error: No unexpired provisioning profiles found that contain any of the keychain signing certificates 
  • Application archiving is not performed using "code signing" or "expired certificates", where work or collection is performed correctly.

Often a project can have several configurations, and sometimes only a subset will fail. Deleting and restoring training profiles is not affected.

+16
ios iphone xcode code-signing xcrun
Dec 19 '12 at 22:30
source share
2 answers

Checking the CODE_SIGN_IDENTITY script.

Often in settings that use version control, project.pbxproj can be combined so that two lines of CODE_SIGN_IDENTITY can be inserted. In some situations, this causes problems with Xcode (for example, building or archiving on the command line).

The tooltip is lines similar to this in the project.pbxproj file (right-click on the project and select "Show Package Contents ...")

 "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Distribution"; 

Removing one of these lines will allow you to choose the correct value in the build settings, and the project should build correctly again.

I created a simple script to help diagnose this problem, which can be found here: https://github.com/rjstelling/Xcode-Project-Validate

+28
Dec 19 '12 at 22:30
source share
— -

I got this code error with the Open Source Github project that I only wanted on my own device (not in the store or something else) and I don't have a paid membership account.

In this case, in the meantime (with Xcode 7) he can configure and allow your application as unsigned but trusted.

Everything is explained here: stack overflow

+1
Nov 08 '16 at 23:35
source share



All Articles