Code Sign error: No provisioning profiles found
Hello,
I have configured an Xcode build step in Team City. It runs succesfully if I add:
[12:48:05]=== BUILD TARGET FS OF PROJECT FS WITH CONFIGURATION Debug ===
I have configured an Xcode build step in Team City. It runs succesfully if I add:
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
to
Additional command line parametersBut when I remove those paremeters I get the following error:
[12:48:05]=== BUILD TARGET FS OF PROJECT FS WITH CONFIGURATION Debug ===
[12:48:05]Check dependencies
[12:48:05]Code Sign error: No provisioning profiles found: No non–expired provisioning profiles were found.
[12:48:05]CodeSign
[12:48:05]CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.1'
[12:48:05][Step 1/1] ** BUILD FAILED **
[12:48:05][Step 1/1] The following build commands failed:
[12:48:05][Step 1/1] Check dependencies
[12:48:05][Step 1/1] (1 failure)
[12:48:05][Step 1/1] Process exited with code 65
[12:48:09][Step 1/1] Step Compile Family Safety target (Xcode Project) failed
This is the command line been executed:
[Step 1/1] Starting: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace cordova-project/platforms/ios/FS.xcworkspace -scheme FS clean build
It works fine if executed locally from the terminal in the mac mini where the Agent is installed.
Any clues about the cause of this issue?
Please sign in to leave a comment.
The problem was that some directories and files inside the buildAgent where owned by root causing the process to fail during the code sign phase.
changing the owner with chown:
$ chown -R username buildAgent/
solved the problem.