2016-09-24 60 views
0

我有一個可用的spritekit iOS項目。 Chartboost框架及其依賴進口後,我得到了以下錯誤:Apple Mach-O鏈接器添加Chartboost框架後出錯

ld: warning: ignoring file /Users/Kalai/Desktop/Caveman Crush/codecanyon-12618173-fast-run/GP/GameKit.framework/GameKit, missing required architecture x86_64 in file /Users/Kalai/Desktop/Caveman Crush/codecanyon-12618173-fast-run/GP/GameKit.framework/GameKit (3 slices) Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GKGameCenterViewController", referenced from: objc-class-ref in GameViewController.o "_OBJC_CLASS_$_GKLocalPlayer", referenced from:
objc-class-ref in GameViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

chartboost.framework整合之前,唯一的框架包括了gamekit.framework。奇怪的是,即使刪除chartboost及其依賴關係後,我仍然得到錯誤,無法編譯。我正在使用xcode 8.有什麼幫助嗎?

+0

你有沒有嘗試清理項目和重建? –

+0

@Rashwan,是的。這是我做的第一件事。我試過重新啓動xcode,甚至Mac,但沒有幫助。 – Kalaichelvan

回答

0

我終於想通了。 Gamekit.framework被複制並存儲在項目文件夾中。當我刪除它時,一切正常。