Solved

Module 'RevenueCat' not found - MIgrating ObjC to V4


Badge +2

I am migrating my Objective-C game project to V4 but can’t get past a ‘Module 'RevenueCat' not found’ build error.

I have added the RevenueCat-Swift.h file and referenced it in the Bridging-Header.h file.

I have upgraded Pods.

 

@import RevenueCat; causes a build error.

 

Completely stuck.

icon

Best answer by DomA 27 June 2022, 23:51

View original

3 replies

Userlevel 5
Badge +9

Hey @DomA!

Not sure if this similar thread helps in your case: 

 

import RevenueCat is the correct name. Have you tried clearing out your build folder (Command-Option-Shift-K) and derived data?

Badge +2

Thank you for your reply Ryan, I just came back to say it worked when I used Rosetta. I am on an M1 Mac and don’t really understand why it has made a difference, but it now works.

Userlevel 5
Badge +9

Glad it’s working for you now! Could have been some weird cache that was cleared using Rosetta. 

Reply