Search code examples
iosswiftswift4swift5

using bridging headers with module interfaces is unsupported Command CompileSwiftSources failed with a nonzero exit code


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'

Solution

  • 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 :

    1. Make sure first your bridging header file path is proper in build settings.
    2. You need to update razor pay pod because you add tag (pod 'razorpay-pod', '~> 1.1.1'), and pod updated in Swift 5.1 so please remove it and change pod name with pod 'razorpay-pod'
    3. Please change your build settings. Set Build Library for Distribution in the build settings for the target framework to YES.

    Hope it’s helpful to you.