gpt4 book ai didi

ios - 找不到 Xcode 7.0 Beta 4 的 GameCenter 框架图像错误

转载 作者:搜寻专家 更新时间:2023-10-31 19:30:46 26 4
gpt4 key购买 nike

有人在尝试使用 Xcode 7 Beta 4 在实际 iPhone(iOS 8.4 版)上运行他们的应用程序时遇到这个问题吗?

dyld: Library not loaded: /System/Library/Frameworks/GameCenter.framework/GameCenter Referenced from: /private/var/mobile/Containers/Bundle/Application/CC713E5A-7839-43F1-9AEB-932AE2A3DF8A/.... Reason: image not found

供您引用,在我切换到 Xcode 7 之前,它一直没有错误...

最佳答案

在 Project Settings->Build Settings weak link both both new iOS 9 GameCenter libs and the old GameKit libs 然后再试一次。您可以通过将“状态”指定为“可选”来弱链接它们。

enter image description here

如果你运行的是比 9 更旧的 iOS,你仍然需要旧版本,因为它不知道适用于 iOS 9 的新 GameCenter 库。

可能还需要改

#import <GameKit/GameKit.h>

#import <GameCenter/GameCenter.h>

如果我不得不猜测这种变化可能只是因为使用了一个不太通用的库名称,因为 Apple 继续添加更多面向游戏的库(Spritekit、Scenekit、Replaykit 等),将主要的 GameCenter 库从 GameKit 重命名为 GameCenter 是有意义的.

关于ios - 找不到 Xcode 7.0 Beta 4 的 GameCenter 框架图像错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31779111/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com