Cocos2D - CLScoreServer 启动错误

发布于 2024-12-12 14:56:48 字数 619 浏览 1 评论 0原文

当我尝试在模拟器中构建/运行我的应用程序时,我收到 2 个错误/警告,我猜错误出在 SDK 中。

文件:CLScoreServerPost.m

'uniqueIdentifier' is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:64)

和 CLScoreServerRequest.m 中的这个

'uniqueIdentifier' is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:64)

我一直在尝试重新安装模板等,但没有任何效果。 有人知道问题所在吗?

谢谢

Im getting 2 errors/warnings when im trying to build/run my app in the simulator, the error is in the SDK i guess.

File: CLScoreServerPost.m

'uniqueIdentifier' is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:64)

and this one in CLScoreServerRequest.m

'uniqueIdentifier' is deprecated (declared at /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h:64)

I've been trying to reinstall the templates ect ect ect and nothing works.
Some one know the problem ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绝不放开 2024-12-19 14:56:49

它就在那里说:

uniqueIdentifier 已弃用

所以你应该在 Google 上搜索它,然后找到 相关的 Stackoverflow 问题

已弃用意味着不应再使用它,并且如果您根据某些情况确实使用它,则可能会被标记为错误。我的猜测是,如果您的部署目标设置为 iOS 5.0,并且由于 iOS 5.0 已弃用该方法,那么在构建面向 iOS 5 的应用程序时将会出现错误。如果您面向 iOS 4.x 或更早版本,则可能只是一个警告。

如果您正在调用该方法,则不要调用。如果该调用位于第三方库中,请联系该库的作者。

It says it right there:

uniqueIdentifier is deprecated

And so you should search for it on Google to come up with the related Stackoverflow question.

Deprecated means it should no longer be used, and it may be flagged as an error if you do use it depending on certain circumstances. My guess is that if your deployment target is set to iOS 5.0 and since iOS 5.0 deprecated that method, it's going to be an error when building an app that targets iOS 5. It's probably just a warning if you target iOS 4.x or earlier.

If you are calling that method, then don't. If that call is in a third party library, then contact the author of that library.

爱已欠费 2024-12-19 14:56:49

尝试重新启动您的 iPhone 和电脑。然后,当您从 Xcode 运行应用程序并在手机上运行该应用程序后,停止该任务。然后,通过手机重新打开应用程序,而无需 Xcode 运行任何任务。

我这样做了,没有收到任何进一步的错误,并且能够从活动应用程序区域(双击主页按钮)打开/关闭,并且我能够重新启动它,没有任何问题。

希望这有帮助。

(我认为这是针对正确问题的回应)

Try rebooting your iPhone and computer. Then, after you run your app from Xcode and as it was running on your phone, stop the task. Then, re-open the app through the phone without Xcode running any task.

I did this and did not receive any further errors, and was able to open/close from the active app area (double-tap home button), and I was able to re-launch it without any issues.

Hopefully this helps.

(I think this is in response to the proper problem)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文