首页 > 解决方案 > pod lib lint 显示没有此类模块错误

问题描述

我正在创建一个 pod 框架,并且在我的项目的一个文件中我使用了第三方库DataCompression。我有一个与它相关的 podspec 文件,我运行它,pod lib lint我得到了这个

-> MyPod (0.1.0)
    - WARN  | http: The URL (`~/Desktop/qwerty/`) doesn't use the encrypted HTTPS protocol. It is crucial for Pods to be transferred over a secure protocol to protect your users from man-in-the-middle attacks. This will be an error in future releases. Please update the URL to use https.
    - 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/shubhambhiwaniwala/Desktop/qwerty/qwerty/Encryptor.swift:10:8: error: no such module 'DataCompression'

[!] MyPod did not pass validation, due to 2 errors.
You can use the `--no-clean` option to inspect any issue.

我该如何解决这个问题?

标签: swiftcocoa-touchcocoapodspodspec

解决方案


推荐阅读