2016-12-22 5 views
1

私はサブスペックに応じてファイルを除外しようとしています。私Podfileに私は、ファイルがインポートされていない、pod 'MyPod/Realm'を呼び出すとRoughltは、私の(ローカル)podspecはサブスペースは、ココアポッドのsource_filesとresourcesプロパティを継承しません。なぜですか?

s.source_files = "all" 
s.resources = "some" 

s.subspec 'CoreData' do |sp| 
    sp.exclude_files = ... 
end 
s.subspec 'Realm' do |sp| 
    sp.exclude_files = ... 
end 

のように見えます。

私に何かが不足していますか?

sp.source_files = "all"をサブスペックに追加する必要があります。 サブスペックはsource_filesプロパティまたはresourcesプロパティを継承していないようです。

答えて

0

はこれまでのところ、私の解決策を実行することです

#s.source_files = "all" 
    #s.resources = "some" 

    s.subspec 'CoreData' do |sp| 
    sp.source_files = "all" 
    sp.resources = "some" 
    sp.exclude_files = ... 
    end 

    s.subspec 'Realm' do |sp| 
    sp.source_files = "all" 
    sp.resources = "some" 
    sp.exclude_files = ... 
    end 
関連する問題