有人知道爲什麼當我嘗試在Monotouch上構建默認「MonoGame.Framework.iOS.sln」時出現以下錯誤消息嗎?我該如何解決這個問題? :在使用monogame構建默認iOS解決方案時出現錯誤消息
在引導源文件的468行(來自MonoGame.Framework.iOS>的iOS> GamerServices> Guide.cs 我得到的,在該行is--類型'
public static void ShowMatchMaker()
{
AssertInitialised();
if ((Gamer.SignedInGamers.Count > 0) && (Gamer.SignedInGamers[0].IsSignedInToLive))
{
// Lazy load it
if (matchmakerViewController == null)
{
matchmakerViewController = new GKMatchmakerViewController(); }
//錯誤MonoTouch.GameKit.GKMatchmakerViewController」不包含一個構造函數‘0’參數。
我發現解決方案,我想我現在就試試這個:這聽起來像他們刪除了MonoTouch.GameKit.GKMatchmakerViewController的構造函數,它不需要任何參數。 MonoTouch.GameKit.GKMatchmakerViewController有五個構造函數簽名,但每個都需要傳遞一個參數。我能夠通過在guide.cs中的ShowMatchMaker()方法中註釋掉所有內容來解決此錯誤。然後我收到另一個錯誤,說iOS6不支持ARMv6,所以我將最低平臺版本從4.0更改爲5.0,現在一切都已成功完成。 –