8

I make app with 3d library iOS-Charts. But I get the error bitcode bundle could not be generated because was built without full bitcode. from today widget. I installed it with help Carthage and I did all the instructions. I do not know how can I fix it? I made the following screenshot from today widget target. enter image description here

rmaddy
  • 298,130
  • 40
  • 468
  • 517
Alexander Khitev
  • 5,168
  • 13
  • 45
  • 96
  • 2
    Try to disable ENABLE_BITCODE flag in build settings tab if your app do not need to support bitcode. – chub Jan 08 '16 at 00:11
  • @Alexsander Please check [this SO thread](http://stackoverflow.com/questions/31233395/ios-library-to-bitcode) and see if adding the `-fembed-bitcode` flag in build settings works for you. – chub Jan 08 '16 at 09:00
  • 1
    @DavidCheung it helped me. You may to write it like an answer. – Alexander Khitev Jan 11 '16 at 08:21
  • @Alexsander Done, please check. – chub Jan 11 '16 at 08:36

3 Answers3

5

Please try to change Enable Bitcode to No in Build Settings.

enter image description here

Tharoth
  • 305
  • 5
  • 14
4

I found one possible cause is if you are using CocoaPods and the dependencies are not being compiled using bitcode.

I added this to my Podfile to fix it.

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings['BITCODE_GENERATION_MODE'] = 'bitcode'
    config.build_settings['ENABLE_BITCODE'] = 'YES'
  end
end
Gui Moura
  • 1,279
  • 1
  • 15
  • 25
3

Please check this SO thread and see if adding the -fembed-bitcode flag in build settings works for you.

iOS library to BitCode

Community
  • 1
  • 1
chub
  • 5,131
  • 4
  • 35
  • 59