我正在嘗試使用SBSRemoteNotificationClient.h從GitHub下載的SpringBoardServices框架文件。我直接將下載的SBSRemoteNotificationClient.h文件拖放到XCode中,並試圖編譯它。但是我在編譯時遇到了錯誤。如何在XCode中使用私有框架的.h文件
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_SBSRemoteNotificationClient", referenced from:
objc-class-ref in MyClass.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我添加#進口「SBSRemoteNotificationClient.h」到SBSRemoteNotificationClient.h的我的MyClass.m file.I還增加路徑中生成設置 - >搜索路徑 - >像用戶頭搜索路徑此/用戶/ awsuser006 /桌面/ iPhone私人框架大師/ SpringBoardServices/
但我面臨上述錯誤。這是使用私有框架的.h文件的正確方法嗎?
感謝ü您的回覆。使用構建階段添加框架不會列出私有框架 – user2533604 2014-10-10 09:24:07
是的,顯然。但是您可以單擊「添加其他...」並瀏覽您的驅動器以添加任何框架。 – 2014-10-10 09:25:25
我試過了。但是它會添加SpringBoardServices文件夾和從GitHub下載的.h文件,但不是SpringBoardServices.framework – user2533604 2014-10-10 09:30:16