Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sashakid opened this issue Jun 27, 2015 · 3 comments
Open

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

sashakid opened this issue Jun 27, 2015 · 3 comments

Comments

@sashakid
Copy link

When I add your lib by dragging to my project and import ELCImagePickerHeader.h, I get compile error:

CodeSign /Users/??????/Library/Developer/Xcode/DerivedData/AppName-bnlmyqsjartgzhauhgboorvhqumx/Build/Products/Debug-iphoneos/AppName.app
    cd "/Users/??????/Desktop/Development/_SI/AppName"
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Developer: Dmitry ?????? (???????)"
Provisioning Profile: "iOSTeam Provisioning Profile: *"
                      (1319b514-b172-477c-96c5-??????????)

    /usr/bin/codesign --force --sign 10921F77E60061C4926B3C6D8BFEB53A4E2F21BF --entitlements /Users/????????/Library/Developer/Xcode/DerivedData/AppName-bnlmyqsjartgzhauhgboorvhqumx/Build/Intermediates/AppName.build/Debug-iphoneos/AppName.build/AppName.app.xcent /Users/????????/Library/Developer/Xcode/DerivedData/AppName-bnlmyqsjartgzhauhgboorvhqumx/Build/Products/Debug-iphoneos/AppName.app

/Users/????????/Library/Developer/Xcode/DerivedData/AppName-bnlmyqsjartgzhauhgboorvhqumx/Build/Products/Debug-iphoneos/AppName.app: code object is not signed at all
In subcomponent: /Users/????????/Library/Developer/Xcode/DerivedData/AppName-bnlmyqsjartgzhauhgboorvhqumx/Build/Products/Debug-iphoneos/AppName.app/AppIcon29x29@2x.png
Command /usr/bin/codesign failed with exit code 1

Dont understand what the hell is going on and spent few hors trying to ressolve it :-)

@Hazer
Copy link

Hazer commented Oct 20, 2015

I know this is old, just leaving it here for reference, I had the same problem with my own code, never used this library.

In this library, there's a Resources folder and for some reason, if you reference this folder in your project, it will crash the codesign.
https://github.com/B-Sides/ELCImagePickerController/tree/master/Classes/ELCImagePicker/Resources

The workaround, chance folder name to something else, like MyResources, ExtraResources, whatever...

@gunjan9um
Copy link

Great one @Hazer .. I was not using this library but somehow got two resource folder and was getting codesign error. Wasted the whole day figuring out what went wrong suddenly.

You answer saved me...

@tgsoon2002
Copy link

tgsoon2002 commented May 21, 2018

I found it related to the png file in that folder. As I have problem of exit code 1 after add an png image. I found this solution on stack over flow : link
Some how if you make the image target your main application. it give the error
Hope this help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants