当试图运行我的flutter项目时,我得到:
运行pod安装时出错
我试过了:
iOS/Podfile:platform:iOS,'9.0'
如果我删除pubspec.yaml中的“flutter_barcode_scanner:^1.0.1”,它可以工作,所以我认为问题来自“flutter_barcode_scanner:^1.0.1”
颤振跑:
Launching lib/main.dart on iPhone1 in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 7CQFF4JBHQ
Running pod install...
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `flutter_barcode_scanner` from `.symlinks/plugins/flutter_barcode_scanner/ios`
-> Fetching podspec for `path_provider_linux` from `.symlinks/plugins/path_provider_linux/ios`
-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
-> Fetching podspec for `shared_preferences_linux` from `.symlinks/plugins/shared_preferences_linux/ios`
-> Fetching podspec for `shared_preferences_macos` from `.symlinks/plugins/shared_preferences_macos/ios`
-> Fetching podspec for `shared_preferences_web` from `.symlinks/plugins/shared_preferences_web/ios`
Resolving dependencies of `Podfile`
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
[!] CocoaPods could not find compatible versions for pod "flutter_barcode_scanner":
In Podfile:
flutter_barcode_scanner (from `.symlinks/plugins/flutter_barcode_scanner/ios`)
Specs satisfying the `flutter_barcode_scanner (from `.symlinks/plugins/flutter_barcode_scanner/ios`)` dependency were found, but they required a higher minimum deployment target.
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/resolver.rb:94:in `resolve'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:1065:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:1063:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:410:in `analyze'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:235:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:234:in `resolve_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/installer.rb:156:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
Error output from CocoaPods:
↳
[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Exception: Error running pod install
pubspec.yaml
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
shared_preferences: ^0.5.8
http: ^0.12.2
flutter_barcode_scanner: ^1.0.1
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
# platform :ios, '9.0'
platform :ios, '11.0'
问题内容: 我遵循了可可足的指示。 以下是我的Podfile: 当我执行 Pod安装时 ,出现以下错误: 用Swift编写的Pod只能集成为框架;此功能仍处于测试阶段。添加到您的Podfile或目标以选择使用它。 更新: 以下是我的控制台日志: 问题答案: 添加“ use_frameworks!” 到您的Podfile,因为: 因为Apple不允许您构建包含Swift的静态库。与Objective
[!]Android Studio(未安装) 颤振医生输出:
Pease帮帮我!,我是新来的flutter我正在导入一个项目,当我试图运行它时,它给出了异常 /simple_permissions-0.1.9/android/src/main/java/com/ethras/simplepermissions/simplepermissionsplugin.java:9:错误:找不到符号导入Android.support.v4.app.activitycom
问题内容: 我在win7上安装了xampp并在启动apache时收到此错误。我没有检查Skype,没有任何变化。我如何找到使用端口80的端口?我该如何解决。我没有其他服务器在运行。 以下链接没有帮助我 为什么Apache无法启动XAMPP安装? 这是错误日志 问题答案: 尝试这些方法,它应该可以工作: 退出/退出 Skype (确保其未运行),因为它保留了localhost:80 禁用防病毒(如果
我已经安装了Composer,并遵循了Laravel 4文档中的快速入门指南。 我得到以下错误,当我运行或: 我尝试运行以下命令: 或者使用他们的: 或者从git获取zip版本:https://github.com/laravel/laravel?source=c 我仍然无法通过composer进行更新。 我在Mac上的PHP版本是: MAMP上的PHP版本:5.4.10 我在Google/Sta
线程“main”java.lang.noClassDefFounderror:javax/xml/bind/annotation/xmlschema at com.android.repository.api.schemamodule$schemamoduleeversion.(schemamodule.java:156)at com.android.repository.api.schemamo