簡體   English   中英

歸檔項目 swift4 時沒有這樣的模塊“Alamofire”

[英]No such module 'Alamofire' when archive the project swift4

你好,現在一切正常,但是當我嘗試歸檔我的項目時,我遇到了這個錯誤“沒有這樣的模塊‘Alamofire”我不知道發生了什么,在堆棧溢出的許多帖子之后,我的豆莢仍然面臨同樣的問題

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

target 'WithinRider' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for WithinRider
   pod 'SwiftyJSON', '~> 4.0'
   pod 'Alamofire', '~> 4.7'
   pod 'MRProgress'
   pod 'GoogleMaps'
   pod 'GooglePlaces'
   pod 'SwiftGifOrigin'
   pod 'SDWebImage', '~> 4.0'
   pod 'Toast-Swift', '~> 3.0.1'
   pod 'Firebase/Core'
   pod 'Firebase/Messaging'
   pod 'AKMaskField'
   pod 'Socket.IO-Client-Swift', '~> 13.2.0'
   pod 'BadgeSwift', '~> 5.0'
   pod 'SwiftyGif'
   pod 'PagingTableView'
   pod 'AlamofireObjectMapper', '~> 5.0'


  target 'WithinRiderTests' do


    inherit! :search_paths
    # Pods for testing
  end

  target 'WithinRiderUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

錯誤

No such module 'Alamofire'

你試過標准程序嗎?

1.清理項目

2.關閉Xcode,重新安裝丟失的pod,重新打開Xcode

3. 構建項目

我在存檔時遇到了同樣的錯誤。 是執行操作的正確方法的鏈接。 有時它不能解決你的問題。 它也沒有解決我的問題。 所以我不得不編輯方案 Achieve 下,我更改了Build Configuration,因為我有幾個構建配置。 然后嘗試重新歸檔項目。

我已經通過將 POD 和項目目標部署目標更改為相同來解決該問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM