Skip to content

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

@andrewdazs

Description

@andrewdazs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions