[英]Cannot find module error when archiving iOS project using CocoaPods
I get an error "cannot find module SwiftMessages" when archiving an iOS project.归档 iOS 项目时出现错误“找不到模块 SwiftMessages”。 I'm using CocoaPods, Xcode V10.2, and iOS V10.1.
我正在使用 CocoaPods、Xcode V10.2 和 iOS V10.1。 Here's my pod file:
这是我的 pod 文件:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.1'
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Minuteapp
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FBSDKCoreKit'
pod 'FBSDKShareKit'
pod 'FBSDKLoginKit'
pod 'FacebookShare'
pod 'Firebase/Database'
pod 'Firebase/Core'
pod 'Firebase'
pod 'FolioReaderKit'
pod 'SwiftyStoreKit'
pod 'SwiftMessages' , '7.0.0'
pod 'GoogleSignIn'
pod 'Promises'
pod 'Firebase/Auth'
pod 'Firebase/Analytics'
pod 'Flurry-iOS-SDK/FlurrySDK' #Analytics Pod
pod 'Flurry-iOS-SDK/FlurryAds' #Advertising Pod (requires Analytics)
pod 'Flurry-iOS-SDK/FlurryMessaging'
pod 'STPopup'
pod 'SendGrid-Swift'
pod 'DeviceKit'
end
Try deleting the DerivedData
folder:尝试删除
DerivedData
文件夹:
~/Library/Developer/Xcode/DerivedData/
There is a folder inside named ModuleCache
that caches module versions.在名为
ModuleCache
的文件夹中有一个缓存模块版本的文件夹。 Removing it will make all the modules be recompiled, probably solving your issue.删除它将重新编译所有模块,可能会解决您的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.