ios - 尝试在具有多个框架的项目中使用新配置时找不到模块
问题描述
我的应用程序的不同模块有多个框架:
我正在尝试创建多个目标,每个目标都使用不同的配置(开发、阶段、生产)。但是,如果我在尝试使用它们进行编译时使用了不同的配置,则会出现错误,说明我没有一些实际拥有的库(我正在使用 CocoaPods,在创建配置后我再次运行了 pod install,我还尝试重新集成并重新安装)。
应用程序上的当前配置是:
使用 Debug 或 Release 我没有错误,但如果我尝试使用新配置,我会收到错误。在这个特定场景中必须应用一些额外的配置,我的项目有多个目标?
PS:这是我的 Podfile:
platform :ios, '11.1'
use_frameworks!
workspace 'xxx-app-ios'
def materialdesign_pods
pod 'MaterialComponents/TextFields'
pod 'MaterialComponents/BottomSheet'
pod 'MaterialComponents/Ink'
pod 'MaterialComponents/ActivityIndicator'
pod 'MaterialComponents/Snackbar'
pod 'MaterialComponents/Buttons'
end
def presentation_pods
pod 'RxCocoa'
pod 'RxKeyboard'
pod 'RxDataSources'
pod 'RxSwift'
pod 'SnapKit'
pod 'lottie-ios'
materialdesign_pods
end
target 'PresentationKit' do
project 'Modules/PresentationKit/PresentationKit.project'
presentation_pods
end
def data_pods
pod 'Moya/RxSwift'
pod 'KeychainAccess'
pod 'RxSwift'
pod 'QueryKit'
end
target 'Data' do
project 'Modules/Data/Data.project'
data_pods
end
def domain_pods
pod 'RxDataSources'
pod 'SwiftJWT'
end
target 'Domain' do
project 'Modules/Domain/Domain.project'
domain_pods
end
def ui_components_pods
pod 'BEMCheckBox'
pod 'MBRadioCheckboxButton'
pod 'RxCocoa'
pod 'RxSwift'
pod 'lottie-ios'
解决方案
推荐阅读
- python - 如何在 Pandas MultiIndexed DataFrame 上进行部分索引?
- azure - Azure VM 扩展不再可用?
- javascript - 未捕获的类型错误:链接不是 HTMLButtonElement.onclick 的函数
- python - TypeError:只能将str(不是“float”)连接到str
- node.js - 如何使用 socket.io 实时更新对象中的值
- c - 多客户端和服务器命令行参数问题
- uwp - UWP:如何在全屏模式下防止屏幕锁定?
- java - 将 ActiveMQ 与多个消费者实例一起使用
- php - PHP 随机播放数组中的唯一值
- ios - 当 UISearchBar.becomeFirstResponder() 被调用时,键盘出现并立即消失