![](/img/trans.png)
[英]error: using bridging headers with module interfaces is unsupported Command CompileSwiftSources failed with a nonzero exit code
[英]using bridging headers with module interfaces is unsupported Command CompileSwiftSources failed with a nonzero exit code
我的支付網關項目中有 razor pay pod,側欄 controller 有SWRevelViewController
文件。我選擇了 swift 5 和 iOS 版本 13 並更新了所有 pod,但仍然出現錯誤
錯誤:不支持將橋接頭與模塊接口一起使用命令 CompileSwiftSources 失敗,退出代碼非零
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'
我檢查了您的問題,並根據您選擇的項目語言項目在XCode 10.2 中正常工作,但您需要更改更新的XCode 11.2.1
請遵循以下幾點:
pod 'razorpay-pod'
更改 pod 名稱希望對你有幫助。
就我而言,我必須遵循以下步驟:
步驟1:
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'NO'
在我的 Podfile 下
...
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)
...
第2步
Runner
Targets
下,select 是目標(通常是“Runner”)Build Settings
Build Options
並找到選項“Build Libraries for Distribution”NO
(或為任何特定的構建方案設置它)flutter clean
& flutter pub get
這是一個與Xcode 11.2.1 error: Command CompileSwiftSources failed with a nonzero exit code類似的問題(完全相同的錯誤消息)。
我發布了一個可以在這里找到的答案。
希望這對你有用!
因此,我遇到了 Razorpay swift 版本的問題,並按照建議的方法之一將 Target>Build Libraries for Distribution 設置為 Yes。
大錯。
不斷收到error: using bridging headers with module interfaces is unsupported
最后通過將 Build Libraries for Distribution 設置為 No [Razorpay 問題仍未解決,因此不得不降級 Flutter 來修復它]
我是這樣解決的,詳細步驟在這里, 解決Xcode錯誤:不支持使用帶有模塊接口的橋接頭
解決方案:
在您的項目級別和目標級別構建設置選項卡中,打開構建選項菜單。 然后將 Build Libraries for Distribution 選項設置為 No。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.