Compiled framework provides bitcode error when archiving

前端 未结 2 1220
死守一世寂寞
死守一世寂寞 2020-12-19 03:15

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

2条回答
  •  没有蜡笔的小新
    2020-12-19 03:46

    If you're using pods, try adding this to the Podfile (it resolved the same issue for me):

    post_install do |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['BITCODE_GENERATION_MODE'] = 'bitcode'
                config.build_settings['ENABLE_BITCODE'] = 'YES'
            end
        end
    end
    

提交回复
热议问题