unsupported resource found (something not a directory, file or symlink) Command /usr/bin/codesign failed with exit code 1
It's like duplicate but not duplicate. Please have a look.
Complete error log :
/usr/bin/codesign --force --sign 491E340B5E328D23372C090BB9ED8E9E2D610AE1 --entitlements /Users/aCompanyname/Library/Developer/Xcode/DerivedData/aAppName-cstkxztmaerbnbcjdfhqxaugmcbi/Build/Intermediates/ArchiveIntermediates/aAppName/IntermediateBuildFilesPath/aAapName.build/Release-iphoneos/aAapName.build/aAapName.app.xcent --timestamp=none /Users/aCompanyname/Library/Developer/Xcode/DerivedData/aAapName-cstkxztmaerbnbcjdfhqxaugmcbi/Build/Intermediates/ArchiveIntermediates/aAapName/InstallationBuildProductsLocation/Applications/aAapName.app
/Users/aCompanyname/Library/Developer/Xcode/DerivedData/aAapName-cstkxztmaerbnbcjdfhqxaugmcbi/Build/Intermediates/ArchiveIntermediates/aAapName/InstallationBuildProductsLocation/Applications/aAapName.app:
unsupported resource found (something not a directory, file or symlink) Command /usr/bin/codesign failed with exit code 1
It happens sudden when generating build. after spend some time on different forums i have checked all the things in Keychain access and developer account and also in xcode for code signing. Everything is looks good. cant find actual problem.
Please share solution or any idea if anyone have. Thank you.
I encountered this error when I had a named pipe lurking somewhere inside my app bundle. As the error states, it is not a directory, file or symlink. It's also a real pain to find as it's hidden to finder, so you need to use ls -la
in a terminal to find it - you can tell an entry is a named pipe if it starts with a "p" (e.g., prw-------@
).
One app I know that leaves named pipes lying around is the Realm Browser. This generates some .realm.note
named pipes. If you happen to use a realm file inside your app bundle (e.g., a read only or pre-set up database), make sure you delete it, gitignore *.realm.note
and be careful of them whenever you use the Realm browser!
Obviously, it would be more helpful if the error left on codesign could give you the location of the offending named pipe, and I've filed a radar for this: rdar://28666836
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With