문제

[!] CocoaPods could not find compatible versions for pod “라이브러리명” Specs satisfying the “라이브러리명” dependency were found, but they required a higher minimum deployment target.
해당 라이브러리의 호환되는 버전을 찾지 못했다는 뜻이며,
더 구체적으로는 디펜던시를 찾긴 했으나, 내가 설정해둔 minimun deployment target 버전보다 더 높은 버전을 라이브러리가 요구한다 라는 의미다.
해결방안
minimum deployment tartget
버전을 높혀주면 된다.
- 아니면 라이브러리 버전을 낮춰서 쓰면 된다.
2번의 경우는 할 줄 안다고 생각하고,
1번의 경우를 다룬다.
- 참고 링크 :
GitHubpod install is giving a minimum deployment target error when my app is set up correctly with iOS 13 as the min deployment target · Issue #1280 · stripe/stripe-react-native
pod install is giving a minimum deployment target error when my app is set up correctly with iOS 13 as the min deployment target · Issue #1280 · stripe/stripe-react-native
Describe the bug When running pod install on my iOS project, after installing the stripe react native package with yarn, I am getting an error "Specs satisfying the stripe-react-native (from ....
####### # Read min iOS version from Xcode project and set as min iOS version for Podfile require 'xcodeproj' project_path = './MyApp.xcodeproj' project = Xcodeproj::Project.open(project_path) min_ios_version_supported = project.build_configurations.first.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] ###### platform :ios, min_ios_version_supported

프로젝트 파일
에서 IPHONEOS_DEPLOYMENT_TARGET
값을 변경하면 해결되는 문제인데, 이 값을 아무리 높게 바꿔도 해결되지 않았다.원인을 찾아보니 내가
Podfile
에서 platform:ios
값을 하드코딩으로 10 으로 버전을 고정시켜둔 것이 문제가 되었다.그래서 프로젝트 파일에 설정한 값을 가져와서 설정하도록 코드를 수정하였고, 문제가 해결되었다.