Hi All,
I am creating an xcframework and I was able to create one but now I want to add bitcode support to my custom created xcframework however I am unable to do so. I have followed the following steps for making it bitcode enabled:
- Select the framework project and switch to “Build Settings” tab
- Under “Build Options”, switch
toEnable Bitcode
YES
- Under “Apple LLVM 9.0 - Custom Compiler Flags”, “Other C Flags”, add
to both-fembed-bitcode
andDebug
Release
- Click the “+” button and select “Add User-Defined Setting”
- Enter
as the valueBITCODE_GENERATION_MODE
- Set
toBITCODE_GENERATION_MODE
bitcode
- Do the same to Pods project as follows, if it exists
The following error I am getting while creating XCframework with bitcode enabled. Can anyone please answer and help me on this.
The following build commands failed:
Ld /tmp/iphoneos/Build/Intermediates.noindex/ArchiveIntermediates/frameworkName/IntermediateBuildFilesPath/frameworkName.build/Release-iphoneos/frameworkName.build/Objects-normal/armv7/Binary/frameworkName normal armv7
(1 failure)