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

iOS build error when installing react-native-purchases-ui #1148

Open
5 tasks done
andrewdazs opened this issue Dec 18, 2024 · 4 comments
Open
5 tasks done

iOS build error when installing react-native-purchases-ui #1148

andrewdazs opened this issue Dec 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@andrewdazs
Copy link

andrewdazs commented Dec 18, 2024

Describe the bug
I'm trying to install the react-native-purchases-ui library but I'm having trouble compiling the project for iOS. The error I'm getting is:

node_modules/react-native-purchases-ui/ios/PurchasesPlugin.swift Compiling for iOS 11.0, but module 'PurchasesHybridCommonUI' has a minimum deployment target of iOS 13.0

I'm already using the minimum deployment target in version 15.6 (I've also tested it using version 13.4) and it still didn't work.

The pod install command works normally but when running the project I get the error above.

  1. Environment
    1. Platform: iOS
    2. SDK version: 8.4.1
    3. OS version: iOS 18.2
    4. Xcode/Android Studio version: 16.2
    5. React Native version: 0.72.7
    6. SDK installation (CocoaPods + version or manual): 1.16.2
    7. Node version: 23.4.0
  2. Steps to reproduce:
  • Install react-native-purchases-ui with yarn (yarn add react-native-purchases-ui)
  • Run pod install on /ios
  • Run yarn ios or try to run the project with xcode on simulator

Additional context
I'm also receiving this error when try to run the project with yarn ios on terminal:

The following build commands failed:
	SwiftEmitModule normal x86_64 Emitting\ module\ for\ RNPaywalls (in target 'RNPaywalls' from project 'Pods')
	SwiftCompile normal x86_64 .../mobile/node_modules/react-native-purchases-ui/ios/PurchasesPlugin.swift (in target 'RNPaywalls' from project 'Pods')
	Building workspace "ApplicationName" with scheme "ApplicationName" and configuration Debug
@andrewdazs andrewdazs added the bug Something isn't working label Dec 18, 2024
@RCGitBot
Copy link
Contributor

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@WesleyClarkRC
Copy link

Hi! Could you do a global search in your code to see if there is anywhere where the 11.0 version is still being used? I am curious as to where that version is coming from for this error.

@rajatDocplix
Copy link

Screenshot 2024-12-31 at 1 59 55 PM

@andrewdazs try changing 11.0 to your minimum deployment target

spec.platform = :ios, "11.0" to spec.platform = :ios, "13.4"

@andrewdazs
Copy link
Author

Making these changes worked, thanks @rajatDocplix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants