1

我试图创建一个使用 pod 的框架,当我运行命令pod lib lint来验证我的.podspec文件时,我得到:

错误 | [iOS] xcodebuild: /Users/ /Desktop/Developer/ / /Models/ .swift:8:8: error: no such module 'SwiftyUserDefaults'

如何将 pod 链接到我的框架

我也收到警告,我认为这是因为我的存储库是私有的,所以我正在阅读教程,但我也收到另一个错误,我不知道这是什么意思:

错误 | [iOS] xcodebuild:返回不成功的退出代码。您可以使用--verbose以获取更多信息。

什么是?

完整信息:

- WARN  | url: The URL (https://github.com/*/*) is not reachable.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- NOTE  | xcodebuild:  note: Using new build system
- NOTE  | [iOS] xcodebuild:  note: Planning build
- NOTE  | [iOS] xcodebuild:  note: Constructing build description
- ERROR | [iOS] xcodebuild:  /Users/*/Desktop/Developer/*/*/Models/EMConnectedPeripheral.swift:8:8: error: no such module 'SwiftyUserDefaults'
4

1 回答 1

3

.podspec文件中添加: spec.dependency 'NameOfDependency'

于 2019-08-29T08:49:32.737 回答