2014-04-01 47 views
2

我想爲我的類設置一個podspec,它似乎沒有在我的項目中正確包含sqlite庫。當我使用這個吊艙時,我必須手動鏈接它。我是否設置了不正確的podspec,或者是否需要在項目中執行某些操作以自動包含sqlite庫?爲什麼這個podspec自動包含sqlite庫?

Pod::Spec.new do |s| 

    s.name    = "ABSQLite" 
    s.version   = "1.1.0" 
    s.summary   = "ABSQLite is an Objective-C wrapper to SQLite making it easy to use the database." 
    s.homepage   = "https://github.com/AaronBratcher/ABSQLite" 
    s.license   = { :type => 'MIT', :file => 'LICENSE' } 
    s.author    = { "Aaron L. Bratcher" => "[email protected]" } 
    s.social_media_url = "http://twitter.com/AaronLBratcher" 
    s.source    = { :git => "https://github.com/AaronBratcher/ABSQLite.git", :tag => '1.1.0' } 
    s.source_files  = 'Classes/**/*.{h,m}' 
    s.library   = 'sqlite3' 
    s.requires_arc = true 

end 

回答

0
根據 podspec specification

嘗試改變s.librarys.ios.library 或使用s.libraries

請告訴我,如果這行不通

+0

請加少許更多的解釋? –

相關問題