ios - Flutter 构建 ios bitcode 问题,如何修复 bitcode 错误

标签 ios xcode flutter

我尝试在连接手机的情况下构建 ios 或 flutter build ios 我收到此错误

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)

如果我用模拟器运行它的工作,
构建 whit pshyscal device connected 或 flutter build 时出现问题
如何解决这个问题?

医生 -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!

最佳答案

在安装了一个依赖于位码的库后,我遇到了类似的问题。请改启用位码 到项目中的所有目标 pod 就像图片中一样,
enter image description here

关于ios - Flutter 构建 ios bitcode 问题,如何修复 bitcode 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59662126/

相关文章:

iphone - 如何使用 SOAP Web 服务发送图像数据和其他参数

ios - 如何限制按钮的音量(Swift)

iphone - AVFoundation 相机预览方向错误

dart - Stream 可以一次收听一次还是一般一次收听?

flutter - 将多个函数调用/设置变量全部放在一行中

firebase - Firebase Cloud Firestore无法正常工作

ios - 将 CLRegion 转换为 MKMapRect 或类似的

ios - 失去与 "iPhone"的连接

ios - Swift3 警告 imagePickerController 几乎匹配

ios - Interface Builder 无法设置可访问性特征(Xcode 8)