The error of the command / usr / bin / codesign with exit code 1

CodeSign "build/Release-iphoneos/Nice Saying123.app"
cd "/Users/c28/Documents/Office Projects/Nice Saying123"
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
/usr/bin/codesign -f -s "iPhone Developer: dipak kasabwala (29QJU3WV6X)" "--resource-rules=/Users/c28/Documents/Office Projects/Nice Saying123/build/Release-iphoneos/Nice Saying123.app/ResourceRules.plist" --entitlements "/Users/c28/Documents/Office Projects/Nice Saying123/build/Nice Saying123.build/Release-iphoneos/Nice Saying123.build/Nice Saying123.xcent" "/Users/c28/Documents/Office Projects/Nice Saying123/build/Release-iphoneos/Nice Saying123.app"

/Users/c28/Documents/Office Projects/Nice Saying123/build/Release-iphoneos/Nice Saying123.app: replacing invalid existing signature
/Users/c28/Documents/Office Projects/Nice Saying123/build/Release-iphoneos/Nice Saying123.app: CSSMERR_TP_NOT_TRUSTED
Command /usr/bin/codesign failed with exit code 1
+5
source share
6 answers

I had the same error, and I tried everything under the sun, including what was on the link discussions.apple.comabove. For me, the problem was that in Keychain Access, the actual Apple WWDR certificate was marked as Always Trust . This should be System Defaults . This also applies to development and distribution certificates. If any of them are incorrectly set to Always Trust , this may cause this problem.

, Access Keychain Access Apple , . " :" " ".

, " " , , - :(... , !

Hattip to @MariaZverina, / .

: , .

+17

:), , , : :)

, , , , Always Trust, .

Apple Code Apple Worldwide Developer Relations.

+2

: //XXXXXXXX/Library//Xcode/DerivedData/XXXXXXXXXX-fictlumohhjzjxcfmyfpwvrjakqa/Build/Products/Debug-iphoneos/XXXX XXX.app: ,

/usr/bin/codesign 1

. : OSX Lion, Xcode 4.1 iOS 4.3

, . . .

  • Your_Project.xcodeproj > project.pbxproj.

: - Info.plist . / pbxproj. o , (Distribution). info.plist , .

, , .

8917E65D14244E5100B703F8 /* Distribution */ = {
            isa = XCBuildConfiguration;
            buildSettings = {
                ALWAYS_SEARCH_USER_PATHS = NO;
                ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
                CODE_SIGN_ENTITLEMENTS = "";
                CODE_SIGN_IDENTITY = "iPhone Distribution: XXXXXXXX XXXXXXX";
                "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: XXXXXXXX XXXXXXX";
                COPY_PHASE_STRIP = YES;
                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                GCC_PREFIX_HEADER = XXXXX_Prefix.pch;
                INFOPLIST_FILE = Info.plist;
                IPHONEOS_DEPLOYMENT_TARGET = 4.3;
                ONLY_ACTIVE_ARCH = NO;
                PRODUCT_NAME = "Product Name";
                PROVISIONING_PROFILE = "XXXXXXXX-XXXX-4ACA-A26E-XXXXXXXXXXXXX";
                "PROVISIONING_PROFILE[sdk=iphoneos*]" = "XXXXXXXX-XXXX-4ACA-A26E-XXXXXXXXXXXXX";
                SDKROOT = iphoneos4.3;
                SEPARATE_STRIP = YES;
                TARGETED_DEVICE_FAMILY = 2;
                VALIDATE_PRODUCT = YES;
                WRAPPER_EXTENSION = app;
            };
            name = Distribution;
        };
0

, (Apple WWDR ). , , , .. , , , , . , , . . Apple , Keychain Access, .

, : Apple WWDR ( , iOS Mac App Store), ( , , App Store).

0

.

, , , / .

.

0

"iPhone Developer", "Always Trust". "System Defaults" !:-)

I was also able to get it working by selecting "System Defaults"

0
source

All Articles