have been struggling for few days... Basically I have build a compiled released framework and distribute it with cocoaPods. The problem is that then archiving this framework application gets the following error:
ld: bitcode bundle could not be generated because '/.../testingPodsAcrossversions/Pods/Pod/Pod.framework/Pod' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/.../testingPodsAcrossversions/Pods/Pod/Pod.framework/Pod' for architecture arm64
I have did these things:
Search for Enable Bitcode setting and set it to YES for Debug and Release modes.
Search for bitcode settings. Add -fembed-bitcode in both Debug and Release modes or you can add -fembed-bitcode-marker in Debug and -fembed-bitcode in Release mode.
Add BITCODE_GENERATION_MODE under User Defined setting , and then add bitcode for both Debug and Release modes or you can add markerin Debug and bitcode in Release mode.
I only need release version, so I did not built an universal framework, just release version... I would genuinely like to solve this issue, because it has been a nightmare for me..
OTHER_CFLAGS = "-fembed-bitcode";
,OTHER_LDFLAGS = "-ObjC";
, andBITCODE_GENERATION_MODE = bitcode;
for getting a static Swift framework with an Obj-C bridge to work when Archiving a bitcode-enabled app that consumed it. – Hypothesize