我有一個麻煩。 我創建了簡單的項目,並在結果中有下一個文件:ViewController.h,ViewController.m,ViewController.xib,ViewController.podspec和LICENSE。Xcode,cocoapods + nib文件,s.resources = ['*。{xib}']不起作用
Structure of ViewController.podspec:
Pod:: Spec.new do |s|
s.name = "ViewController"
s.version = "0.1.0"
s.summary = "Some text"
s.homepage = "setmypage"
s.license = 'MIT'
s.author = { "Oleksii" => "[email protected]" }
s.source = { :path => "." }
s.platform = :ios
s.requires_arc = true
s.source_files = '*.{h,m,xib}'
s.resources = ['*.{xib}']
end
我創建了簡單的新項目並添加了Pod文件夾。
在爲我的Pod 做了pod lib lint之後,並執行pod安裝此pod。
Structure Podfile:
platform :ios
pod "ViewController", :path => "testPod/"
pod 'ViewController'
好的。我有我的Pod的項目。但是當我嘗試構建我的項目時,我收到了 無法運行命令'StripNIB ViewController.nib' - 此目標可能包含它自己的產品。
我該怎麼辦?
謝謝!有用。 – Oleksii 2015-12-15 11:55:52