PayHereLK / payhere-mobilesdk-reactnative

PayHere Mobile SDK for React Native
8 stars 6 forks source link

The following Swift pods cannot yet be integrated as static libraries #19

Closed PayHereDevs closed 2 years ago

PayHereDevs commented 2 years ago

Running pod install results in the following error:

The Swift pod payHereSDK depends upon SDWebImage, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set use_modular_headers! globally in your Podfile, or specify :modular_headers => true for particular dependencies.

PayHereDevs commented 2 years ago

Follow these steps to fix the issue:

  1. In your project folder, open the ios/Podfile file
  2. Find the line that says pod 'payHereSDK'
  3. Above it, add this line:
pod 'SDWebImage', :modular_headers => true

The final result will look as follows:

image

Save the Podfile file, and re-run the pod install command.