. Advertisement .
. Advertisement .
Hi everyone, I’m learning about programs. While working, I try run in the simulator. As a result, I get the message:
CodeSign /Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app (in target: Desker) cd /Users/admin/Desktop/AppStoreBuild/Project201 export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "-" /usr/bin/codesign --force --sign - --entitlements /Users/admin/Desktop/AppStoreBuild/Project201/build/Project.build/Debug-iphonesimulator/Project.build/Project.app.xcent --timestamp=none /Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app
/Users/admin/Desktop/AppStoreBuild/Project201/build/Debug-iphonesimulator/Project.app: resource fork, Finder information, or similar detritus not allowed Command CodeSign failed with a nonzero exit code
What can I do about the “command codesign failed with a nonzero exit code” issue? Is there a better approach?
The cause: This happens after you add a.png file and a.wav file to an existing.scn assets folder. Because of the increased security, Xcode does not like file extensions.
The solution: You can fix them one at a time by
cd‘ing into the file’s directory and using Terminal’s ‘xattr’ command to remove their extended file attributes.
To Get Rid of All Extended Attributes From a Single File
To “clean” the attributes, use xattr with the -c flag:
To Delete All Extended Attributes From a Large Number of Files
Combine the -c “clean” flag with the -r recursive flag to recursively remove extended characteristics on all files in a directory:
This problem occurred to me and Xcode did not compile on my device. However, on simulator it worked perfectly.
These steps helped me solve my problem:
Everything works perfectly after that.