【问题标题】:podspec validation error when pod lib lintpod lib lint 时的 podspec 验证错误
【发布时间】:2018-08-29 09:11:05
【问题描述】:

这是我的 podspec 配置

Pod::Spec.new do |s|
s.name             = 'GoogleDriveBrowser'
  s.version          = '0.1.0'
  s.summary          = 'A short description of GoogleDriveBrowser.'

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

  s.homepage         = 'https://github.com/sourovsuet@gmail.com/GoogleDriveBrowser'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'name' => 'something@gmail.com' }
  s.source           = { :git => 'https://github.com/something@gmail.com/GoogleDriveBrowser.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'

  s.source_files = 'GoogleDriveBrowser/Classes/**/*'

  s.platform     = :ios, '9.0'

  s.static_framework = true
  s.dependency 'GoogleAPIClientForREST/Drive', '~> 1.2.1'
  s.dependency 'Google/SignIn', '~> 3.0.3'

  s.resources = "Resources/**/*"

  s.public_header_files = 'GoogleDriveBrowser/Classes/SDGDTableViewController.h'
end

运行这个命令得到这个错误

  • 错误 | xcodebuild:/Users/sourov08/Library/Developer/Xcode/DerivedData/App-bbthnzgzgpswrxfepjqmoltfojki/Build/Products/Release-iphonesimulator/GoogleDriveBrowser/GoogleDriveBrowser.framework/Headers/SDGDTableViewController.h:10:9: 错误:在框架模块中包含非模块化标头 'GoogleDriveBrowser.SDGDTableViewController': '标题/公共/谷歌/谷歌/SignIn.h' [-Werror,-Wnon-modular-include-in-framework-module]

【问题讨论】:

    标签: ios cocoapods


    【解决方案1】:

    我从chiness blog 找到了答案

    解决了我的公共头文件中的前向声明而不是

    @import GoogleSignIn; instead of #import <Google/SignIn.h>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-27
      • 1970-01-01
      • 2020-03-01
      • 2015-11-21
      • 2016-09-21
      相关资源
      最近更新 更多