gpt4 book ai didi

ios - 如何更新 cocoapods 1.7.x 上的build设置

转载 作者:行者123 更新时间:2023-11-28 07:21:34 31 4
gpt4 key购买 nike

我在 cocoapods 1.7.5 中使用 incremental_installationgenerate_multiple_pod_projects。我有几个开发单元,我想仅针对特定构建配置更新所有开发单元的构建事件架构。

我确实尝试过类似的方法,但似乎 API 已经改变,这不再是哈希。

installer.development_pod_targets.each do |development_pod_target|
development_pod_target.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
end

我得到:

undefined method `[]' for #<Pod::Target::BuildSettings::PodTargetSettings

最佳答案

根据cocoapods documentation ,现在您需要将其添加到 Podfile 中:

install! 'cocoapods',
:share_schemes_for_development_pods => true

按照选项说明:

Whether to share Xcode schemes for development pods.

Schemes for development pods are created automatically but are not shared by default.

this option defaults to false.

关于ios - 如何更新 cocoapods 1.7.x 上的build设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57882183/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com