[英]Xcode - Include of non-modular header inside framework module error when archiving project
我目前正在嘗試存檔我的項目,以便在遇到此問題時最終在應用商店更新我的應用。
我在XlsxReaderWriter框架中的多個文件上收到此錯誤。
Include of non-modular header inside framework module 'XlsxReaderWriter.BRARelationship': '/Users/dannyespina/Documents/iOS_Applications/LoanMaster/loan-master/Pods/XMLDictionary/XMLDictionary/XMLDictionary.h'
過去我遇到過這個框架的問題,但不幸的是,這是唯一一種寫入 excel 文件的框架。 我必須進行一些更改才能使其按此處所示工作。
我嘗試了一切來解決這個問題,例如:
奇怪的是,我過去使用這個框架歸檔了這個項目,並對其進行了完全相同的更改。 圖書館已經 3 年沒有更新了,所以沒有什么新東西會導致這種情況。 這是新版本 Xcode 的問題嗎?
我真的只想更新我過去 6 個月一直在開發的應用程序:(
任何幫助將是驚人的!
播客文件
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'LoanMaster' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for LoanMaster
pod 'MPNumericTextField', '~> 1.4.0'
pod 'Charts', '~> 3.2.1'
pod 'LGButton'
pod 'RealmSwift'
pod 'SpreadsheetView'
pod 'IQKeyboardManagerSwift'
pod 'GoogleMobileAdsMediationMoPub'
pod 'PersonalizedAdConsent'
pod 'PopupDialog', '~> 1.1'
pod 'NVActivityIndicatorView'
pod 'FBAudienceNetwork'
pod 'Firebase/Core'
pod 'Firebase/AdMob'
pod 'XlsxReaderWriter', '~> 1.0'
pod 'M13Checkbox'
post_install do |installer|
installer.pods_project.targets.each do |target|
if ['SpreadsheetView', 'IQKeyboardManagerSwift', 'NVActivityIndicatorView'].include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
target.build_configurations.each do |config|
config.build_settings['CLANG_WARN_DOCUMENTATION_COMMENTS'] = 'NO'
end
end
end
end
end
我通過將 XMLDictionary.h 添加到 XlsxReaderWriter 的公共標頭並將導入“XMLDictionary/XMLDictionary.h”更改回“XMLDictionary.h”解決了該問題。
我跟着這個答案
我希望這對仍在使用這個古老而被遺忘的框架的人有所幫助。
嘗試從 podfile 中刪除 XMLDictionary 的 pod 並再次添加它會起作用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.