2014-06-10 40 views
3

每當我試圖編譯在Xcode我團結的比賽,我獲得了3編譯它們從Unity谷歌玩遊戲插件來的錯誤:團結谷歌玩遊戲的插件就不會在Xcode的iOS編譯

GPGSAchOrLbDelegate.h - Lexical or Preprocessor Issue 'GooglePlayGames/GooglePlayGames.h' file not found 

GPGSRealTimeRoomDelegate.h - Lexical or Preprocessor Issue 'GooglePlayGames/GooglePlayGames.h' file not found 

GPGSManager.h - Lexical or Preprocessor Issue 'GooglePlus/GooglePlayGames.h' file not found 

我我不知道爲什麼會發生這種情況,我正確地遵循了所有設置說明。 任何幫助將不勝感激!

回答

0

我實際上是靠自己解決的刪除插件並重新開始,然後啓動一個全新的xcode項目,而不是追加到舊的。

刺激和耗時,但我到了那裏!

1

一個gotchya是他們最近改變了許多在圖書館的方法名,在最近的更新中...

有可能這已經引起了你了?

這是很難解決這個問題,但是我發現了一些討論,關於這個例如這裏,

http://answers.unity3d.com/questions/679424/google-play-games-plugin-for-unity-not-authenticat.html

它在iOS比Android更容易一些。


或者:請注意,從本質上講,您並未包含GooglePlayGames.h文件。包含您所關注的「哪些」指示的鏈接,以猜測哪一步有問題。 (大多數Unity插件 - 比如Prime31 - 都有一個「預處理器」階段,可以爲你或者Android填充該死的清單。這個階段出了問題。)

+0

我向您頒發了賞金喬,因爲您的答案對於那些搜索不到在xcode中啓動全新項目的人有幫助,所以非常感謝!我添加了一條鏈接,指向我爲後代所遵循的指示。 – bbeckford

+0

我真的希望它可以幫助別人,謝謝! – Fattie