iOS-Hierarchy-Viewer 构建失败 : linker command failed with exit code 1

标签 ios linker command hierarchy viewer

我找到了一个名为“iOS-Hierarchy-Viewer”的项目,它可以检查 ios 原生 View 。
所以我创建了一个名为“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 的了解很少。
感谢您告诉我如何逐步解决问题。
谢谢你的详细回答!!!

最佳答案

请将 Core Data.framework 添加到 Framework 部分。

关于iOS-Hierarchy-Viewer 构建失败 : linker command failed with exit code 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12559497/

相关文章:

iphone - 在 NSMutableArray 中添加 C++ 对象

iphone - 由于 Orientation/Shake,UINavigationController 加载 View 不正确

objective-c - 通过segue传递数据

python - 为什么 MATLAB 不能导入这个 python 库?

c++ - 为什么我需要 -fPIC 来使用 --unresolved-symbols=ignore-in-object-files 进行编译?

c++ - boost 链接失败

linux - 用于搜索任何出现的短语并返回文件和路径列表的 Bash 命令

IOS:如何从字典中获取单个键的值

windows - 如何在 Windows 上的 Node.js 中创建全局命令

java - Eclipse 在用户输入时崩溃