Skip to main content

When building iOS simulator build from react native, with the react-native-purchases 7.0.0, and XCode is 16.4 (if that matters).

I use this command:  eas build --platform ios --profile development-ios --local

Then during the eRUN_FASTLANE] I see:
“'SubscriptionPeriod' is ambiguous for type lookup in this context”.  

However, I don’t see it if I build with eas (not locally).

I understand Flutter fixed this issue recently. 
1) Which version was this fixed in for react-native-purchases?  
2) Why do I only see it when building locally?
 

Hi ​@jeffrey-oboe,

When Xcode 16.3 and iOS 18.4 were released, they contained some new StoreKit typealiases that caused a few compilation issues in our SDKs. We released a fix in our SDK for that which for React Native can be found in version 8.6.2. If you upgrade to that version or newer you shouldn’t see the compilation error anymore.

Let me know if that worked!

 

 


That did indeed work, thank you joan-cardona.


Reply