react-native-purchases: xCode build PurchasesCoreSwift not found

Describe the bug

I’m using Expo bare and updated from SDK 40 to SDK 41.

Locally, running npm run ios, the app starts fine and the purchases works fine. (purchase and restore was what I tried)

However, when I try to create xCode build, it doesn’t work. I followed the React Guide as usual, it’s on the last step that it fails.

It seems PurchasesCoreSwift no found.

fatal error: module map file ‘/Users/sandrina-p/Library/Developer/Xcode/DerivedData/PapersTheGame-aecprcpfcgsomheuxkcfpejjtyib/Build/Intermediates.noindex/ArchiveIntermediates/PapersTheGame/BuildProductsPath/Release-iphoneos/PurchasesCoreSwift/PurchasesCoreSwift.modulemap’ not found

I already tried to reinstall the pods (including delete pod lock and folder and cache), but the error keeps happening.

  1. Environment
    1. Platform: MacOS
    2. SDK version: 1.10.1
    3. OS version: Catalina 10.15.7
    4. XCode/Android Studio version: 12.3
    5. React Native version: 0.63.4
    6. SDK installation (CocoaPods + version or manual): 1.10.1

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 35 (14 by maintainers)

Most upvoted comments

@aboedo those are good news! I’ll try this on the weekend and the get back to you! Thank u again 😊

@aboedo, that was it, the build worked!! 🙌 I don’t know how I missed that part (that’s how newbie I am with xcode).

Thank you a lot for your patience.

So a TLDR of my solution:

  • Ensure version are a match at both xcode settings and podfile (in my case 11.0)
  • Update xcode to 12.4

I’m closing this now 😃

@rborn I’m glad it worked! I’m sorry you ran into that experience. These issues are suuuper hard to find and fix. I’m still looking for solutions that are more foolproof, but for now the troubleshooting guide is the best I could come up with.

@sandrina-p 🤔 well, if you run into the issue again, then I think the most helpful things would be the versions of everything (i.e.: npm, xcode, react-native, cocoapods, etc), and if you make any changes to the actual code, the branch. Essentially anything I can use to try to reproduce, since it had worked correctly for me after the small changes I mentioned. I hope it starts working, though! 🤞

@sandrina-p thanks for the update!! I’m glad it’s working now. I’ll add a note about deployment targets in the Expo-specific docs and in the troubleshooting guide. And good luck with The Papers Game! Let us know if you run into any more issues.