Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CocoaPods could not find compatible versions for pod "KakaoSDKTemplate" #10

Open
KimJeonghun91 opened this issue May 18, 2022 · 2 comments

Comments

@KimJeonghun91
Copy link

KimJeonghun91 commented May 18, 2022

안녕하세요!

"react": "17.0.2",
"react-native": "0.68.2",
"@react-native-seoul/kakao-login": "^4.0.0"

환경에서 IOS pod install 시 아래와 같이 에러가 나며 진행이 안되네요 ㅠㅠ
해결법이 있을까요??

[!] CocoaPods could not find compatible versions for pod "KakaoSDKTemplate":
In Podfile:
kakao-login (from ../node_modules/@react-native-seoul/kakao-login) was resolved to 4.0.0, which depends on
KakaoSDKTalk (~> 2.9.0) was resolved to 2.9.0, which depends on
KakaoSDKTemplate (= 2.9.0)

react-native-kakao-share-link (from ../node_modules/react-native-kakao-share-link) was resolved to 1.0.6, which depends on
KakaoSDKTemplate (~> 2.4.0)

@jungmin3834
Copy link

해당 프로젝트에서
node_modules/react-native-kakao-share-link/react-native-kakao-share-link.podspec 접근하셔서

s.dependency "KakaoSDKCommon", '~> 2.4.0'
s.dependency "KakaoSDKLink", '~> 2.4.0'
s.dependency "KakaoSDKTemplate", '~> 2.4.0'

부분을 2.9.0 으로 변경해주시구

cd ios
pod install

ios 폴더 내 pods .. KakaoShareLink 파일 내 init
KakaoSDKCommon.initSDK(appKey: appKey!)

부분 삭제 처리해주시면 정상 작동가능합니다.

@qnrjs42
Copy link

qnrjs42 commented Aug 3, 2022

해당 프로젝트에서 node_modules/react-native-kakao-share-link/react-native-kakao-share-link.podspec 접근하셔서

s.dependency "KakaoSDKCommon", '~> 2.4.0' s.dependency "KakaoSDKLink", '~> 2.4.0' s.dependency "KakaoSDKTemplate", '~> 2.4.0'

부분을 2.9.0 으로 변경해주시구

cd ios pod install

ios 폴더 내 pods .. KakaoShareLink 파일 내 init KakaoSDKCommon.initSDK(appKey: appKey!)

부분 삭제 처리해주시면 정상 작동가능합니다.

감사합니다. 덕분에 해결했습니다!

// patches/react-native-kakao-share-link+1.0.6.patch

diff --git a/node_modules/react-native-kakao-share-link/ios/KakaoShareLink.swift b/node_modules/react-native-kakao-share-link/ios/KakaoShareLink.swift
index 7a5098d..a865b0d 100644
--- a/node_modules/react-native-kakao-share-link/ios/KakaoShareLink.swift
+++ b/node_modules/react-native-kakao-share-link/ios/KakaoShareLink.swift
@@ -13,7 +13,6 @@ class KakaoShareLink: NSObject {
 
     public override init() {
         let appKey: String? = Bundle.main.object(forInfoDictionaryKey: "KAKAO_APP_KEY") as? String
-        KakaoSDKCommon.initSDK(appKey: appKey!)
     }
 
     private func createExecutionParams(dict: NSDictionary, key: String) -> Dictionary<String, String>? {
diff --git a/node_modules/react-native-kakao-share-link/react-native-kakao-share-link.podspec b/node_modules/react-native-kakao-share-link/react-native-kakao-share-link.podspec
index ce6f292..52d2d7e 100644
--- a/node_modules/react-native-kakao-share-link/react-native-kakao-share-link.podspec
+++ b/node_modules/react-native-kakao-share-link/react-native-kakao-share-link.podspec
@@ -1,6 +1,7 @@
 require "json"
 
 package = JSON.parse(File.read(File.join(__dir__, "package.json")))
+kakao_sdk_version = "2.9.1"
 
 Pod::Spec.new do |s|
   s.name         = "react-native-kakao-share-link"
@@ -17,7 +18,7 @@ Pod::Spec.new do |s|
   s.requires_arc = true
 
   s.dependency "React-Core"
-  s.dependency "KakaoSDKCommon", '~> 2.4.0'
-  s.dependency "KakaoSDKLink", '~> 2.4.0'
-  s.dependency "KakaoSDKTemplate", '~> 2.4.0'
+  s.dependency "KakaoSDKCommon", kakao_sdk_version
+  s.dependency "KakaoSDKLink", kakao_sdk_version
+  s.dependency "KakaoSDKTemplate", kakao_sdk_version
 end
// patches/@react-native-seoul+kakao-login+4.2.3.patch

diff --git a/node_modules/@react-native-seoul/kakao-login/kakao-login.podspec b/node_modules/@react-native-seoul/kakao-login/kakao-login.podspec
index ab78378..fe8931c 100644
--- a/node_modules/@react-native-seoul/kakao-login/kakao-login.podspec
+++ b/node_modules/@react-native-seoul/kakao-login/kakao-login.podspec
@@ -3,7 +3,7 @@
 require "json"
 
 package = JSON.parse(File.read(File.join(__dir__, "package.json")))
-kakao_sdk_version = "2.9.0"
+kakao_sdk_version = "2.9.1"
 
 Pod::Spec.new do |s|
   s.name         = "kakao-login"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants