Fix bitcode problem exporting with xcodebuild. #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Exporting archive using xcodebuild -exportOptionsPlist is
failing with the 1.3 release of Multi-OS Engine. The export
fails with an error like this:
Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices
found." UserInfo={NSLocalizedDescription=No applicable devices found.}
More details in IDEDistribution.standard.log:
"Failed to verify bitcode in MOE.framework/MOE:\nerror: Bundle only
contains bitcode-marker
/var/folders/vb/zpw1mfn94yj6rq6s7byp403r0000gn/T/IDEDistributionThinningStep.qN8/Payload/testfoo.app/Frameworks/MOE.framework/MOE
(armv7)\n\n";
The root problem is that the following file contains a bitcode marker
section, which was not present when using Multi-OS engine 1.2.5:
build/moe/xcodebuild/Release-iphoneos/testfoo.app/Frameworks/MOE.framework/MOE
You can see the section by running the following command:
xcrun size -x -m -l MOE
The difference between 1.2.5 and 1.3 is that 1.2.5 was embedding
the MOE.framework using the xcode project configuration, which
copied the framework with STRIP_BITCODE_FROM_COPIED_FILES set to
the default YES. This stripped out the bitcode marker section
and segment. However 1.3 is copying the framework using a build
script, which doesn't strip out the section.
This commit adds a call to strip out the bitcode from the framework
using the 'bitcode_strip' tool.