Skip to main content
Question

SubscriptionPeriod is ambiguous error in version 9.7

  • January 23, 2026
  • 1 reply
  • 45 views

kaimys
Forum|alt.badge.img+2

I get the error 'SubscriptionPeriod' is ambiguous for type lookup in this context. during a ReactNative iOS build in DraftBit since version 9.7 of react-native-purchases. I reverted to 9.6.15 and the error disappeared. The error appeared in this line:

static func rc_normalized(subscriptionPeriod: SubscriptionPeriod) -> String

Is there something I can do to fix this?

This post has been closed for comments

1 reply

Tarek
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • January 27, 2026

Hey Kaimys,

 

Thank you for reaching out.

I’m Tarek, from the RevenueCat Support Team, and I’ll be happy to help you.

The error you described happens because both Apple’s StoreKit and RevenueCat’s library define a symbol named SubscriptionPeriod, which confuses the compiler.

 

However, I wasn’t able to reproduce what you described — having it compile without issues on 9.6.15 but not on 9.7 — as both versions should fail. (This could simply be a caching issue.)

 

At any rate, the right fix is to remove this ambiguity .

On the line of code you shared, please make sure to fully qualify the SubscriptionPeriod parameter, for instance by replacing it with RevenueCat.SubscriptionPeriod or StoreKit.SubscriptionPeriod, depending on your use case.

 

I hope this is useful.

Please let us know if we can help you further. 

 

Best regards,