iOS——出现黑屏(Black screen)

0 votes
asked Jan 22, 2018 by xindichan (220 points)
在导入所有文件和库,运行,弹出调用相机提示框,点击允许,然后黑屏。不知道是怎么哪里有问题,希望大神指点。(In importing all files and libraries, running, pop-up calls the camera prompt box, click allow, and then black screen. I don't know where there is a problem, and I hope the God will point it out.)

1 Answer

0 votes
answered Jan 22, 2018 by albert52 (31,850 points)
黑屏问题有很多种,说下你的具体步骤,相应的framework是否添加,控制台的log也可以发上来,,信息具体点
commented 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)
没有其他的东西,情况就是这样,希望大神指点。在此,先谢谢了。
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...