AppCenter 构建失败,没有这样的模块
AppCenter build fails with no such module
我在 AppCenter 上的自动 iOS 构建失败并出现以下错误(片段):
ViewController.swift:10:8: error: no such module 'MBCircularProgressBar'
import MBCircularProgressBar
^
但我不知道可能是什么问题。我正在使用 CocoaPods 导入该框架。
我的 Podfile
看起来像这样(删除了所有其他 pods):
target 'MyApp' do
use_frameworks!
pod 'MBCircularProgressBar'
end
我有一个 Post 克隆脚本 appcenter-post-clone.sh
,它在 AppCenter 中被识别,其中包含:
#!/usr/bin/env bash
pod repo update
pod install
编辑: 在要编译的文件列表中将有问题的文件向下移动后,我在另一个 CocoaPod 上遇到了同样的错误。所以在我看来,没有找到 CocoaPods
这里出了什么问题?
你能检查一下你正在构建你的项目工作区吗?您需要构建工作区才能让 Cocoapods 正常工作,而不是 Xcode 项目。
我在 AppCenter 上的自动 iOS 构建失败并出现以下错误(片段):
ViewController.swift:10:8: error: no such module 'MBCircularProgressBar'
import MBCircularProgressBar
^
但我不知道可能是什么问题。我正在使用 CocoaPods 导入该框架。
我的 Podfile
看起来像这样(删除了所有其他 pods):
target 'MyApp' do
use_frameworks!
pod 'MBCircularProgressBar'
end
我有一个 Post 克隆脚本 appcenter-post-clone.sh
,它在 AppCenter 中被识别,其中包含:
#!/usr/bin/env bash
pod repo update
pod install
编辑: 在要编译的文件列表中将有问题的文件向下移动后,我在另一个 CocoaPod 上遇到了同样的错误。所以在我看来,没有找到 CocoaPods
这里出了什么问题?
你能检查一下你正在构建你的项目工作区吗?您需要构建工作区才能让 Cocoapods 正常工作,而不是 Xcode 项目。