某App有两个Framework A和B、一个主工程M。B引用了A,M引用了A和B。现在报警告信息:
objc: Class XXX is implemented in both [PathA] and [PathB] . One of the two will be used. Which one is undefined.
经过几天的排查,最后却在无意间发现:其中B的Build Setting里,Mach-O Type 是 Dynamic Library ,忘了改成 Static Library 。
[ 其他技术分享 ]
"_ABAddressBookAddRecord", referenced from: XXX
这表明需要引用原生库AddressBook.framework。
"_OBJC_CLASS_$_ABNewPersonViewController", referenced from: objc-class-ref in XXX
这表明需要引用原生库AddressBookUI.framework。
"_kCLLocationAccuracyBest", referenced from: XXX
这表明需要引用原生库CoreLocation.framework。
objc: Class XXX is implemented in both [PathA] and [PathB] . One of the two will be used. Which one is undefined.
经过几天的排查,最后却在无意间发现:其中B的Build Setting里,Mach-O Type 是 Dynamic Library ,忘了改成 Static Library 。
[ 其他技术分享 ]
"_ABAddressBookAddRecord", referenced from: XXX
这表明需要引用原生库AddressBook.framework。
"_OBJC_CLASS_$_ABNewPersonViewController", referenced from: objc-class-ref in XXX
这表明需要引用原生库AddressBookUI.framework。
"_kCLLocationAccuracyBest", referenced from: XXX
这表明需要引用原生库CoreLocation.framework。