3 Replies
      Latest reply on Jan 16, 2020 2:00 AM by cbgcbfd
      cbgcbfd Level 1 Level 1 (0 points)

        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
        • Set BITCODE_GENERATION_MODE to 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)