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?