Cocoapods pod 创建目标并在使用时更改 Xcode 中的目标
Cocoapods pod creates target and when used changes target in Xcode
我用 Cocoapods 创建了一个私有 pod。 Pod 有依赖项。
当我在我的 Xcode 项目中使用此 pod 时,Xcode 的方案现在默认为 "MyPodName (Pods Project)" 而不是 运行 宁 [=12] 后我的应用程序的目标=].这有点烦人,因为我每次 运行 pod install
都得把方案改回来,因为不同的分支在 Podfile.lock
中可能会有差异
我使用 pod lib create
生成的 Cocoapods 框架创建了我的 Pod。
这是我的 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@address.com" }
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
我想这也可能只发生在我的电脑上。同事说不会发生在他身上。
Cocoapods 开发人员在 this pull request 中添加了开发方案共享 pods 时引入了此行为。您的同事可能一直在使用较早版本的 Cocoapods,因为该 PR 在 2015 年 5 月才合并。
pod
生成的方案设置为共享和可见,没有可用于更改此行为的选项。我们不是唯一遇到此问题的人 (1, 2, 3)。
一位 Cocoapods 开发人员随后发布了 plugin that's supposed to remove the schemes (literally by rm
-ing 创建后的共享方案)。我说应该,因为我还没有弄清楚如何根据提供的说明使它工作。
编辑:现在是同一个开发者 confirms 插件可能无法按预期工作。
我用 Cocoapods 创建了一个私有 pod。 Pod 有依赖项。
当我在我的 Xcode 项目中使用此 pod 时,Xcode 的方案现在默认为 "MyPodName (Pods Project)" 而不是 运行 宁 [=12] 后我的应用程序的目标=].这有点烦人,因为我每次 运行 pod install
都得把方案改回来,因为不同的分支在 Podfile.lock
我使用 pod lib create
生成的 Cocoapods 框架创建了我的 Pod。
这是我的 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@address.com" }
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
我想这也可能只发生在我的电脑上。同事说不会发生在他身上。
Cocoapods 开发人员在 this pull request 中添加了开发方案共享 pods 时引入了此行为。您的同事可能一直在使用较早版本的 Cocoapods,因为该 PR 在 2015 年 5 月才合并。
pod
生成的方案设置为共享和可见,没有可用于更改此行为的选项。我们不是唯一遇到此问题的人 (1, 2, 3)。
一位 Cocoapods 开发人员随后发布了 plugin that's supposed to remove the schemes (literally by rm
-ing 创建后的共享方案)。我说应该,因为我还没有弄清楚如何根据提供的说明使它工作。
编辑:现在是同一个开发者 confirms 插件可能无法按预期工作。