错误:可能未在类别pod lib皮棉上指定属性 Pod规格

错误:

  

错误:类别pod lib lint上可能未指定属性

复制步骤

pod lib create 
pod lib lint

日志:

-> libraryName (0.1.0)
- WARN | summary: The summary is not meaningful.
- WARN | [iOS] swift: The validator used Swift 4.0 by default because no Swift version was specified. To specify a Swift version during validation,add the swift_versions attribute in your podspec. Note that usage of a .swift-version file is now deprecated.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use --verbose for more information.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
- NOTE | [iOS] xcodebuild: warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
- ERROR | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/Foundation.framework/Headers/NSArray.h:109:12: error: attributes may not be specified on a category
- ERROR | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/Foundation.framework/Headers/NSArray.h:196:12: error: attributes may not be specified on a category
- ERROR | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/Foundation.framework/Headers/nsorderedset.h:112:12: error: attributes may not be specified on a category
- ERROR | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/Foundation.framework/Headers/nsorderedset.h:187:12: error: attributes may not be specified on a category
- NOTE | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/UIKit.framework/Headers/UIKit.h:8:9: fatal error: could not build module 'Foundation'
- NOTE | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h:12:9: fatal error: could not build module 'Foundation'
- NOTE | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/OpenGLES.framework/Headers/EAGL.h:8:10: fatal error: could not build module 'Foundation'
- NOTE | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/Metal.framework/Headers/MTLTypes.h:8:9: fatal error: could not build module 'Foundation'
- NOTE | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h:15:9: fatal error: could not build module 'Foundation'
- NOTE | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/CoreImage.framework/Headers/CoreImage.h:9:9: fatal error: could not build module 'Foundation'
- NOTE | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/CoreVideo.framework/Headers/CVPixelBufferIOSurface.h:26:10: fatal error: could not build module 'IOSurface'
- NOTE | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/FileProvider.framework/Headers/NSFileProviderDomain.h:8:9: fatal error: could not build module 'Foundation'
- NOTE | xcodebuild: /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator13.2.sdk/System/library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h:8:9: fatal error: could not build module 'Foundation'
- NOTE | xcodebuild: Target Support Files//-prefix.pch:2:9: fatal error: could not build module 'UIKit'

环境

Cocoapods : 1.8.4
Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
RubyGems : 2.5.2.3
Host : Mac OS X 10.14.6 (18G2022)
Xcode : 11.3 (11C29)
Git : git version 2.21.0 (Apple Git-122.2)
Ruby lib dir :
/System/library/Frameworks/Ruby.framework/Versions/2.3/usr/lib

安装源

可执行路径:/ usr / local / bin / pod

插件:

cocoapods-binary      : 0.4.4
cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

pod规格

# Be sure to run `pod lib lint <libraryName>.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional,but their use is encouraged
# To learn more about a podspec see https://guides.cocoapods.org/syntax/podspec.html
#

pod::Spec.new do |s|
  s.name             = '<libraryName>'
  s.version          = '0.1.0'
  s.summary          = 'A short description of < libraryName >'
  s.module_name      = '< libraryName >'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short,snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally,don't worry about the indent,Cocoapods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = '<url>'
  # s.screenshots     = 'www.example.com/screenshots_1','www.example.com/screenshots_2'
  s.license          = { :type => 'MIT',:file => 'LICENSE' }
  s.author           = { '< libraryName >' => '<email>' }
  s.source           = { :git => '<url>',:tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_username>'
  s.platform = :ios
  s.ios.deployment_target = '9.0'

  s.source_files = '< libraryName >/Classes/**/**.{h,m,swift,xib}'
  s.exclude_files = "< libraryName >/**/*.plist"
  s.static_framework = true
  s.resource_bundles = {
    '< libraryName >' => ['< libraryName >/Assets/*.png']
  }

#   s.public_header_files = 'pod/Classes/*.{h,xib}'
  s.frameworks = 'UIKit','MobileCoreServices','CoreGraphics','Security','SystemConfiguration','CoreTelephony','AdSupport','CoreData','StoreKit'
#  s.dependency 'DropDown','~> 2.3.13'
#  s.dependency 'PhoneNumberKit','~> 3.1.0'
#  s.dependency 'RxSwift','~> 5.0'
#  s.dependency 'RxCocoa','~> 5.0'
#  s.dependency 'flagPhoneNumber','~>0.8.0'
end

是否缺少任何配置?

顺便说一句,我尝试使用pod lib create创建一个Freshs库仍然存在这个问题:D

感谢您的帮助:D

kangjian1207 回答:错误:可能未在类别pod lib皮棉上指定属性 Pod规格

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2902005.html

大家都在问