Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

IPhone 5 - iOS7.0.4 - Cocoa error 4097 - Game Center

My Game Center app is not connecting to the Game Center server.


Have tried:
- Hard reset of phone.
- Reset of network settings.
- Reset of all phone settings.
- Checked Apple ID, the Apple ID is correct, & the password is correct.

- Time & Date set correctly, automatically, with location services on.


No fix as of yet. Any tips?

iPhone 5, iOS 7.0.4

Posted on Feb 5, 2014 2:10 PM

Reply
11 replies

Feb 6, 2014 11:58 AM in response to ckuan

Well I'm having the problem logging into the Game Center app, not an issue with a seperate app.
I click on Game Center, it askes for my Apple ID, I put it in, and it does not log me in. My Apple ID works with iTunes, & I checked my Apple ID on the Apple ID page but for some reason it comes up with this error message: "Could not connect to game center server"

So to clarify, what is happening is
- Tap on Game Center App

- Type in my Apple ID & Password
- Get message "Could not connect to game center server"
- I have checked my Apple ID, all details are correct.

Also:
- Tap settings

- Tap Game Center
- Type Apple ID & Password
- Get message "Unable to connect to server, the operation couldn't be completed, (Cocoa Error 4097.)"

- I have tried connecting using 3G, & my home Wi-Fi, neither worked.

Feb 14, 2016 5:22 PM in response to Mal.Function

我找到了最终的解决方案。

我看到有人通过修改系统语言解决了这个问题,因此我意识到原因可能和语言有关。

后来我发现在/var/mobile/Library/GameKit/Data里的文件夹是以语言分类的。

其中只有我曾经尝试设置过的语言,所以我猜测它们是在第一次登陆Game Center时自动下载用于缓存数据的。

我认为导致问题的原因是无效的缓存数据。cocoa无法解析必要的缓存数据而抛出异常信息。


只需将/var/mobile/Library/GameKit/Data重命名为/var/mobile/Library/GameKit/Data1或者直接删除该文 件夹。

然后你就可以成功登录Game Center了!


Firstly, I wanna say that I'm Chinese. I'm not very good at English.

I have found the solution finally.

I saw someone solve the problem by changing the language so I realized that the cause may be related with the language.

And then I found the folders in /var/mobile/Library/GameKit/Data are catagrated by language.

They are only the languages I have tried to set so I guess they may be downloaded automatically to cache data from the Game Center server at the first time when we logged in the Game Center. I thought the cause leading to the problem was the invalid cache data. The cocoa threw the exception information because it cannot parse the cache data required.


Just RENAME /var/mobile/Library/GameKit/Data to /var/mobile/Library/GameKit/Data1 or DELETE it directly.

And then you will log in the Game Center successfully!


If someone can get what I meant, please help me to rewrite the solution in native English in order to help more people. Thank you!

IPhone 5 - iOS7.0.4 - Cocoa error 4097 - Game Center

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.