I get "Command / usr / bin / codesign failed" in Xcode when I try to create an application

CodeSign /Users/ompatel/Library/Developer/Xcode/DerivedData/MakeThemFall-ckljohmknnkuehgbzbfbwmcmrfpa/Build/Products/Debug-iphonesimulator/MakeThemFall.app
    cd "/Users/ompatel/Downloads/2 App First/MakeThemFall/MakeThemFall.spritebuilder"
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --timestamp=none /Users/ompatel/Library/Developer/Xcode/DerivedData/MakeThemFall-ckljohmknnkuehgbzbfbwmcmrfpa/Build/Products/Debug-iphonesimulator/MakeThemFall.app

/Users/ompatel/Library/Developer/Xcode/DerivedData/MakeThemFall-ckljohmknnkuehgbzbfbwmcmrfpa/Build/Products/Debug-iphonesimulator/MakeThemFall.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
+4
source share
2 answers

It seems that one or more of your files contains additional advanced attributes. This error appears starting with OSX Sierra by increasing security.

Pay attention to the technical note and solution for apples: https://developer.apple.com/library/content/qa/qa1940/_index.html

This is a security change that was introduced with iOS 10, macOS Sierra, watchOS 3, and tvOS 10.

Signing the code no longer allows any file in the application bundle to have an extended attribute containing a fork resource or Finder information.

, , :

$xattr -lr path_to_app_bundle

path_to_app_bundle

xattr:

$xattr -cr path_to_app_bundle

, Finder Show Package Contents Finder . , , .

> clean .

. Dropbox , Dropbox

+1

.

Command + Shift + Alt + K
+1

Source: https://habr.com/ru/post/1657230/


All Articles