[英]Cannot Archive Xcode Project, Error No such module '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. 構建項目
我已經通過將 POD 和項目目標部署目標更改為相同來解決該問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.