- 开源库
kentnguyen/KNSemiModalViewController
下载运行到真机不报错,运行到模拟器报了重复文件的错误
1 duplicate symbol for architecture x86_64 duplicate symbol _KNSemiModalTransitionStyle in:
NS_ENUM(NSUInteger, KNSemiModalTransitionStyle) {
KNSemiModalTransitionStyleSlideUp,
KNSemiModalTransitionStyleFadeInOut,
KNSemiModalTransitionStyleFadeIn,
KNSemiModalTransitionStyleFadeOut,
};
解决模拟器报错,只需要在源文件加一个单词
typedef NS_ENUM(NSUInteger, KNSemiModalTransitionStyle) {
KNSemiModalTransitionStyleSlideUp,
KNSemiModalTransitionStyleFadeInOut,
KNSemiModalTransitionStyleFadeIn,
KNSemiModalTransitionStyleFadeOut,
};