使用CocoaPods归档iOS项目时找不到模块错误

时间:2019-10-06 23:12:19

标签: ios xcode cocoapods

在归档iOS项目时出现错误“找不到模块SwiftMessages”。我正在使用CocoaPods,Xcode V10.2和iOS V10.1。这是我的pod文件:

# Uncomment the next line to define a global platform for your project
platform :ios, '10.1'

    target 'sumizeit' do
      # 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

1 个答案:

答案 0 :(得分:0)

尝试删除DerivedData文件夹:

~/Library/Developer/Xcode/DerivedData/

内部有一个名为ModuleCache的文件夹,用于缓存模块版本。删除它会使所有模块重新编译,可能解决了您的问题。