由于 CocoaLumberjack 子规范导致的 Pod 规范 lint 错误

Pod spec lint error due to CocoaLumberjack subspec

一周前,我已经毫无问题地将 MyApp 推送到我的私人 cocoapods。在此期间我没有使用 CocoaLumberjack 更新任何内容。

我的 podspec 包含:

spec.subspec 'Core' do |cs|
    cs.dependency 'libextobjc', '~> 0.4'
    cs.dependency 'CocoaLumberjack', '2.0.0-rc2'
end

这是命令 && 错误:

$ pod repo push my-private MyApp.podspec 

Validating spec
 -> MyApp (0.0.7)
    - NOTE  | [MyApp/Core] [xcodebuild]  CocoaLumberjack/Classes/DDASLLogger.m:85:31: warning: implicit declaration of function 'geteuid' is invalid in C99 [-Wimplicit-function-declaration]
    - ERROR | [MyApp/Core] [xcodebuild]  CocoaLumberjack/Classes/DDASLLogger.m:85:31: error: conflicting types for 'geteuid'
    - NOTE  | [MyApp/Core] [xcodebuild]  /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/unistd.h:445:8: note: previous declaration is here

[!] The `MyApp.podspec` specification does not validate.

该文件的第 85 行是:

uid_t const readUID = geteuid();

之前一直有效。我不知道发生了什么变化,它现在不起作用。

似乎在升级到 Cocoapods 版本 0.36.0 后自行修复