1

我找到了一个名为“ 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 的了解很少。感谢您告诉我如何逐步解决问题。谢谢你的详细回答!!!

4

1 回答 1

3

请将 CoreData.framework 添加到框架部分。

于 2012-10-30T13:29:14.350 回答