我在Jenkins上执行打包脚本:
xcodebuild archive \
-workspace ${projectName}.xcworkspace \
-scheme ${projectName} \
-configuration ${configuration} \
-archivePath ../${projectName}.xcarchive \
-sdk iphoneos \
CODE_SIGN_STYLE="Manual" \
DEVELOPMENT_TEAM=${developmentTeam} \
CODE_SIGN_IDENTITY="iPhone Developer"
报错如下:
Signing Identity: "iPhone Developer"
/usr/bin/codesign --force --sign 2E952ECA342AA0A7C10735FF1D0DB0DBC7D109D6 --timestamp=none /Users/cmo/Library/Developer/Xcode/DerivedData/FateSaber-eingynanziyvcucylzbfzvjnoujn/Build/Intermediates.noindex/ArchiveIntermediates/FateSaber/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RSKImageCropper.framework
/Users/cmo/Library/Developer/Xcode/DerivedData/FateSaber-eingynanziyvcucylzbfzvjnoujn/Build/Intermediates.noindex/ArchiveIntermediates/FateSaber/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/RSKImageCropper.framework: unknown error -1=ffffffffffffffff
Command /usr/bin/codesign failed with exit code 1
** ARCHIVE FAILED **
其中frameworks配置为Don't Code Sign
使用 CODE_SIGN_STYLE=Automatic
还是报同样的错