B-Sides / ELCImagePickerController

A clone of the UIImagePickerController using the Assets Library Framework allowing for multiple asset selection
http://www.icodeblog.com
1.65k stars 469 forks source link

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

Open sashakid opened 9 years ago

sashakid commented 9 years ago

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 commented 9 years ago

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 commented 8 years ago

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 commented 6 years ago

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