IOS 开发codesign错误

CodeSign /Users/wbw1985/Library/Developer/Xcode/DerivedData/KamiReader-cpaixyryjhncqrguszybjwufhkqf/ArchiveIntermediates/KamiReader/InstallationBuildProductsLocation/Applications/KamiReaderR.app

    cd /Users/wbw1985/paul/1.1_kami/KamiReader

    setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate

    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

    /usr/bin/codesign --force --sign "iPhone Distribution: li xiaona" --resource-rules=/Users/wbw1985/Library/Developer/Xcode/DerivedData/KamiReader-cpaixyryjhncqrguszybjwufhkqf/ArchiveIntermediates/KamiReader/InstallationBuildProductsLocation/Applications/KamiReaderR.app/ResourceRules.plist --entitlements /Users/wbw1985/Library/Developer/Xcode/DerivedData/KamiReader-cpaixyryjhncqrguszybjwufhkqf/ArchiveIntermediates/KamiReader/IntermediateBuildFilesPath/KamiReader.build/Release-iphoneos/KamiReader.build/KamiReaderR.xcent /Users/wbw1985/Library/Developer/Xcode/DerivedData/KamiReader-cpaixyryjhncqrguszybjwufhkqf/ArchiveIntermediates/KamiReader/InstallationBuildProductsLocation/Applications/KamiReaderR.app


/Users/wbw1985/Library/Developer/Xcode/DerivedData/KamiReader-cpaixyryjhncqrguszybjwufhkqf/ArchiveIntermediates/KamiReader/InstallationBuildProductsLocation/Applications/KamiReaderR.app: object file format unrecognized, invalid, or unsuitable

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


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


解决方法:

在工程的build settings中找到build variants 将Debug和Release都改成normal就可以了



你可能感兴趣的:(IOS)