i try to build ios with my phone connected or flutter build ios i got this error
ld: '/Users/Library/Developer/Xcode/DerivedData/Runner-dwvxvkkosgpgqncynmszqlholtde/Build/Products/Debug-iphoneos/BoringSSL-GRPC/libBoringSSL-GRPC.a(BoringSSL-GRPC-dummy.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/Library/Developer/Xcode/DerivedData/Runner-dwvxvkkosgpgqncynmszqlholtde/Build/Products/Debug-iphoneos/BoringSSL-GRPC/libBoringSSL-GRPC.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
if i run with simulator its work, the problem occure when build whit pshyscal device connected or flutter build how to fix this ?
doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en)
• Flutter version 1.12.13+hotfix.5 at /Users/user/Development/flutter
• Framework revision 27321ebbad (4 weeks ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/User/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3, Build version 11C29
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.41.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.7.1
[✓] Connected device (1 available)
• RIFAL’s iPhone • 8c498b6246bf8191b049a9253b87ff2604b85671 • ios • iOS 13.3
• No issues found!
Enabling bitcode on a Flutter app Click 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.
For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS and tvOS apps, bitcode is required. As per apple document bitcode is default but currently optional so your app will get approval until it is compulsory.
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. To learn more about bitcode, see Distribution Options.
Include bitcode for iOS content – Bitcode is an intermediate binary format introduced with iOS 9. By including the app in bitcode format, it can be compiled by Apple so that it is optimized for the full range of target iOS devices and to take advantage of future hardware and software advances.
ld: bitcode bundle could not be generated because '/Users/uerceg/Development/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-armv7_arm64/Flutter.framework/Flutter' was built without full bitcode.
Open App Store Connect in your browser. On the App Store Connect landing page, click My Apps. Click + in the top-left corner of the My Apps page, then select New App. Fill in your app details in the form that appears. In the Platforms section, ensure that iOS is checked. Since Flutter does not currently support tvOS, leave that checkbox unchecked.
And Adjust has a full bitcode blob, so can't link against the debug version of Flutter, which only has a bitcode marker. Sorry, something went wrong. Caused by #72151. Sorry, something went wrong. Validated @uerceg 's example app in debug builds on fix at #78592. Workaround is for plugin consumers to add this to their ios/Podfile:
Click + in the top-left corner of the My Apps page, then select New App. Fill in your app details in the form that appears. In the Platforms section, ensure that iOS is checked. Since Flutter does not currently support tvOS, leave that checkbox unchecked. Click Create.
I had a similar problem after installing one library which was dependent on the bitcode. Please change Enable Bitcode to all of the targets on the project Pods like in the image,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With