Codesign returns an unknown error after "replacing an existing signature"

I am trying to create a Xamarin iOS application using xbuild on Jenkins. Sometimes the assembly fails during the process of creating codes with an unknown error -1 = fffffffffffffffff, and sometimes the assembly succeeds. The initialization profile is stored in a separate jenkins.keychain keychain (and not in the system or login chain), which Jenkins refers to through the Key blank and profile profile plugin .

This is the Jenkins console log:

Target _CodesignAppBundle:
    Codesign Task
      CodesignAllocate: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
      DisableTimestamp: False
      Entitlements: obj/iPhone/In-House/Entitlements.xcent
      Keychain: <null>
      Resources:
        bin/iPhone/In-House/MyApp.app
      ResourceRules: <null>
      SigningKey: 123
      ExtraArgs: <null>
      IsAppExtension: False
    Tool /usr/bin/codesign execution started with arguments: -v --force --sign 123 --entitlements /private/var/lib/jenkins/workspace/Master/Apps/iOS/obj/iPhone/In-House/Entitlements.xcent /private/var/lib/jenkins/workspace/Master/Apps/iOS/bin/iPhone/In-House/MyApp.app


bin/iPhone/In-House/MyApp.app: error : /private/var/lib/jenkins/workspace/Master/Apps/iOS/bin/iPhone/In-House/MyApp.app: replacing existing signature
   /private/var/lib/jenkins/workspace/Master/Apps/iOS/bin/iPhone/In-House/MyApp.app: unknown error -1=ffffffffffffffff
    Task "Codesign" execution -- FAILED
    Done building target "_CodesignAppBundle" in project "/private/var/lib/jenkins/workspace/Master/Apps/iOS/MyApp.csproj".-- FAILED

As suggested by Codesign returned an unknown error -1 = ffffffffffffffff I added a set-key-partition-list -S apple-tool:,apple:,codesign: -s -k ${KEYCHAIN_PW} ${KEYCHAIN_PATH}script to my assembly, but this did not fix the problem.

, ? ?

1 - :

Apple.

+4
1

​​:

keychain *.keychain *.keychain-db macOS Sierra. keychain, jenkins.keychain-db, . . keychain login.keychain-db. .

0

Source: https://habr.com/ru/post/1682762/


All Articles