dooboolab-community / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.dooboolab.com
MIT License
2.74k stars 633 forks source link

RNIap.modulemap not found when trying to generate an archive #2539

Open amiroucheoussama opened 10 months ago

amiroucheoussama commented 10 months ago

Description I am getting the following error when trying to generate an archive, in debug mode everything is okay

/Users/user/Library/Developer/Xcode/DerivedData/put_front-cxlwjnwhdvccvwbcghdsniiuvqfe/Build/Intermediates.noindex/ArchiveIntermediates/put_front/IntermediateBuildFilesPath/put_front.build/Release-iphoneos/put_front.build/DerivedSources/put_vers.c module map file '/Users/anis/Library/Developer/Xcode/DerivedData/put_front-cxlwjnwhdvccvwbcghdsniiuvqfe/Build/Intermediates.noindex/ArchiveIntermediates/put_front/BuildProductsPath/Release-iphoneos/RNIap/RNIap.modulemap' not found

and this is the content of the file put_vers.c

 extern const unsigned char ____VersionString[];
 extern const double ____VersionNumber;

 const unsigned char ____VersionString[] __attribute__ ((used)) = "@(#)PROGRAM:put PROJECT:put_front-1" "\n";
 const double ____VersionNumber __attribute__ ((used)) = (double)1.;

Expected Behavior Archive should be successfully generated

Environment:

To Reproduce Steps to reproduce the behavior:

  1. install react-native-iap
  2. cd ios && pod install
  3. try to generate archive from xcode
yongbam commented 9 months ago

for me, clear pod cache and modify pod target to arm64, I don't know why pod target change to i386

chenwf1990 commented 1 month ago

I also have this problem, how to deal with it

chenwf1990 commented 1 month ago

for me, clear pod cache and modify pod target to arm64, I don't know why pod target change to i386

I also have this problem, how to deal with it