Dependency1 -> Dependency2 & Dependency3
Dependency2 -> Denpendency3
xx.m:56:6: error: definition of 'xx' must be imported from module 'xx.xx' before it is required
2种方法解决:
1,
把Dependency1 pod库中报错的那头文件, 原本是import Dependency3的头文件.
改为引Dependency2 中的那个头文件 (因为Dependency2 import了 Dependency3)
2,
把Dependency1 pod库中报错的那头文件,原本是import Dependency3的头文件.
改为@class xxx
把Dependency1 对应的那个.m文件中添加 import Dependency3的头文件.
网友评论