如何解决“没有这样的模块'ObjectMapper'”的问题?

问题描述

我在XCode上的快速项目遇到问题。我将Cocoapods用于框架。 我的项目没有建立。我遇到此错误No such module 'ObjectMapper'

我尝试过 pod安装 pod更新 pod解集成,清理构建文件夹,删除.xcworkspace文件删除派生数据,更新XCode,但是没有用。

问题不在于代码,因为它在上周和今天在其他Mac上都适用于此Mac。它在更改我的git上的分支后出现。

这是我的pod文件

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

def pods
    platform :ios,'13.2'
    pod 'RESideMenu'
    pod 'Alamofire','~> 4.5'
    pod 'AlamofireImage','~> 3.1'
    pod 'JSONHelper'
    pod 'SwiftyJSON'
    pod 'Google/Analytics'
    pod 'ObjectMapper','~> 3'
    pod 'AlamofireObjectMapper','~> 5.0'
    pod 'RealmSwift','~> 3.18.0'
    pod 'KVNProgress'
    pod 'CalendarLib'
    pod 'Charts','3.2.1'
    pod 'SwiftEventBus',:tag => '2.2.0',:git => 'https://github.com/cesarferreira/SwiftEventBus.git'
    pod 'RichEditorView',:git => 'https://github.com/T-Pro/RichEditorView.git',:branch => 'master'
    pod 'SwiftHSVColorPicker'
    pod 'Crashlytics'
    pod 'Toucan'
    pod 'RFquiltLayout'
    pod 'Kingfisher'
    pod 'CropViewController',:tag => '2.4.0',:git => 'https://github.com/TimOliver/TOCropViewController.git'
    pod 'matomoTracker','~> 7'
    pod 'MaterialShowcase'
    pod 'UIdeviceidentifier',:git => 'https://github.com/squarefrog/UIdeviceidentifier.git'
end

post_install do |installer|
      installer.pods_project.targets.each do |target|
          target.build_configurations.each do |config|
              if ['RichEditorView','Toucan'].include? target.name
                config.build_settings['SWIFT_VERSION'] = '4.0'
              else
                config.build_settings['SWIFT_VERSION'] = '4.2'
              end
          end
      end
end


target 'targetName' do
    pods
end

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)