UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Project 1; CodeSign failed with a nonzero exit code

Forums > 100 Days of Swift

Hello, I'll post the error log below. Newly created projects will build, but once they're modified the build fails. I don't have any warnings, or errors in the Signing & Capabilities window. The Team and Bundle Identifier are satisfied. Everything seems to checkout in the Provisioning Profile. Signing Cerfificate points at my email address.

I've tried to follow some suggestions from searching google, but that's not getting me anywhere.

Any suggestions are appreciated,


Showing Recent Errors Only

Build target Project1 of project Project1 with configuration Debug

CodeSign /Users/rtp/Desktop/projects/swift5/100Days/Project1-bxcvvayqhetmfbfwdqxeumwzlixe/Build/Products/Debug-iphonesimulator/Project1.app (in target 'Project1' from project 'Project1') cd /Users/rtp/Desktop/projects/swift5/100Days/Project1 export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity: "-"

/usr/bin/codesign --force --sign - --entitlements /Users/rtp/Desktop/projects/swift5/100Days/Project1-bxcvvayqhetmfbfwdqxeumwzlixe/Build/Intermediates.noindex/Project1.build/Debug-iphonesimulator/Project1.build/Project1.app.xcent --timestamp=none /Users/rtp/Desktop/projects/swift5/100Days/Project1-bxcvvayqhetmfbfwdqxeumwzlixe/Build/Products/Debug-iphonesimulator/Project1.app

/Users/rtp/Desktop/projects/swift5/100Days/Project1-bxcvvayqhetmfbfwdqxeumwzlixe/Build/Products/Debug-iphonesimulator/Project1.app: resource fork, Finder information, or similar detritus not allowed Command CodeSign failed with a nonzero exit code

3      

Progress Report

CodeSign becomes problematic after adding the Content folder with Copy and Groups. To worm around the issue, without knowing what's actually happening, create the bundle, build, add Content, and then Product / Clean Build Folder. Additionally, Erase all Content and Settings in the Simulator. I doubt that affects the CodeSign, but it keeps the simulator free of the many failed Projects. I guess cleaning the build folder after modifying the bundle seems like the key.

3      

Interestingly enough the error provides a hint "resource fork, Finder information, or similar detritus not allowed Command CodeSign failed with a nonzero exit code." Maybe we're cleaning out conflicting detritus something or others. :)

3      

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.