Xcode7.3.1 ios8.0 unity5.3.4p6 导入谷歌VR0.8.0SDK出现的BUG

Uncaught exception: NSInvalidArgumentException: *** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument

(

0CoreFoundation0x0000000184a91918 + 148

1libobjc.A.dylib0x00000001840fff80 objc_exception_throw + 56

2CoreFoundation0x0000000184a91848 + 0

3Foundation0x0000000185362814 + 124

4Foundation0x0000000185362710 + 68

5VRMAX0x00000001012ee9cc -[GVROverlayView initWithFrame:] + 3228

6VRMAX0x00000001012eb588 -[GVRUnityController init] + 104

7VRMAX0x00000001012ebba0 createUiLayer + 88

8VRMAX0x000000010067260c -[CardboardAppController createUnityView] + 108

9VRMAX0x000000010049a140 -[UnityAppController application:didFinishLaunchingWithOptions:] + 1044

10UIKit0x00000001897f9704 + 400

11UIKit0x0000000189a28130 + 2904

12UIKit0x0000000189a2c4b8 + 1672

13UIKit0x0000000189a295c0 + 168

14FrontBoardServices0x0000000186047790 + 184

15FrontBoardServices0x0000000186047b10 + 56

16CoreFoundation0x0000000184a48efc + 24

17CoreFoundation0x0000000184a48990 + 540

18CoreFoundation0x0000000184a46690 + 724

19CoreFoundation0x0000000184975680 CFRunLoopRunSpecific + 384

20UIKit0x00000001897f2580 + 460

21UIKit0x00000001897ecd90 UIApplicationMain + 204

22VRMAX0x00000001009db7f0 main + 208

23libdyld.dylib0x00000001845168b8 + 4

)

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithFormat:locale:arguments:]: nil argument'

*** First throw call stack:

(0x184a91900 0x1840fff80 0x184a91848 0x185362814 0x185362710 0x1012ee9cc 0x1012eb588 0x1012ebba0 0x10067260c 0x10049a140 0x1897f9704 0x189a28130 0x189a2c4b8 0x189a295c0 0x186047790 0x186047b10 0x184a48efc 0x184a48990 0x184a46690 0x184975680 0x1897f2580 0x1897ecd90 0x1009db7f0 0x1845168b8)

libc++abi.dylib: terminating with uncaught exception of type NSException


UIApplicationMain(argc, argv, nil, [NSString stringWithUTF8String:AppControllerClassName]);

替换

returnUIApplicationMain(argc, argv,nil,NSStringFromClass([AppDelegateclass]));

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • objc[1723]: Class PLBuildVersion is implemented in both /...
    plantAtree_dAp阅读 6,756评论 1 0
  • 消息发送和转发流程可以概括为:消息发送(Messaging)是 Runtime 通过 selector 快速查找 ...
    lylaut阅读 5,887评论 2 3
  • 跨平台:现在很多应用都是要兼顾iOS和Android两个平台同时开发。如果两个平台都能使用相同的数据库,那就不用考...
    CoderZS阅读 7,321评论 2 16
  • 异常 异常(exception)就是指必须中断程序的正常执行来进行处理的特殊状态。 编码时采取将异常发生时的处理和...
    陈_振阅读 3,499评论 0 0
  • KVC(Key-value coding)键值编码,单看这个名字可能不太好理解。其实翻译一下就很简单了,就是指iO...
    朽木自雕也阅读 5,488评论 6 1

友情链接更多精彩内容