我发现我们的某些iOS应用具有链接器警告,如下所示:
Uncaught TypeError: Cannot read property '_props' of undefined
阅读了this的帖子后,我检查了Incompatible Objective-C category definitions. Some category metadata may be lost. 'path/to/libSome.a(Some.o)' and 'path/to/libPrebuilt.a' built with different compilers
使用objc_image_info
的预构建库,其中一些具有otool
而使用最新Xcode(11.1)构建的库有flags 0x20 OBJC_IMAGE_IS_SIMULATED
。
flags 0x40 OBJC_IMAGE_HAS_CATEGORY_CLASS_PROPERTIES
的这些差异真的比Objective-C ABI重要吗?可以引入应用崩溃吗?