手动管理/删除每个目标自动链接的 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 (将#修改为@)