I have razor pay pod in my project for payment gateway and SWRevelViewController
file for side bar controller. I selected the swift 5 and iOS version 13 and updated all the pods but still getting error
error: using bridging headers with module interfaces is unsupported Command CompileSwiftSources failed with a nonzero exit code
pod 'Alamofire', '~> 4.5' pod 'TWMessageBarManager'
pod 'SwiftValidator', :git => 'https://github.com/jpotts18/SwiftValidator.git', :tag => '4.2.0'
pod 'SDWebImage', '~> 5.0'
pod 'DropDown'
pod 'MBRadioCheckboxButton'
pod 'SwiftyJSON', '~> 4.0'
pod 'razorpay-pod', '~> 1.1.1'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'Firebase/Auth'
pod 'SVProgressHUD'
pod 'FacebookLogin'
pod 'FacebookCore'
pod 'ImageSlideshow', '~> 1.8.0'
pod "ImageSlideshow/SDWebImage"
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'PopupDialog', '~> 1.1'
pod 'GoogleSignIn'
pod 'AppAuth','~> 1.2.0'
I checked your problem and as per you selected project language project work properly in XCode 10.2 but you require changes for updated XCode 11.2.1
Please follow few things :
pod 'razorpay-pod'
Hope it's helpful to you.
In my case, i had to follow these steps:
Step 1:
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'NO'
in my Podfile under
...
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
# Put it here (indent like this)
...
Step 2
Runner
on the left Panel Targets
, select the target (usually "Runner")Build Settings
from the top Menu Build Options
and find the option "Build Libraries for Distribution"NO
(or set it for any particular build scheme)flutter clean
& flutter pub get
This is a similar question (same exact error message) to Xcode 11.2.1 error: Command CompileSwiftSources failed with a nonzero exit code .
I posted an answer that can be found here .
Hope it works for you!
So I faced a problem with Razorpay swift version and following one of the suggested methodologies set Target>Build Libraries for Distribution to Yes.
Big mistake.
kept getting error: using bridging headers with module interfaces is unsupported
Finally fixed it by setting Build Libraries for Distribution Back to No [Razorpay issue was still not resolved so had to downgrade Flutter]
I have solved it in this way, Detailed steps are here, Solution to Xcode Error: using bridging headers with module interfaces is unsupported
Solution:
In your Project Level & Target level Build Settings tab, open the Build Options menu. And then set Build Libraries for Distribution option to No.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.