[英]Include of non-modular header inside framework module error
試圖將ParseLiveQuery cocoapod集成到我的項目中,但在構建時我不斷收到錯誤:
在框架模塊內部包含非模塊化標頭錯誤'Bolt.BFCancellation'
我通過cocoapods安裝了ParseLiveQuery (以及Parse)。 這是我的podfile:
use_frameworks!
pod 'ParseLiveQuery'
pod 'Parse'
post_install do |installer|
installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
end
end
我還在構建設置中將允許框架模塊中的非模塊包含設置為是 ,但仍然會出現此錯誤。
我解決了從框架中刪除Modules
文件夾的問題。
使用finder瀏覽到App Project中存在的框架位置
進入Test.framework
文件夾(在上面的例子中它將是ParseLiveQuery.framework
)和刪除Modules
文件夾。
清理並重新構建應用程序,它將解決問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.