您的位置:首页 > 移动开发 > IOS开发

IOS 开发codesign错误

2011-12-30 16:29 239 查看
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就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: