带有vendored_framework的Cocoapod无法链接到它的依赖关系

时间:2018-04-17 21:14:17

标签: ios objective-c cocoapods

我有一个封装多个框架的pod。 ex)MyPod(vendored_frameworks:SNAPSDK,IVA) IVA的文件需要SNAPSDK但是 当我尝试部署MyPod时,我得到一个错误,说IVA中的文件无法识别SNAPSDK框架

#import <SnapSDK/SnapSDK.h> #fail 

我可以访问所有框架

似乎销售框架(IVA)无法找到另一个销售框架(SNAPSDK)

在IVA项目的框架搜索路径中,我添加了

$(SRCROOT)/Pods/Headers
$(PODS_ROOT)/MyPod(the enclosing one that i am making cocoapod of)/MyPod/
$(inherited)
$(PROJECT_DIR)/IVA

[

Pod::Spec.new do |s|
  s.name             = 'MyPod'
  s.version          = '0.35.0'


  s.description      = <<-DESC
IVA
    DESC

s.homepage         = 'https://www.google.com'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'kevinkang88' => 'kevinkang88@gmail.com' }
  s.source           = { :git => '', :tag => s.version.to_s }

  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'

  s.header_dir = './'

  s.ios.source_files = ['MyPod/Classes/**/*', 'MyPod/SnapSDK.framework/Headers/*','MyPod/sdkprivate.framework/Headers/*']
  s.ios.public_header_files = [..]

   s.resource_bundles = {
     'MyPod' => ['...']
   }
   s.resource = '...'

   s.ios.vendored_frameworks = 'MyPod/SnapLiveness.framework', 'MyPod/SnapSDK.framework', 'MyPod/MobileFlow.framework', 'MyPod/private.framework'


  s.frameworks = 'Foundation', 'UIKit'
  s.pod_target_xcconfig = {
      'OTHER_LDFLAGS' => '$(inherited) -ObjC'
  }
end

0 个答案:

没有答案