Codesign command is extremely long making builds last 20-30 minutes

I created a question on StackOverflow.


Everytime I'm running my projects on a device, it takes at least 20 minutes to compile, because of this command used in the framework.sh script of Cocoapods:


/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1"


When I open the Console app of my macbook, I can see tons and tons of logs with "signcode" as a search term.

The thing here is that there is no volumes called "ToutSaufVac".


Any idea how to fix this?


I'm working on Sierra (10.12.1) and with Xcode 8.1 (8B62)

Recommend you try this, instead:


local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '"$1"'"


local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '"$1"'"


..and then do an option-clean build folder before trying again.


Good luck.

Codesign command is extremely long making builds last 20-30 minutes
 
 
Q