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。這不是免費的,但你不必手動構建任何東西或配置你的項目。 (完全披露:我是該工具的作者!) –