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
  • 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)

Replies

Any update on this. Please update we need to release this as soon as possible.

Please update we need to release this as soon as possible.

DevForums is an informal support channel. If no one chimes in here, and the matter is urgent, I recommend that you open a DTS tech support incident and talk to our tool’s specialist.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thank you. I have opened this incident at theDTS.

Would you mind sharing the results of your DTS? Was this possible? What did you end up doing to resolve this?

Thanks a lot for sharing your results.