4

I am facing this error while installing in device but build is running perfectly in simulator. As suggest in error i have disabled bitcode in this library but still getting this error while trying to run in device. Xcode version:- 14.1

Showing All Errors Only '/Users/unnati/Library/Developer/Xcode/DerivedData/BrainPuzzle-chbwvweeswlzwpaaoinoodosfdww/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/AppLovinMediationByteDanceAdapter/libByteDanceAdapter.a(ALByteDanceMediationAdapter.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/unnati/Library/Developer/Xcode/DerivedData/BrainPuzzle-chbwvweeswlzwpaaoinoodosfdww/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/AppLovinMediationByteDanceAdapter/libByteDanceAdapter.a' for architecture arm64

As suggest in error i have disabled bitcode in this library but still getting this error while trying to run in device also updated the library still facing this issue.

Rishi jha
  • 51
  • 2
  • 6

3 Answers3

3

It seems like you're using a library/dependency that may still have bitcode enabled. (AppLovin?)

Make sure all the dependencies u use have bitcode disabled, and update them to their latest version.

L A
  • 966
  • 11
  • 25
2

In Xcode file system click Pods -> AppLovinMediationByteDanceAdapter -> Build Settings -> Build Options -> change Enable Bitcode from "yes" to "no".

0

Rdev and LA's answers worked for me, with a twist. I had a working Share Extension, and this error started popping after I upgraded flutter without any change. For me, Enable Bitcode option was not visible because Basic tab was selected instead of All (in Build Settings Window); changed them to know for all the 3 (Project-Runner, Target-Runner and Target-Share Extension). Additionally, I changed ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to NO also for all the 3.

Edit: nitpicks

beria
  • 153
  • 1
  • 6