PayHereLK / payhere-mobilesdk-flutter

PayHere Mobile SDK for Flutter
BSD 3-Clause "New" or "Revised" License
5 stars 16 forks source link

CocoaPods could not find compatible versions for pod "payHereSDK #11

Closed Ilthizam closed 2 years ago

Ilthizam commented 2 years ago

Command

PROJECT/ios/pod install

Report

Stack

   CocoaPods : 1.10.1
        Ruby : ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
    RubyGems : 3.0.3.1
        Host : macOS 12.2.1 (21D62)
       Xcode : 13.3 (13E113)
         Git : git version 2.32.0 (Apple Git-132)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

Error

[!] CocoaPods could not find compatible versions for pod "payHereSDK":
  In snapshot (Podfile.lock):
    payHereSDK (= 2.1.2)

  In Podfile:
    payhere_mobilesdk_flutter (from `.symlinks/plugins/payhere_mobilesdk_flutter/ios`) was resolved to 1.2.1, which depends on
      payHereSDK (= 2.2.4)

Specs satisfying the `payHereSDK (= 2.1.2), payHereSDK (= 2.2.4)` dependency were found, but they required a higher minimum deployment target.
pmathulan commented 2 years ago

Yes, Payhere required a higher deployment target. Uncomment the platform line in podfile (its located in the ios folder) and change like this platform :ios, '11.0'

then try again. it's should work.

https://stackoverflow.com/a/71806252/8274705