XCode 9:删除命令输入文件的大小限制

时间:2018-09-14 06:26:17

标签: xcode strip

strip命令的输入文件大小是否受到限制?

在删除调试符号表时,作为xcodebuild存档过程一部分创建的通用库之一失败。

libMapControl.a的大小

armv7-2.3gb

arm64-2.31gb

通用-4.61gb

分别在armv7和arm64上运行strip命令似乎可以正常工作。但是在组合的通用库上运行它会失败,并显示退出代码1(无效参数)。

这是实际的命令和输出。文件的大小使我认为问题可能是由于大小。有人可以在不破坏图书馆的情况下为我提供解决此问题的建议吗?有趣的是,在直接将应用程序从Xcode部署到设备上时,我似乎没有遇到任何问题。

[命令]

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -S -T / Users / foobar / Library / Developer / Xcode / DerivedData / MapControliOS-cmcidyjaipmkarepuvchfvmxpqab / Build / Intermediates。 noindex / ArchiveIntermediates / MapHost \-\ Release / IntermediateBuildFilesPath / UninstalledProducts / iphoneos / libMapControl.a

[错误]

错误:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip:无法写入输出文件:/ Users / foobar / Library / Developer / Xcode / DerivedData / MapControliOS- cmcidyjaipmkarepuvchfvmxpqab / Build / Intermediates.noindex / ArchiveIntermediates / MapHost-Release / IntermediateBuildFilesPath / UninstalledProducts / iphoneos / libMapControl.a.strip(无效参数)

命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip失败,退出代码为1

0 个答案:

没有答案