首页 > 解决方案 > 尝试在具有多个框架的项目中使用新配​​置时找不到模块

问题描述

我的应用程序的不同模块有多个框架:

在此处输入图像描述

我正在尝试创建多个目标,每个目标都使用不同的配置(开发、阶段、生产)。但是,如果我在尝试使用它们进行编译时使用了不同的配置,则会出现错误,说明我没有一些实际拥有的库(我正在使用 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'

标签: iosswiftcocoapods

解决方案


推荐阅读