Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bitcode bundle could not be generated because

Basically I have built a compiled released framework and distributed it with cocoaPods. The problem is that then archiving this framework application gets the following error: enter image description here

ld: bitcode bundle could not be generated because '/Users/cagrialtay/Desktop/mucbirsebepler/ios/Flutter/Flutter.framework/Flutter' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/cagrialtay/Desktop/mucbirsebepler/ios/Flutter/Flutter.framework/Flutter' for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) Search for Enable Bitcode setting and set it to YES for Debug and Release modes.

Things I tried but had no luck

  • Enable Bitcode' set to 'YES' Adding '-fembed-bitcode' to 'Other C
  • Flags' Adding 'BITCODE_GENERATION_MODE' with the value 'bitcode' set
  • skip install to yes

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..

like image 492
guccisekspir Avatar asked May 15 '20 16:05

guccisekspir


People also ask

How do I enable Bitcode in flutter?

Enabling bitcode on a Flutter appClick on Runner, and then build settings. Ensure that all build settings are visible. Search for bitcode , and change it to Yes . Ensure this is done for all targets, including any targets created by the Cocoapods for plugins.

What does enable Bitcode do IOS?

Enable Bitcode Bitcode is an Apple technology that enables you to recompile your app to reduce its size. The recompilation happens when you upload your app to App Store Connect or export it for Ad Hoc, Development, or Enterprise distribution.

What is Fembed Bitcode?

-fembed-bitcode [...] fembed-bitcode flag. Given that, if you add the -fembed-bitcode flag to the Other C flags, you will be sending two flags to the compiler during the compile time. It maybe silence some warnings that you can receive when using the library linked on another project.


Video Answer


2 Answers

I finally solved this.This error happened because of me . I develop my iOS application with flutter, so if you develop your iOS app in Flutter firstly you must build with flutter not Xcode

flutter clean
flutter build ios

then go

Xcode -> Product -> Destination -> Any iOS Device

Xcode-> Product -> Scheme -> choose scheme -> Runner

Xcode-> Product -> Archive

or

flutter clean
flutter build ipa 

then

Xcode-> Product -> Archive

like image 109
guccisekspir Avatar answered Oct 13 '22 01:10

guccisekspir


That happened to me too. Xcode 11, Flutter. I tried deleting the App on Simulator still did not work.

  1. Open project folder
  2. Go to ios file
  3. Go to Runner Folder
  4. Right click on "Launch Screen.storyboard"
  5. Open with Xcode.
like image 35
b.john Avatar answered Oct 13 '22 01:10

b.john