我找到了一个名为“iOS-Hierarchy-Viewer”的项目,可以检查ios本机视图。 所以我创建了一个名为“ViewViewer”的项目,并将其作为“安装”的解决方法,只做README.md描述。 但是,当我构建它时,失败了。
错误:
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,object-C,C和xcode的小知识。 谢谢你告诉我如何一步一步解决问题。 谢谢你的详细解答!!!
答案 0 :(得分:3)
请将CoreData.framework添加到Frameworks部分。