ios - Unity 应用程序启动时使用 Vungle 的 NSInvalidArgumentException
问题描述
我使用 Vungle 广告构建了一个 Unity 项目,当我为 iOS 构建项目并尝试运行时,我在 Vungle 网络管理器调用中收到 NSInvalidArgumentException。有谁知道如何解决这个问题?
这是错误:
Uncaught exception: NSInvalidArgumentException: -[VNGNetworkManager configOperationWithBackgroundInit:complete:]: unrecognized selector sent to instance 0x129ee6110
解决方案
原来这是 Vungle lib 的一个错误。
添加GameController.framework
到General -> Linked Frameworks and Libraries和-ObjC
flag to Build Settings -> Linking -> Other linker flags解决了这个问题。