line / flutter_line_sdk

A Flutter plugin that lets developers access LINE's native SDKs in Flutter apps with Dart.
https://developers.line.biz/
Apache License 2.0
213 stars 43 forks source link

CocoaPods could not find compatible versions for pod "flutter_line_sdk" #44

Closed hw20101101 closed 3 years ago

hw20101101 commented 3 years ago

hello,使用 iOS 模拟器 运行 flutter 项目时报错。

环境如下:

flutter_line_sdk: ^1.3.0

[✓] Flutter (Channel stable, 1.22.6, on Mac OS X 10.15.7 19H15 darwin-x64, locale zh-Hans-CN)
    • Flutter version 1.22.6 at /Users/ios/Documents/8_multi_platform/flutter
    • Framework revision 9b2d32b605 (4 months ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/ios/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/ios/Library/Android/sdk
    • Java binary at: /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)
    ✗ 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 12.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.56.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.22.0

报错如下: CocoaPods' output:


      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    Finding Podfile changes

      A flutter_line_sdk
      - Flutter
      - flutter_svprogresshud
      - image_picker
      - path_provider
      - shared_preferences
      - sqflite
      - thrio
      - webview_flutter
    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `flutter_line_sdk` from `.symlinks/plugins/flutter_line_sdk/ios`
    -> Fetching podspec for `flutter_svprogresshud` from `.symlinks/plugins/flutter_svprogresshud/ios`
    -> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
    -> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
    -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
    -> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
    -> Fetching podspec for `thrio` from `.symlinks/plugins/thrio/ios`
    -> Fetching podspec for `webview_flutter` from `.symlinks/plugins/webview_flutter/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_line_sdk":
      In Podfile:
        flutter_line_sdk (from `.symlinks/plugins/flutter_line_sdk/ios`)
    Specs satisfying the `flutter_line_sdk (from `.symlinks/plugins/flutter_line_sdk/ios`)` dependency were found, but they required a higher minimum deployment target.

谢谢!!

onevcat commented 3 years ago

Please follow the readme in this repo to setup your integration of LINE SDK correctly. Especially, LINE SDK for flutter requires iOS 10 as its minimal deploy version:

Because LINE SDK now requires iOS 10.0 or above and uses the iOS dynamic Framework to provide underlying native features, you must add these lines in the Runner target in ios/Podfile:

target 'Runner' do
+  use_frameworks!
+  platform :ios, '10.0'
hw20101101 commented 3 years ago

Ok thanks, let me try