我已经添加了UIKit.framework,
但是我会在下面的XCode中出现构建错误,
任何人都知道如何解决这个问题?
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_UIPresentationController", referenced from:
objc-class-ref in gpg(GPGToastView.o)
"_OBJC_CLASS_$_UIUserNotificationSettings", referenced from:
objc-class-ref in gpg(GPGManager.o)
"_OBJC_CLASS_$_UIMutableUserNotificationCategory", referenced from:
objc-class-ref in gpg(GPGManager.o)
"_OBJC_CLASS_$_UIMutableUserNotificationAction", referenced from:
objc-class-ref in gpg(GPGManager.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
XCode版本:5.1.1
答案 0 :(得分:0)
您想要检查其他链接器标志,并确保添加了-ObjC。
当您从Unity构建XCode项目时,Google Play游戏插件会显示一个对话框,其中包含有关如何在XCode中构建项目的说明。 这些说明也在https://github.com/playgameservices/play-games-plugin-for-unity#building-for-ios的文档中注明。