react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

RNIap.modulemap not found when trying to generate an archive

Open amiroucheoussama opened this issue 1 year ago • 3 comments

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:

  • react-native-iap: 12.10.7
  • react-native: 0.71.8
  • Platforms (iOS, Android, emulator, simulator, device): IOS, Xcode

To Reproduce Steps to reproduce the behavior:

  1. install react-native-iap
  2. cd ios && pod install
  3. try to generate archive from xcode

amiroucheoussama avatar Sep 07 '23 14:09 amiroucheoussama

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

yongbam avatar Sep 14 '23 04:09 yongbam

I also have this problem, how to deal with it

chenwf1990 avatar May 31 '24 06:05 chenwf1990

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

chenwf1990 avatar May 31 '24 06:05 chenwf1990