Bitcode Support for Xcframework

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 Enable Bitcode to YES
  • Under “Apple LLVM 9.0 – Custom Compiler Flags”, “Other C Flags”, add -fembed-bitcode to both Debug and Release
  • Click the “+” button and select “Add User-Defined Setting”
  • Enter BITCODE_GENERATION_MODE as the value
  • 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/ normal armv7

(1 failure)

Powered by WPeMatico

You may also like...

Comments are closed.