我正在尝试通过xcodebuild创建一个包:
xcodebuild \
-project "${sourceDir}/project.xcodeproj" \
-target pubBundle \
-configuration Release \
-sdk ${sdk} \
ONLY_ACTIVE_ARCH=no \
BUILD_DIR="${scratchDir}/Lib" \
BUILD_ROOT="${scratchDir}/Lib" \
BITCODE_GENERATION_MODE=bitcode \
-verbose
但是构建失败。我收到的主要错误消息是断言错误Assertion failed: (sizeBack == listSize), function _has_code_signature_extended_attribute, file /Library/Caches/com.apple.xbs/Sources/XCBuild/XCBuild-14460.14/XCBCSupport/PbxCp.mm, line 727.
有四个与我要放入捆绑包中的资源有关的错误。例如:
CopyStringsFile /var/folders/z5/jy1hb_7s5j917zdc30nry751wp7r61/T/iosBuild/Lib/Release-iphoneos/pubBundle.bundle/Custom.strings /Users/userid/Documents/Source/project/App/Resources/Custom.strings (in target: pubBundle)
cd /Users/userid/Documents/Source/project
builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /var/folders/z5/jy1hb_7s5j917zdc30nry751wp7r61/T/iosBuild/Lib/Release-iphoneos/pubBundle.bundle -- /Users/userid/Documents/Source/project/App/Resources/Custom.strings
Command CopyStringsFile failed with a nonzero exit code
到目前为止,我已经尝试过:
我想进一步调查给定的错误,但是/Library/Caches/com.apple.xbs目录在我的计算机上不存在。该PbxCp.mm文件来自哪里?