GoogleCloudPlatform / recaptcha-enterprise-react-native

Apache License 2.0
28 stars 4 forks source link

iOS - Issue building app. Module `RecaptchaInterop` not found #39

Closed vabruzzese closed 4 months ago

vabruzzese commented 4 months ago

Background

Hello,

I'm having issues building my app with the latest release of this library.

"@google-cloud/recaptcha-enterprise-react-native": "^18.5.1",

I have followed the troubleshooting steps for iOS in the guide by setting the following configurations in my Podfile:

flipper_config = FlipperConfiguration.disabled
use_frameworks! :linkage => :static

The issue I'm receiving is the following:

Module 'RecaptchaInterop` not found

In my Podfile.lock I can see that the depedency is present:

  - recaptcha-enterprise-react-native (18.5.1):
    - glog
    - RCT-Folly (= 2022.05.16.00)
    - React-Core
    - RecaptchaEnterprise (= 18.5.1)
  - RecaptchaEnterprise (18.5.1):
    - RecaptchaInterop (~> 100.0.0)
  - RecaptchaInterop (100.0.0)

Do you know what might be the issue here?

I have a suspicion that the @import RecaptchaInterop; in the build header is being called outside of the __HAS_RECAPTCHA_INTEROP_FRAMEWORK__ flag. Perhaps this should be inside the #define block?

Screenshot 2024-06-17 at 1 31 01 PM

I looked into the source code of this project but I cannot see where this declaration is made. It seems like it is generated during the build step.

mcorner commented 4 months ago

possibly related: https://github.com/GoogleCloudPlatform/recaptcha-enterprise-mobile-sdk/issues/112

What version of XCode are you using?

vabruzzese commented 4 months ago

possibly related: GoogleCloudPlatform/recaptcha-enterprise-mobile-sdk#112

What version of XCode are you using?

I'm on Xcode 15.0. I could try and upgrade to a newer version to see if it resolves the problem

mcorner commented 4 months ago

yes, the newest SDKs require at least 15.3

vabruzzese commented 4 months ago

yes, the newest SDKs require at least 15.3

Understood, thank you. I will look into upgrading our project to the latest Xcode.