我有一个Unity项目,在设置了Apple之后。Gamekit插件,它显示一些错误时,构建与XCode:
...
_GKTurnBasedMatch_GKTurnBasedMatch_SetMatchEndedCallback_m910C3F81D2AC3130B65F3F62FC964A7AB1BB4BB4 in Apple.GameKit.o
_GKTurnBasedMatch__cctor_m700F9804CBB4DB33EDE51763CB6CE3D5DCA9005C in Apple.GameKit.o
(maybe you meant: _GKTurnBasedMatch_GKTurnBasedMatch_SetMatchEndedCallback_m910C3F81D2AC3130B65F3F62FC964A7AB1BB4BB4)
"_NSArray_Free", referenced from:
_NSArray_NSArray_Free_mC93688296693996DD20C704745DBDB169462AA95 in Apple.Core.o
_NSArray_OnDispose_m3D3F7A2BCD4038EB98125421A35CA23FCA9FF395 in Apple.Core.o
(maybe you meant: _NSArray_NSArray_Free_mC93688296693996DD20C704745DBDB169462AA95)
"_GKLeaderboard_SubmitScore", referenced from:
_GKLeaderboard_GKLeaderboard_SubmitScore_m2B37BEF38FD1A631ED4A06A894B7360A9ECDFF47 in Apple.GameKit.o
_GKLeaderboard_SubmitScore_m857EAFCB86A50F186998E8A78A22778F4AE961BD in Apple.GameKit.o
(maybe you meant: GKLeaderboard_GKLeaderboard_SubmitScore_m2B37BEF38FD1A631ED4A06A894B7360A9ECDFF47, GKLeaderboard_SubmitScore_m857EAFCB86A50F186998E8A78A22778F4AE961BD )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing Recent Messages
Undefined symbol: _NSArray_GetGKTurnBasedExchangeReplyAt
Showing Recent Messages
Undefined symbol: _NSArray_GetGKLeaderboardEntryAt
Showing Recent Messages
Undefined symbol: _NSArray_GetGKLeaderboardAt
我添加的插件,由Apple提供:https://github.com/apple/unityplugins
我试过了:
- 安装苹果。Core和苹果。GameKit
- 安装pod
- 更新XCode到14.1版本
但是没有效果
请帮忙!谢谢你! !
请确保在编译插件时安装建议的unity版本(2020.3.33f1),否则它们将无法正确编译。
查看此处的要求:https://github.com/apple/unityplugins/blob/main/Documentation/BuildScript.md