没有生成头文件 - 当cocoapods打包框架时

时间:2016-12-18 02:53:19

标签: ios frameworks cocoapods

我尝试使用cocoapods打包静态库。但我只得到一个名为" libLTVoiceAssistant.a"

的文件

该项目是通过pod lib create LTVoiceAssistant生成的,然后,我将代码和一些框架移入其中。而且pod lib lint LTVoiceAssistant.podspec已经通过......好吧,你们必须知道,因为我已经打包了一个静态库。 这是我的spec文件内容:

    Pod::Spec.new do |s|

     s.version          = '0.1.3'

     s.source           = { :git => '/Users/kenny/Documents/LTVoiceAssistant', :tag => s.version.to_s }


     s.ios.deployment_target = '8.0'

    s.requires_arc = true
    s.resource = 'LTVoiceAssistant/Classes/Cells/*.xib'
    s.source_files = 'LTVoiceAssistant/Classes/**/*.{c,h,hh,m,mm,cpp,a}'

   s.resource_bundles = {
      'LTVoiceAssistantBundle' => ['LTVoiceAssistant/Assets/LTVoiceAssistantBundle/**/*']
     }
   s.public_header_files = 'LTVoiceAssistant/Classes/PublicHeader/*.h'
   s.ios.vendored_libraries = 'LTVoiceAssistant/Classes/libBDVoiceRecognitionClient.a',
                         'LTVoiceAssistant/Classes/libBDSSpeechSynthesizer.a'

   s.ios.vendored_frameworks = 'LTVoiceAssistant/Classes/*.framework'

   s.frameworks = 'Foundation','UIKit','JavaScriptCore','CoreText','CoreFoundation',
              'CoreGraphics','GLKit','QuartzCore','OpenGLES','CoreLocation','CFNetwork',
              'Security','CoreTelephony','SystemConfiguration','AVFoundation','AudioToolbox'

    s.libraries = 'iconv.2.4.0','z.1.2.5','stdc++.6.0.9','c++','z.1'
    s.preserve_paths = 'LTVoiceAssistant/Classes/*.framework'

    s.dependency 'Aspects'
    s.dependency 'Objection', '1.6.1'
    s.dependency 'ReactiveCocoa','2.5'
    s.dependency 'MJExtension'
    s.dependency 'Masonry'
    s.dependency 'AFNetworking'
    s.dependency 'CocoaLumberjack','3.0'
    s.dependency 'INTULocationManager'
   end

我用pod package LTVoiceAssistant.podspec --library --force命令打包。我错过了什么吗?

我的项目树: project tree 仅供参考:我也尝试生成框架类型,使用pod package LTVoiceAssistant.podspec --force,好吧,头文件出现了。 然后,我新建了一个测试项目,并尝试导入标题,好吧,错误来了...... not found

0 个答案:

没有答案