0

一周前,我将 MyApp 推送到了我的私人 cocoapod 上,没有任何问题。在此期间,我没有用 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();

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

4

1 回答 1

0

升级到 Cocoapods 0.36.0 版后似乎可以自行修复

于 2015-03-13T09:14:10.413 回答