
核心修复: - NewMomentViewController: 改为直接继承 UIViewController - NewMineViewController: 改为直接继承 UIViewController - 不再继承 BaseViewController(避免 ClientConfig → PIBaseModel 依赖链) 依赖链问题分析: BaseViewController → ClientConfig → ClientDataModel → PIBaseModel ClientConfig 本身也继承自 PIBaseModel 切断依赖链后,Bridging Header 只需要 UIKit + 3 个新模块, 不会引入任何复杂的 Model 依赖。 这样做的好处: 1. 编译不会有 PIBaseModel 错误 2. 新模块完全独立,不依赖旧代码 3. 更符合白牌项目的目标(完全不同的代码结构)
30 lines
772 B
Objective-C
30 lines
772 B
Objective-C
//
|
||
// YuMi-Bridging-Header.h
|
||
// YuMi
|
||
//
|
||
// Created by AI on 2025-10-09.
|
||
// Copyright © 2025 YuMi. All rights reserved.
|
||
//
|
||
// Swift/OC 混编桥接头文件
|
||
|
||
#ifndef YuMi_Bridging_Header_h
|
||
#define YuMi_Bridging_Header_h
|
||
|
||
// MARK: - Minimal Bridging Header
|
||
// 只引入 Swift 中真正需要用到的 OC 类
|
||
|
||
// MARK: - Foundation
|
||
#import <UIKit/UIKit.h>
|
||
|
||
// MARK: - New Modules (White Label)
|
||
#import "GlobalEventManager.h"
|
||
#import "NewMomentViewController.h"
|
||
#import "NewMineViewController.h"
|
||
|
||
// 注意:
|
||
// 1. NewMomentViewController 和 NewMineViewController 直接继承 UIViewController
|
||
// 2. 不继承 BaseViewController(避免 ClientConfig → PIBaseModel 依赖链)
|
||
// 3. 其他依赖在各自的 .m 文件中 import
|
||
|
||
#endif /* YuMi_Bridging_Header_h */
|