如何解决手动管理/删除每个目标自动链接的 pod
我正在为我的主应用程序开发一个 AppClip,但我在主项目中使用了大量不需要剪辑的沉重 cocoapods,实际上我的应用剪辑的大小超过了 10mb 限制,如果我手动将这些从 AppClip 构建的项目中删除,低于大小限制,但破坏了主应用程序中的功能。
所以我的问题是,有没有办法删除在 podfile 中不同目标之间自动链接的 pod?
Podfile 供参考:
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
platform :ios,'11.0'
target 'MainProject' do
use_unimodules!
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
target 'MainProjectTests' do
inherit! :complete
# Pods for testing
end
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
target 'MainProjectClip' do
use_react_native!
end```
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。