ios - 架构 armv7 颤振的未定义符号
问题描述
当我为通用设备构建或为真实设备运行时,它在 xcode 上给了我以下错误
ld: warning: Could not find auto-linked framework 'Flutter' Undefined symbols for architecture armv7: "_FlutterMethodNotImplemented", referenced from:
-[FLTDeviceInfoPlugin handleMethodCall:result:] in DeviceInfoPlugin.o "_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
objc-class-ref in DeviceInfoPlugin.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
并且颤振构建命令运行没有错误
颤振医生:
121:flutter_module sumeetjain$ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale en-IN) [✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[✓] Xcode - develop for iOS and macOS (Xcode 10.3) [!] Android Studio (not installed) [✓] Connected device (2 available)
! Doctor found issues in 2 categories.
但是当我将频道更改为主频道时,错误不会出现。因为我想发布我的应用程序,所以我不能在主频道上这样做!
主频道扑医生
[✓] Flutter (Channel master, v1.10.3-pre.70, on Mac OS X 10.14.6 18G95, locale en-IN)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
[!] Android Studio (not installed)
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
解决方案
推荐阅读
- c - 在一页中隔离一条指令
- openrefine - 使用 openrefine 对带有日期的记录进行分面排序
- vuejs2 - 当使用 Vuex getter 动态设置 prop 时,从 props 计算的 Vue 值未定义
- javascript - highchart 编辑器库事件监听
- python - 生物格式 python 模块
- php - 在嵌套的 laravel 集合上分组
- rabbitmq - MassTransit:手动 Ack 和 NoAck
- nginx - 根据路径的文件类型路由入口控制器流量
- java - 如何通过比较android中的值来显示列表视图
- google-cloud-platform - 如何获取 Google Cloud Storage 中存在的视频的视频时长