一周前,我将 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();
它以前一直在工作。我不知道发生了什么变化,它现在不起作用。