gpt4 book ai didi

ios - Unity Facebook SDK 7.0.2 在 iOS 中编译失败

转载 作者:可可西里 更新时间:2023-11-01 06:14:14 25 4
gpt4 key购买 nike

我目前使用的是 Unity 5.0.2 和 Unity FB SDK 7.0.2 Beta,在 iOS 编译期间出现问题。

错误是:

Undefined symbols for architecture armv7:
"_iosShareLink", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosSetShareDialogMode", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosLogOut", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosLogInWithReadPermissions", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosLogInWithPublishPermissions", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBAppEventsLogEvent", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosInit", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosJoinGameGroup", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBSettingsActivateApp", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosAppRequest", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBSdkVersion", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosCreateGameGroup", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBAppEventsSetLimitEventUsage", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosGetDeepLink", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBAppEventsLogPurchase", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

如果我使用 IL2CPP 编译,它会显示类似的错误以及一些额外的信息

Undefined symbols for architecture armv7:
"_iosShareLink", referenced from:
_IOSFacebook_iosShareLink_m231 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosShareLink_m231, _IOSFacebook_iosShareLink_m231_MethodInfo )
"_iosSetShareDialogMode", referenced from:
_IOSFacebook_iosSetShareDialogMode_m230 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosSetShareDialogMode_m230_MethodInfo, _IOSFacebook_iosSetShareDialogMode_m230 )
"_iosLogOut", referenced from:
_IOSFacebook_iosLogOut_m229 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosLogOut_m229, _IOSFacebook_iosLogOut_m229_MethodInfo )
"_iosLogInWithReadPermissions", referenced from:
_IOSFacebook_iosLogInWithReadPermissions_m227 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosLogInWithReadPermissions_m227_MethodInfo, _IOSFacebook_iosLogInWithReadPermissions_m227 )
"_iosLogInWithPublishPermissions", referenced from:
_IOSFacebook_iosLogInWithPublishPermissions_m228 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosLogInWithPublishPermissions_m228_MethodInfo, _IOSFacebook_iosLogInWithPublishPermissions_m228 )
"_iosFBAppEventsLogEvent", referenced from:
_IOSFacebook_iosFBAppEventsLogEvent_m236 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosFBAppEventsLogEvent_m236, _IOSFacebook_iosFBAppEventsLogEvent_m236_MethodInfo )
"_iosInit", referenced from:
_IOSFacebook_iosInit_m226 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosInit_m226, _IOSFacebook_iosInit_m226_MethodInfo )
"_iosJoinGameGroup", referenced from:
_IOSFacebook_iosJoinGameGroup_m234 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosJoinGameGroup_m234_MethodInfo, _IOSFacebook_iosJoinGameGroup_m234 )
"_iosFBSettingsActivateApp", referenced from:
_IOSFacebook_iosFBSettingsActivateApp_m235 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosFBSettingsActivateApp_m235, _IOSFacebook_iosFBSettingsActivateApp_m235_MethodInfo )
"_iosAppRequest", referenced from:
_IOSFacebook_iosAppRequest_m232 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosAppRequest_m232, _IOSFacebook_iosAppRequest_m232_MethodInfo )
"_iosFBSdkVersion", referenced from:
_IOSFacebook_iosFBSdkVersion_m240 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosFBSdkVersion_m240, _IOSFacebook_iosFBSdkVersion_m240_MethodInfo )
"_iosCreateGameGroup", referenced from:
_IOSFacebook_iosCreateGameGroup_m233 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosCreateGameGroup_m233, _IOSFacebook_iosCreateGameGroup_m233_MethodInfo )
"_iosFBAppEventsSetLimitEventUsage", referenced from:
_IOSFacebook_iosFBAppEventsSetLimitEventUsage_m238 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosFBAppEventsSetLimitEventUsage_m238_MethodInfo, _IOSFacebook_iosFBAppEventsSetLimitEventUsage_m238 )
"_iosGetDeepLink", referenced from:
_IOSFacebook_iosGetDeepLink_m239 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosGetDeepLink_m239, _IOSFacebook_iosGetDeepLink_m239_MethodInfo )
"_iosFBAppEventsLogPurchase", referenced from:
_IOSFacebook_iosFBAppEventsLogPurchase_m237 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _IOSFacebook_iosFBAppEventsLogPurchase_m237, _IOSFacebook_iosFBAppEventsLogPurchase_m237_MethodInfo )
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

有人知道怎么解决吗?

最佳答案

如果您发现 Xcode 项目中缺少 fbUnityInterface.h,请尝试以下操作:

在您的 Unity 项目中找到该文件,然后在检查器的“为插件选择平台”框中单击 iOS 复选框。

如果没有此复选框,Unity 可能不知道 .h 文件需要包含在构建中,因为它仅在 .mm 文件中引用,而 Unity 不会解析该文件。

关于ios - Unity Facebook SDK 7.0.2 在 iOS 中编译失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31379411/

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