Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM enqueue:]: unrecognized selector sent to instance 0x126ea4a10'
解决方法:
在项目的“build settings” 中找到other linker flags 添加值 -ObjC,运行还是报 这个错误,改为添加值-all_load,再次运行,问题才解决了。
APPle Mach-O Linker Error
File too small (length=0) file '/Users/kogian/Library/Developer/Xcode/DerivedData/EasyBuy-gxjwnwqkfhyxlpdqyqonpedzwwym/Build/Intermediates/EasyBuy.build/Debug-iphonesimulator/EasyBuy.build/Objects-normal/x86_64/PageTitleView.o' for architecture x86_64
解决方法:
检查Build Phases->Link Binary With Libraries 是否包含了libstdc++.dylib库 或直接把libstdc++.dylib换成libstdc++.6.0.9.dylib
网友评论