【发布时间】:2016-04-09 15:26:56
【问题描述】:
我正在尝试为 WLXBluetoothDevice 项目制作新的 Podspec。我被困在 pod spec lint 上。我已经在 podspec 文件中声明了它的一个依赖项:
s.dependency 'CocoaLumberjack'
(......奇怪的是,如果我在该声明中包含当前版本,lint 很快就会失败,说它不能满足依赖关系。)
当我调用 pod spec lint 时,xcodebuild 被触发,并且失败:
** BUILD FAILED **
The following build commands failed:
CompileC /var/folders/yz/xbdghvnj1_7fhsrwl5v232b40000gn/T/CocoaPods/Lint/build/Pods.build/Release-iphonesimulator/WLXBluetoothDevice.build/Objects-normal/i386/WLXBluetoothDeviceLogger.o WLXBluetoothDevice/WLXBluetoothDevice/WLXBluetoothDeviceLogger.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
-> WLXBluetoothDevice (0.6.1)
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: WLXBluetoothDevice/WLXBluetoothDevice/WLXBluetoothDeviceLogger.h:12:9: fatal error: 'CocoaLumberjack/CocoaLumberjack.h' file not found
Analyzed 1 podspec.
[!] The spec did not pass validation, due to 1 error.
我已经成功地使用 pod 安装到另一个项目......所以它似乎只是 lint 构建对此不满意。有什么建议吗?
【问题讨论】:
标签: xcode cocoapods xcodebuild