1
我找到一个名为“iOS-Hierarchy-Viewer”的项目,可以检查ios原生视图。 所以我创建了一个名为“ViewViewer”的项目,并作为“安装”的解决方法,只是README.md描述。但是,当我构建它时,失败了。iOS-Hierarchy-Viewer构建失败:链接器命令失败,退出代码为1
错误:
Ld /Users/hundsun/Library/Developer/Xcode/DerivedData/iphone-gsuyenresnoeexcuqguzciigntxr/Build/Products/Debug-iphonesimulator/ViewViewer.app/ViewViewer normal i386
cd /Users/hundsun/Documents/projects/ViewViewer
setenv MACOSX_DEPLOYMENT_TARGET 10.6
......
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_NSAttributeDescription", referenced from:
objc-class-ref in libiOSHierarchyViewer_fat.a(HVCoreDataHandler.o)
"_OBJC_CLASS_$_NSRelationshipDescription", referenced from:
objc-class-ref in libiOSHierarchyViewer_fat.a(HVCoreDataHandler.o)
"_OBJC_CLASS_$_NSFetchRequest", referenced from:
objc-class-ref in libiOSHierarchyViewer_fat.a(HVCoreDataHandler.o)
"_OBJC_CLASS_$_NSEntityDescription", referenced from:
objc-class-ref in libiOSHierarchyViewer_fat.a(HVCoreDataHandler.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
对不起我的ios的豆蔻konwledge,对象的C,C和Xcode的。 感谢您告诉我如何逐步解决问题。 感谢您的详细解答!
如果您刚刚开始使用Spark,您可能会更轻松一些,比如Spark Inspector。这不是免费的,但你不必手动构建任何东西或配置你的项目。 (完全披露:我是该工具的作者!) –