Skip to main content
Solved

React Native - Not build where RevenueCat is installed


Forum|alt.badge.img+3

Hello!

I have an app working perfectly and it's time to implement purchases in it through Revenuecat.

However when I install the react-native-purchases library several errors related to Swift are displayed (both when I try from the console and from XCode).

The RN version I'm running is 0.63.4, Xcode 13.0 and I'm testing it in simulators/devices with IOS 15.

Are there any known incompatibilities with these versions?

Some errors I get when trying to compile:

  • Undefined symbol: protocol conformance descriptor for Swift.UInt8 : Swift.FixedWidthInteger in Swift
  • Undefined symbol: protocol descriptor for Foundation.LocalizedError
  • Undefined symbol: method descriptor for Foundation.LocalizedError.errorDescription.getter : Swift.String?
  • Undefined symbol: method descriptor for Foundation.LocalizedError.failureReason.getter : Swift.String?
  • Undefined symbol: (extension in Foundation):Foundation.LocalizedError.recoverySuggestion.getter : Swift.String?
  • Undefined symbol: (extension in Foundation):Foundation.LocalizedError.failureReason.getter : Swift.String?

(and a lot more, about 100).

Any suggest for help me to use Revenuecat in my project?

(When I uninstall the library all back to works fine)

Thanks for all for your attention!

Best answer by Daniel Pimentel

Hello!

After a few days stucked I simple add a empty swift file on my project and everything works fine!

View original
Did this post help you find an answer to your question?

9 replies

jazmine
Forum|alt.badge.img+7
  • Dedicated Contributor
  • 122 replies
  • October 14, 2021

Hey @Daniel Pimentel :wave: ,

When looking at our docs for the Additional setup required for IOS for React Native which option are you using? Installing with Cocoapods / ExpoKit (with Auto-linking) , Installing with Cocoapods / ExpoKit (Manual linking only) or Manually adding the framework (if you're not using Cocoapods)?

 

 


Forum|alt.badge.img+3

Hello!

After a few days stucked I simple add a empty swift file on my project and everything works fine!


Forum|alt.badge.img+3
  • New Member
  • 1 reply
  • October 17, 2022

Can you elaborate on how to create this dummy swift file and where to put it? 

I read in the React Native SDK installation guide :

 

 

Swift Support

If your project has no Swift files or Swift support is disabled for the project, you will need to enable Swift support. The easiest way to do it is to add a single, empty Swift file.

 

But not a clue on how to do this. Thanks


  • New Member
  • 2 replies
  • December 17, 2022

I have same issue here is it possible to get a fix for this, i have tried selected answer method, which is creating new file but it didn’t work, still same issue. 

 


Forum|alt.badge.img+2
  • New Member
  • 2 replies
  • December 27, 2022

Hello,

 

@Rishi Siva I’m having the exact same issue as you. Did you manage to solve it?

Thank you.


  • New Member
  • 2 replies
  • December 28, 2022
mursang wrote:

Hello,

 

@Rishi Siva I’m having the exact same issue as you. Did you manage to solve it?

Thank you.

No this issue still happening to me, but it works fine with bare react native project not with existing code, im re-running all the modules ill give an update in a while.


Forum|alt.badge.img+2
  • New Member
  • 2 replies
  • December 28, 2022
Rishi Siva wrote:
mursang wrote:

Hello,

 

@Rishi Siva I’m having the exact same issue as you. Did you manage to solve it?

Thank you.

No this issue still happening to me, but it works fine with bare react native project not with existing code, im re-running all the modules ill give an update in a while.

I just discovered that running version 4.x of react-native-purchases is working for me. Can’t install 5.X no clue why.


Forum|alt.badge.img+1
  • New Member
  • 2 replies
  • February 17, 2023

I to am having the same issues (undefined symbols) when trying to archive my project… I have tried removing pods and running pod install, updating my version of RN, upgraded and downgraded to try different versions of react-native purchases but to no avail. 

If anyone could help with a solution to this it would be greatly appreciated.


Forum|alt.badge.img+1
  • New Member
  • 2 replies
  • February 18, 2023

For anyone struggling with this issue - This solved it for me (the order has to be the same as the screenshot)…. https://github.com/RevenueCat/react-native-purchases/issues/341


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings