【问题标题】:Swift compiling error: Module map file not found + Missing required module 'SwiftShims'Swift 编译错误:找不到模块映射文件 + 缺少必需的模块“SwiftShims”
【发布时间】:2020-06-06 23:31:11
【问题描述】:

在错误地运行 pod update 后,我不断收到这些错误。 过去几天一直在寻找解决方案,但没有任何帮助,我的一些尝试:

1) How to fix cocoapod .modulemap file not found

2) missing required module 'SwiftShims' error generated by Xcode in project

尝试了这些 Q 和其他一些 SO Q 中提到的所有解决方案,但没有任何帮助。

错误:

<unknown>:0: error: module map file '/Users/admin/Library/Developer/Xcode/DerivedData/Demo- 
dkfcfedygluokngempogitocknga/Build/Products/Debug-iphonesimulator/Charts/Charts.modulemap' not found
<unknown>:0: error: module map file '/Users/admin/Library/Developer/Xcode/DerivedData/Demo- 
dkfcfedygluokngempogitocknga/Build/Products/Debug-iphonesimulator/Charts/Charts.modulemap' not found
<unknown>:0: error: missing required module 'SwiftShims'

这是我的 Podfile:

target "Demo" do
pod 'Firebase/Core'
pod 'Firebase/MLVision'
pod 'Firebase/MLVisionTextModel'
pod 'Charts', '3.2.0'
end

我正在运行 MacOS 10.13.6 和 Xcode 10.1,Cocoa pods 版本是 1.7.1

【问题讨论】:

    标签: swift xcode cocoapods swiftcharts


    【解决方案1】:

    我在尝试从 .xcodeproj 而不是 .xcworkspace 进行编译时遇到错误

    (使用 Okta 构建 React Native)

    【讨论】:

      猜你喜欢
      • 2020-09-04
      • 1970-01-01
      • 2018-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-31
      • 2018-12-05
      相关资源
      最近更新 更多