iOS ——手机屏幕出现黑屏

0 votes
asked Jan 22, 2018 by xindichan (220 points)

我按着配置EasyAR iOS SDK(非Unity)的文档来做,所有的framework都添加了,然后我按着官方的Demo将一些.h和.m文件,还有assets文件都拖进工程里,在Appdelegate中、Viewcontroller中都是按照Demo写的,相机的权限也添加了,然后运行,在获取完相机权限,也就是点击允许之后,就黑屏了,打印日志和官方打印出来的日志都一样,为:
2018-01-22 17:34:53.280901+0800 EasyAR[3561:6142606] [DYMTLInitPlatform] platform initialization successful
EasyAR SDK Basic Version 2.1.0
2018-01-22 17:34:53.496539+0800 EasyAR[3561:6142567] Failed to bind EAGLDrawable: <CAEAGLLayer: 0x12de049b0> to GL_RENDERBUFFER 1
2018-01-22 17:34:53.496685+0800 EasyAR[3561:6142567] Failed to make complete framebuffer object 8cd6
2018-01-22 17:34:53.518566+0800 EasyAR[3561:6142567] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2018-01-22 17:34:53.520321+0800 EasyAR[3561:6142567] [MC] Reading from public effective user settings.
2018-01-22 17:34:54.090170+0800 EasyAR[3561:6142627] load target (1): argame (1)
2018-01-22 17:34:54.346969+0800 EasyAR[3561:6142627] load target (1): VCG21gic15171561 (2)
2018-01-22 17:34:54.580847+0800 EasyAR[3561:6142627] load target (1): namecard (3)
没有其他的东西,情况就是这样,希望大神指点。在此,先谢谢了。

1 Answer

0 votes
answered Jan 23, 2018 by xindichan (220 points)
这个问题我解决了,是因为我创建的ViewController没有继承自<GLKit/GLKViewController.h>框架引起的,只要把这个改掉就OK。
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...