我正在尝试设置以下私有 Cocoapods 安排:
PodA取决于PodB哪个取决于CommonCrypto。
CommonCrypto是dylibiOS 附带但没有Swift标头模块的一个。在PodB我创建了一个module.modulemap包含以下内容的自定义:
module CommonCrypto [system] {
header "/usr/include/CommonCrypto/CommonCrypto.h"
}
PodBpod spec lint PodB.podspec添加以下行后通过 lint 测试 ( ):
# Ensure module isn't deleted by CocoaPods
s.preserve_paths = 'path_to/PodB/CommonCrypto'
s.pod_target_xcconfig = { 'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/path_to/CommonCrypto' }
内,PodA我靠着PodB。使用s.dependency = 'PodB'linting编译任何文件时出现错误:PodApod spec lint --sources=myrepo PodA.podspecSwiftimport PodB
missing required module 'CommonCrypto'
我该如何解决这个问题?CommonCrypto对我来说是私有的还是公开的对我来说并不重要PodB。
我尝试添加export *,module.modulemap但没有任何区别。