swift-sdk icon indicating copy to clipboard operation
swift-sdk copied to clipboard

type 'ReactIterableAPI' does not conform to protocol 'IterableAuthDelegate'

Open drewminns opened this issue 1 year ago • 2 comments

We're using the React Native SDK and our latest builds are failing with the following error:

❌  (node_modules/@iterable/react-native-sdk/ios/RNIterableAPI/ReactIterableAPI.swift:651:1)

  649 | }
  650 | 
> 651 | extension ReactIterableAPI: IterableAuthDelegate {
      | ^ type 'ReactIterableAPI' does not conform to protocol 'IterableAuthDelegate'
  652 |     func onAuthTokenRequested(completion: @escaping AuthTokenRetrievalHandler) {
  653 |         ITBInfo()
  654 |         

Perhaps a regression from an earlier issue: https://github.com/Iterable/swift-sdk/issues/616

drewminns avatar Aug 08 '24 14:08 drewminns

Thanks for reporting @drewminns! Would you share Iterable's RN SDK version used and which version was working for your app before?

Ayyanchira avatar Aug 08 '24 16:08 Ayyanchira

We're also hitting this, we've fixed by patching the podspec file in the RN SDK:

diff --git a/node_modules/@iterable/react-native-sdk/Iterable-React-Native-SDK.podspec b/node_modules/@iterable/react-native-sdk/Iterable-React-Native-SDK.podspec
index 7906f59..74506c7 100644
--- a/node_modules/@iterable/react-native-sdk/Iterable-React-Native-SDK.podspec
+++ b/node_modules/@iterable/react-native-sdk/Iterable-React-Native-SDK.podspec
@@ -24,6 +24,6 @@ Pod::Spec.new do |s|
 
   s.swift_version = '5.3'
 
-  s.dependency 'Iterable-iOS-SDK', '~> 6.5.3'
+  s.dependency 'Iterable-iOS-SDK', '6.5.4'
   s.dependency 'React-Core'
 end

sterlingwes avatar Aug 08 '24 19:08 sterlingwes