What's the error for this Code Sign Error and how to fix it?

Hi All,


I am receiving the code sign error :

I cant test with the in-built simulator or archive.


CodeSign /Users/winston/Library/Developer/Xcode/DerivedData/Oddbods_Stickers-hfazfvyucidfdghkyqchigqfnpyt/Build/Products/Debug-iphonesimulator/Oddbods\ Stickers.app

cd "/Users/winston/Desktop/Oddbods Stickers"

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/winston/Library/Developer/Xcode/DerivedData/Oddbods_Stickers-hfazfvyucidfdghkyqchigqfnpyt/Build/Products/Debug-iphonesimulator/Oddbods\ Stickers.app

/Users/winston/Library/Developer/Xcode/DerivedData/Oddbods_Stickers-hfazfvyucidfdghkyqchigqfnpyt/Build/Products/Debug-iphonesimulator/Oddbods Stickers.app: Is a directory

Command /usr/bin/codesign failed with exit code 1

I am not sure what the error is and how to go about fixing it.

Can anyone help?

Regards,

Winston

It looks as though your app bundle isn't a proper bundle. What are its contents?

I know this is an old post, but it might be useful to others to mention what the problem was in my case.

I wanted to add a file to the project, but instead I accidentally added the whole project folder as a reference in the project.

Probably this messed up the way the bundle was created (some indefinite recursion), hence the strange error.

Luckily, I could pinpoint the issue by doing a git diff and noticing the change in the pbxproj file.

I had the same issue. Problem was having the same Target name as App Sources folder name in the project. Following condition does cause the issue (when target name is same as app (folder))


1) target name = app

2) directory structure:

app.xcodeproj

app (folder)

What's the error for this Code Sign Error and how to fix it?
 
 
Q