我在尝试为iOS构建PlaskapePublishingKit 1.6和Demo时遇到了一些麻烦。
起初我试图在实际的Unity游戏项目中构建Publishing SDK 1.6。而且我在最后得到了一些Xcode链接器错误。 它说
"_stopLocationTracking", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_playscape_report_getCustomVariable", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_setListenerName", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_playscape_report_clearCustomVariables", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_playscape_report_StartNewFlow", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_playscape_report_ReportSocialSubmitScore", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
我遇到了很多这些错误。 在Unity版本中唯一出错的是关于FacebookSDK的一些警告:
Missing file: /Users/N01/Downloads/PublishingKit-Demo-Unity-master/Assets/Facebook/Editor/iOS/Facebook/Editor/iOS/FbUnityInterface.mm
Missing file: /Users/N01/Downloads/PublishingKit-Demo-Unity-master/Assets/Facebook/Editor/iOS/Facebook/Editor/iOS/FbUnityInterface.h
Missing file: /Users/N01/Downloads/PublishingKit-Demo-Unity-master/Assets/Facebook/Editor/iOS/Facebook/Scripts/NativeDialogModes.cs
...
Missing file: /Users/beannt/Documents/FacebookSDK/FacebookSDK.framework > /Users/beannt/Documents/FacebookSDK/FacebookSDK.framework
(/ users / beannt / Documents / part看起来很可疑,它来自sample_config.projmods)
所以我尝试并隔离了项目和官方PublishingKit-Demo。在生成Xcode项目并构建它之后,添加所有这些框架:
AddressBook.framework
AssetsLibrary.framework
CoreData.framework
CoreTelephony.framework
CoreText.framework
Security.framework
libc++.dylib
libz.dylib
GoogleOpenSource.framework
GooglePlus.framework
gpg.framework
我仍然收到一堆与
相关的链接器错误 ***, referenced from:
RegisterMonoModules() in RegisterMonoModules.o
我该如何解决这个问题?