我創建了一個包含Cocoapods的專用吊艙。該吊艙具有依賴性。Cocoapods pod創建目標,並在使用時更改Xcode的目標
當我在我的Xcode項目中使用此窗格時,在運行pod install
之後,Xcode的方案現在默認爲「MyPodName(Pods Project)」,而不是我的應用程序的目標。這有些煩人,因爲我必須去改變計劃回,每次我跑pod install
,因爲不同的分支可能在Podfile.lock
我使用pod lib create
產生的CocoaPods骨架創建了波德差異。
這裏是我的podspec:
Pod::Spec.new do |s|
s.name = "MyPodLib"
s.version = "2.0.0"
s.summary = "MyPodLib is just an example name for this question."
s.description = <<-DESC
DESC
s.homepage = "https://github.com/username/MyPodLib"
s.license = 'License'
s.author = { "username" => "[email protected]" }
s.source = { :git => "https://github.com/username/MyPodLib.git", :tag => s.version.to_s }
s.platform = :ios, '8.4'
s.requires_arc = true
s.source_files = 'Pod/Classes/**/*'
s.resource_bundles = {
'MyPodLib' => ['Pod/Assets/*.png']
}
s.dependency 'DependencyPod', '2.0.0'
end
我想這可能只是我的電腦上發生過。同事說不會發生在他身上。
我和我的同事們有同樣的問題。我目前的調查途徑是讓'pod'停止一般的生成計劃,因爲我不認爲他們是必要的。如果必須創建方案,我想取消選中「顯示」位(在管理方案中可見) – aednichols