【发布时间】:2019-09-04 15:20:47
【问题描述】:
当我尝试构建我的项目时,我收到一个编译时错误,提示找不到我的 pod 的“模块映射文件”并且我缺少一个“SwiftShimes”模块。
这很奇怪,因为我所有的模块映射文件都在我安装 pod 时应该在的位置。
我正在使用 Xcode 10.2 和 Cocoapods 1.6.1。
我已经尝试了以下 ->
- 从我的项目中分离 cocoapods
- 清理项目
- 已删除 ModuleCache 和 DerivedData
- 重新启动我的电脑
这是我遇到的错误类型 ->
Module map file '/Users/kaunamohammed/Library/Developer/Xcode/DerivedData/OutNow-gxdxvzwmnijmrlajtbtyclkhrgqs/Build/Products/Debug-iphoneos/CodableFirebase/CodableFirebase.modulemap' not found
我希望我的项目能够正确构建,但事实并非如此,我不确定还能做什么。
这就是我的 Podfile 的样子
platform :ios, '10.0'
workspace 'OutNow'
target 'OutNow' do
use_modular_headers!
#Pods for OutNow
pod 'Instabug'
pod 'SwiftMessages'
pod 'CodableFirebase'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Storage'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'
pod 'Firebase/DynamicLinks'
pod 'MarqueeLabel/Swift'
pod 'RxSwift', '4.4.2'
pod 'RxCocoa', '4.4.2'
pod 'Kingfisher', '5.3.1'
pod 'InstantSearchClient', '6.0'
pod 'CoordinatorLibrary', '1.0.5'
pod 'UIScrollView-InfiniteScroll', '1.1.0'
target 'OutNowTests' do
inherit! :search_paths
# Pods for testing
end
end
【问题讨论】:
-
最新版本的 CocoaPods 是 1.6.something,还有一个 1.7 beta 版本。我会将您的 CocoaPods 更新到最新版本(1.6.something)并再次尝试
pod install。此外,您可能想发布您的Podfile,因为您可能安装了错误版本的 Alamofire。最后,您打开的是工作区,而不是项目? -
我现在已经更新到最新的稳定版本的 cocoapods 并完成了 pod install 但问题仍然存在
-
你看过这个答案了吗? stackoverflow.com/a/30836224/4475605
-
是的,我做到了。不幸的是,问题仍然存在
-
出于某种奇怪的原因,现在一切似乎都正常了。感谢您的帮助?