2

I recently updated my Jenkins mac mini machine from yosemite to sierra along with latest xcode ( 8.3.2 ).

Now whenever I try to build my app and code sign from jenkins job, it fails with the following cryptic error

unknown error -1=ffffffffffffffff
Command /usr/bin/codesign failed with exit code 1

When i ssh into my jenkins mac mini box as jenkins user and run the same build command everything works fine. Also, It works fine when building and signing the app from xcode. Has anyone seen this problem happening?

adsun
  • 773
  • 9
  • 30

2 Answers2

3

I think it's related to this open issue on Fastlane. You could start here:

https://github.com/fastlane/fastlane/issues/8797

StevenOjo
  • 2,498
  • 1
  • 16
  • 21
3

Adding this to the build step in Jenkins job solved the problem for me.

security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k ${JENKINS_PWD} ~/Library/Keychains/login.keychain-db

adsun
  • 773
  • 9
  • 30