简体   繁体   English

未找到架构 armv7 flutter 的符号

[英]symbol(s) not found for architecture armv7 flutter

 ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ld: warning: dylib (/Users/Shared/store/build/ios/Release-iphoneos/abseil/absl.framework/absl) was built for newer iOS version (11.0) than being linked (10.0)
    ld: warning: dylib (/Users/Shared/store/build/ios/Release-iphoneos/gRPC-C++/grpcpp.framework/grpcpp) was built for newer iOS version (11.0) than being linked (10.0)
    ld: warning: dylib (/Users/Shared/store/build/ios/Release-iphoneos/leveldb-library/leveldb.framework/leveldb) was built for newer iOS version (11.0) than being linked (10.0)
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Encountered error while building for device.



[✓] Flutter (Channel stable, 2.0.0, on Mac OS X 10.15.4 19E266 darwin-x64, locale en-IN) • Flutter version 2.0.0 at /Applications/flutter2.0_midhilaj • Framework revision 60bd88df91 (4 weeks ago), 2021-03-03 09:13:17 -0800 • Engine revision 40441def69 • Dart version 2.12.0 [✓] Flutter(通道稳定,2.0.0,在 Mac OS X 10.15.4 19E266 darwin-x64 上,语言环境 en-IN) • Flutter 版本 2.0.0 在 /Applications/flutterajb 修订版 88hdf91 前框架), 2021-03-03 09:13:17 -0800 • 引擎版本 40441def69 • Dart 版本 2.12.0

[.] Android toolchain - develop for Android devices (Android SDK version 30.0,3) • Android SDK at /Users/midhilajm/Library/Android/sdk • Platform android-30. [.] Android toolchain - develop for Android devices (Android SDK version 30.0,3) • Android SDK at /Users/midhilajm/Library/Android/sdk • Platform android-30. build-tools 30.0:3 • ANDROID_HOME = /Users/midhilajm/Library/Android/sdk • Java binary at.构建工具 30.0:3 • ANDROID_HOME = /Users/midhilajm/Library/Android/sdk • Java 二进制文件位于。 /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495), Some Android licenses not accepted: To resolve this, run: flutter doctor --android-licenses /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java 版本 OpenJDK 运行时环境(内部版本 1.8.0_242-release-1644-b3-6915495),一些 ZE84E30B9390CDB64DB6DB2C9AB8 不接受许可:解析746这个,运行:flutter 医生 --android-licenses

[✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.1 [✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.4, Build version 12D4e • CocoaPods version 1.10.1

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Chrome - 为 web 开发 • Chrome 位于 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be安装位置: https://plugins.jetbrains.com/plugin/6351-dart • Java 版本 OpenJDK 运行时环境(构建 1.8.0_242-release-1644-b3-6915495)

[✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio 2.app/Contents • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio 2.app/Contents • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can从以下位置安装: https://plugins.jetbrains.com/plugin/6351-dart • Java 版本 OpenJDK 运行时环境(构建 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.54.3) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension can be installed from: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] VS Code(版本 1.54.3) • VS Code 位于 /Applications/Visual Studio Code.app/Contents • Flutter 扩展可以从以下位置安装: https://marketplace.visualstudio.com/items?itemName=Dart-Code .flutter

[✓] Connected device (1 available) • Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90: Error. [✓] 连接的设备(1 个可用) • Chrome(网络) • chrome • web-javascript • Google Chrome 89.0.4389.90:错误。 Midhilaj's iPhone is not connected. Midhilaj 的 iPhone 未连接。 Xcode will continue when Midhilaj's iPhone is connected.当 Midhilaj 的 iPhone 连接时,Xcode 将继续。 (code -13) (代码-13)

. . Doctor found issues in 1 category.医生发现 1 类问题。

Run flutter upgrade to upgrade to most recent version of Flutter.运行flutter upgrade升级到最新版本的 Flutter。 After that, flutter clean and build again.之后, flutter clean并再次构建。 This should solve your problem.这应该可以解决您的问题。

Only thing which solved me this problem is to clear the pub cache by deleting pubspec.lock file and re running flutter run command.唯一解决我这个问题的方法是通过删除pubspec.lock文件并重新运行flutter run命令来清除 pub 缓存。

This mainly happens due to the error in the cached plugin files这主要是由于缓存的插件文件中的错误

Run following command and resolve your issue运行以下命令并解决您的问题

  1. flutter clean
  2. rm ios/Podfile ios/Podfile.lock pubspec.lock
  3. rm -rf ios/Pods ios/Runner.xcworkspace
  4. flutter run

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM