Is there a limit on the input file size for the strip command?
One of the universal libraries created as a part of the xcodebuild archive process is failing while being stripped of the debug symbol table.
Size of the libMapControl.a
armv7 - 2.3gb
arm64 - 2.31gb
universal - 4.61gb
Running the strip command individually on the armv7 and arm64 seems to work fine. But running it on the combined univeral library fails with exit code 1 (invalid argument).
Here is the actual command and output. The size of the file makes me think the issue could be because of the size. Could anyone give me pointers on resolving this without breaking up the library? Interestingly, I don't seem to run in to any issues while deploying the app to a device from Xcode directly.
[command]
/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
[error]
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't write output file: /Users/foobar/Library/Developer/Xcode/DerivedData/MapControliOS-cmcidyjaipmkarepuvchfvmxpqab/Build/Intermediates.noindex/ArchiveIntermediates/MapHost - Release/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libMapControl.a.strip (Invalid argument)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip failed with exit code 1