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.
Asked
Active
Viewed 2.4k times
8
![](../../users/profiles/1226963.webp)
rmaddy
- 298,130
- 40
- 468
- 517
![](../../users/profiles/4981515.webp)
Alexander Khitev
- 5,168
- 13
- 45
- 96
-
2Try 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 Answers
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
![](../../users/profiles/1556610.webp)
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.