- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在按照 https://developer.here.com/documentation/flutter-sdk-navigate/4.4.0.2/dev_guide/topics/quick-start.html#try-the-example-apps 的说明进行操作无论是尝试示例应用程序还是创建新项目。两者似乎都不起作用。运行失败并出现以下错误:
Klamath:hello_map_app mathias$ flutter run
Launching lib/main.dart on iPhone 12 in debug mode...
Running pod install... 1,603ms
Running Xcode build...
Xcode build done. 6.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
warning: [CP] Unable to find matching .xcframework slice in
'/Users/mathias/Downloads/heresdk-explore-flutter-4.9.0.0.2063/heresdk-explore-flutter-examples-4.9.0.0/hello_map_app/ios/Pods/../.symlinks/plugins/here_sdk/ios/
Frameworks/heresdk.xcframework heresdk framework ios-x86_64-simulator ios-arm64' for the current build architectures (arm64 x86_64).
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
Command CompileSwift failed with a nonzero exit code
/Users/mathias/Downloads/heresdk-explore-flutter-4.9.0.0.2063/heresdk-explore-flutter-examples-4.9.0.0/hello_map_app/plugins/here_sdk/ios/Classes/MapController.s
wift:14:8: error: no such module 'heresdk'
import heresdk
^
/Users/mathias/Downloads/heresdk-explore-flutter-4.9.0.0.2063/heresdk-explore-flutter-examples-4.9.0.0/hello_map_app/plugins/here_sdk/ios/Classes/MapController.s
wift:14:8: error: no such module 'heresdk'
import heresdk
^
/Users/mathias/Downloads/heresdk-explore-flutter-4.9.0.0.2063/heresdk-explore-flutter-examples-4.9.0.0/hello_map_app/plugins/here_sdk/ios/Classes/MapController.s
wift:14:8: error: no such module 'heresdk'
import heresdk
^
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 12.
我注意到没有为 iOS 插件生成 Podfile,这与文档所说的相反:
After you have executed flutter pub get (or clicked the respective Packages get button in Android Studio or any other IDE), a new Podfile is created for iOS
flutter 文档:
[✓] Flutter (Channel stable, 2.5.2, on Mac OS X 10.15.7 19H1419 darwin-x64, locale en-GB)
• Flutter version 2.5.2 at /Users/mathias/dev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3595343e20 (4 days ago), 2021-09-30 12:58:18 -0700
• Engine revision 6ac856380f
• Dart version 2.14.3
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/mathias/Library/Android/sdk
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.5)
• 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_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.2)
• IntelliJ at /Users/mathias/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
• Flutter plugin version 61.0.4
• Dart plugin version 212.5486
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.2)
• IntelliJ at /Users/mathias/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/212.5284.40/IntelliJ IDEA.app
• 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
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.1)
• IntelliJ at /Users/mathias/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7142.45/IntelliJ IDEA.app
• 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
[✓] VS Code (version 1.59.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.25.0
[✓] Connected device (2 available)
• iPhone 12 (mobile) • D8D4529E-FC01-48BA-A640-451B829D6BF9 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.71
! Doctor found issues in 1 category.
Process finished with exit code 0
知道可能是什么问题吗?
最佳答案
发生这种情况是因为您的 Xcode 版本太旧且不受支持。根据minimum requirements ,至少需要 Xcode 12.4。您的版本是 12.2。
最重要的是,HERE SDK 尚未正式支持 Flutter 2.5。在设备上运行不受影响,这只发生在模拟器上。作为解决方法,修改生成的 Podfile 中的 post_install 任务:
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64' if `uname -m` == "x86_64\n"
end
end
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
end
end
project.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
end
end
这是我从最新 4.9.0.0 release 的发行说明中获取的.
更新:对于 >= 4.9.2.0 的版本,不再需要上述内容,因为 HERE SDK 现在正式支持 arm64 模拟器和 Flutter 2.5。
关于ios - 无法构建 Flutter 应用程序 - 没有这样的模块 'heresdk',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69442904/
我最近在我的机器上安装了 cx_Oracle 模块,以便连接到远程 Oracle 数据库服务器。 (我身边没有 Oracle 客户端)。 Python:版本 2.7 x86 Oracle:版本 11.
我想从 python timeit 模块检查打印以下内容需要多少时间,如何打印, import timeit x = [x for x in range(10000)] timeit.timeit("
我盯着 vs 代码编辑器上的 java 脚本编码,当我尝试将外部模块包含到我的项目中时,代码编辑器提出了这样的建议 -->(文件是 CommonJS 模块;它可能会转换为 ES6 模块。 )..有什么
我有一个 Node 应用程序,我想在标准 ES6 模块格式中使用(即 "type": "module" in the package.json ,并始终使用 import 和 export)而不转译为
我正在学习将 BlueprintJS 合并到我的 React 网络应用程序中,并且在加载某些 CSS 模块时遇到了很多麻烦。 我已经安装了 npm install @blueprintjs/core和
我需要重构一堆具有这样的调用的文件 define(['module1','module2','module3' etc...], function(a, b, c etc...) { //bun
我是 Angular 的新手,正在学习各种教程(Codecademy、thinkster.io 等),并且已经看到了声明应用程序容器的两种方法。首先: var app = angular.module
我正在尝试将 OUnit 与 OCaml 一起使用。 单元代码源码(unit.ml)如下: open OUnit let empty_list = [] let list_a = [1;2;3] le
我在 Angular 1.x 应用程序中使用 webpack 和 ES6 模块。在我设置的 webpack.config 中: resolve: { alias: { 'angular':
internal/modules/cjs/loader.js:750 return process.dlopen(module, path.toNamespacedPath(filename));
在本教程中,您将借助示例了解 JavaScript 中的模块。 随着我们的程序变得越来越大,它可能包含许多行代码。您可以使用模块根据功能将代码分隔在单独的文件中,而不是将所有内容都放在一个文件
我想知道是否可以将此代码更改为仅调用 MyModule.RED 而不是 MyModule.COLORS.RED。我尝试将 mod 设置为变量来存储颜色,但似乎不起作用。难道是我方法不对? (funct
我有以下代码。它是一个 JavaScript 模块。 (function() { // Object var Cahootsy; Cahootsy = { hello:
关闭。这个问题是 opinion-based 。它目前不接受答案。 想要改进这个问题?更新问题,以便 editing this post 可以用事实和引文来回答它。 关闭 2 年前。 Improve
从用户的角度来看,一个模块能够通过 require 加载并返回一个 table,模块导出的接口都被定义在此 table 中(此 table 被作为一个 namespace)。所有的标准库都是模块。标
Ruby的模块非常类似类,除了: 模块不可以有实体 模块不可以有子类 模块由module...end定义. 实际上...模块的'模块类'是'类的类'这个类的父类.搞懂了吗?不懂?让我们继续看
我有一个脚本,它从 CLI 获取 3 个输入变量并将其分别插入到 3 个变量: GetOptions("old_path=s" => \$old_path, "var=s" =
我有一个简单的 python 包,其目录结构如下: wibble | |-----foo | |----ping.py | |-----bar | |----pong.py 简单的
这种语法会非常有用——这不起作用有什么原因吗?谢谢! module Foo = { let bar: string = "bar" }; let bar = Foo.bar; /* works *
我想运行一个命令: - name: install pip shell: "python {"changed": true, "cmd": "python <(curl https://boot
我是一名优秀的程序员,十分优秀!