热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

解决了几个bug(XCode每次都编译所有文件,cocos

1。xcode每次调试运行的时候都要编译一遍所有的class文件 解决方案:把项目文件拖拽到另外一个路径再重新编译!(clean all targets我试了n遍,没用)~

1。xcode每次调试运行的时候都要编译一遍所有的class文件

解决方案:把项目文件拖拽到另外一个路径再重新编译!(clean all targets我试了n遍,没用)~



2。cocos2d 2。0



Failed to load shader



2012-01-23 05:01:40.018 FrozenFish0.1[4744:10a03] cocos2d: cocos2d v2.0.0-alpha


2012-01-23 05:01:40.019 FrozenFish0.1[4744:10a03] cocos2d: Using Director Type:CCDirectorDisplayLink


2012-01-23 05:01:40.040 FrozenFish0.1[4744:10a03] cocos2d: OS version: 5.0 (0x05000000)


2012-01-23 05:01:40.041 FrozenFish0.1[4744:10a03] cocos2d: GL_VENDOR: Apple Computer, Inc.


2012-01-23 05:01:40.043 FrozenFish0.1[4744:10a03] cocos2d: GL_RENDERER: Apple Software Renderer


2012-01-23 05:01:40.044 FrozenFish0.1[4744:10a03] cocos2d: GL_VERSION: OpenGL ES 2.0 APPLE


2012-01-23 05:01:40.046 FrozenFish0.1[4744:10a03] cocos2d: GL_MAX_TEXTURE_SIZE: 4096


2012-01-23 05:01:40.048 FrozenFish0.1[4744:10a03] cocos2d: GL_MAX_SAMPLES: 4


2012-01-23 05:01:40.049 FrozenFish0.1[4744:10a03] cocos2d: GL supports PVRTC: YES


2012-01-23 05:01:40.050 FrozenFish0.1[4744:10a03] cocos2d: GL supports BGRA8888 textures: YES


2012-01-23 05:01:40.051 FrozenFish0.1[4744:10a03] cocos2d: GL supports NPOT textures: YES


2012-01-23 05:01:40.052 FrozenFish0.1[4744:10a03] cocos2d: GL supports discard_framebuffer: YES


2012-01-23 05:01:40.052 FrozenFish0.1[4744:10a03] cocos2d: compiled with VBO support in TextureAtlas : YES


2012-01-23 05:01:40.055 FrozenFish0.1[4744:10a03] cocos2d: compiled with Profiling Support: NO


2012-01-23 05:01:40.071 FrozenFish0.1[4744:10a03]

Failed to load shader



2012-01-23 05:01:40.072 FrozenFish0.1[4744:10a03] Failed to compile vertex shader


2012-01-23 05:01:40.073 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:40.074 FrozenFish0.1[4744:10a03] Failed to compile fragment shader


2012-01-23 05:01:40.076 FrozenFish0.1[4744:10a03] cocos2d: GLProgram: error linking program: 1


2012-01-23 05:01:40.077 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:40.078 FrozenFish0.1[4744:10a03] Failed to compile vertex shader


2012-01-23 05:01:40.079 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:40.080 FrozenFish0.1[4744:10a03] Failed to compile fragment shader


2012-01-23 05:01:40.080 FrozenFish0.1[4744:10a03] cocos2d: GLProgram: error linking program: 1


2012-01-23 05:01:40.081 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:40.082 FrozenFish0.1[4744:10a03] Failed to compile vertex shader


2012-01-23 05:01:40.083 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:40.084 FrozenFish0.1[4744:10a03] Failed to compile fragment shader


2012-01-23 05:01:40.084 FrozenFish0.1[4744:10a03] cocos2d: GLProgram: error linking program: 1


2012-01-23 05:01:40.085 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:40.087 FrozenFish0.1[4744:10a03] Failed to compile vertex shader


2012-01-23 05:01:40.088 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:40.089 FrozenFish0.1[4744:10a03] Failed to compile fragment shader


2012-01-23 05:01:40.089 FrozenFish0.1[4744:10a03] cocos2d: GLProgram: error linking program: 1


2012-01-23 05:01:40.091 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:40.093 FrozenFish0.1[4744:10a03] Failed to compile vertex shader


2012-01-23 05:01:40.094 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:40.094 FrozenFish0.1[4744:10a03] Failed to compile fragment shader


2012-01-23 05:01:40.095 FrozenFish0.1[4744:10a03] cocos2d: GLProgram: error linking program: 1


OpenGL error 0x0501 in -[CCShaderCache loadDefaultShaders] 160


OpenGL error 0x0501 in -[CCDirector setOpenGLView:] 297


2012-01-23 05:01:40.096 FrozenFish0.1[4744:10a03] Retina Display Not supported


2012-01-23 05:01:40.100 FrozenFish0.1[4744:10a03] cocos2d: surface size: 480x320


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


2012-01-23 05:01:41.247 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:41.248 FrozenFish0.1[4744:10a03] Failed to compile vertex shader


2012-01-23 05:01:41.249 FrozenFish0.1[4744:10a03] Failed to load shader


2012-01-23 05:01:41.249 FrozenFish0.1[4744:10a03] Failed to compile fragment shader


2012-01-23 05:01:41.250 FrozenFish0.1[4744:10a03] cocos2d: GLProgram: error linking program: 1


OpenGL error 0x0501 in -[MaskedSprite initWithFile:] 43


OpenGL error 0x0501 in -[MaskedSprite initWithFile:] 49


2012-01-23 05:01:41.251 FrozenFish0.1[4744:10a03] cocos2d: Frame interval: 1


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380


OpenGL error 0x0502 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 380







解决方案参见一篇帖子:


cocos2d 2.0 beta + ARC = problems loading the shaders? (they're included I know)



解决方案如下:





Make sure that the shaders are included in the project:




Xcode -> Project -> Build Phases -> Copy Bundle Resources


解决了几个bug(XCode每次都编译所有文件,cocos2d2.0 shader load error)




解决了几个bug(XCode每次都编译所有文件,cocos2d2.0 shader load error)




推荐阅读
  • 本文详细介绍了Java中org.neo4j.helpers.collection.Iterators.single()方法的功能、使用场景及代码示例,帮助开发者更好地理解和应用该方法。 ... [详细]
  • 本文将介绍如何编写一些有趣的VBScript脚本,这些脚本可以在朋友之间进行无害的恶作剧。通过简单的代码示例,帮助您了解VBScript的基本语法和功能。 ... [详细]
  • 本文详细介绍如何使用Python进行配置文件的读写操作,涵盖常见的配置文件格式(如INI、JSON、TOML和YAML),并提供具体的代码示例。 ... [详细]
  • UNP 第9章:主机名与地址转换
    本章探讨了用于在主机名和数值地址之间进行转换的函数,如gethostbyname和gethostbyaddr。此外,还介绍了getservbyname和getservbyport函数,用于在服务器名和端口号之间进行转换。 ... [详细]
  • 本教程涵盖OpenGL基础操作及直线光栅化技术,包括点的绘制、简单图形绘制、直线绘制以及DDA和中点画线算法。通过逐步实践,帮助读者掌握OpenGL的基本使用方法。 ... [详细]
  • 优化ListView性能
    本文深入探讨了如何通过多种技术手段优化ListView的性能,包括视图复用、ViewHolder模式、分批加载数据、图片优化及内存管理等。这些方法能够显著提升应用的响应速度和用户体验。 ... [详细]
  • Explore a common issue encountered when implementing an OAuth 1.0a API, specifically the inability to encode null objects and how to resolve it. ... [详细]
  • 1:有如下一段程序:packagea.b.c;publicclassTest{privatestaticinti0;publicintgetNext(){return ... [详细]
  • 本文详细介绍了如何在Linux系统上安装和配置Smokeping,以实现对网络链路质量的实时监控。通过详细的步骤和必要的依赖包安装,确保用户能够顺利完成部署并优化其网络性能监控。 ... [详细]
  • 1.如何在运行状态查看源代码?查看函数的源代码,我们通常会使用IDE来完成。比如在PyCharm中,你可以Ctrl+鼠标点击进入函数的源代码。那如果没有IDE呢?当我们想使用一个函 ... [详细]
  • CentOS7源码编译安装MySQL5.6
    2019独角兽企业重金招聘Python工程师标准一、先在cmake官网下个最新的cmake源码包cmake官网:https:www.cmake.org如此时最新 ... [详细]
  • 本文深入探讨了如何通过调整InnoDB的关键配置参数来优化MySQL的随机IO性能,涵盖了缓存、日志文件、预读机制等多个方面,帮助读者全面提升数据库系统的性能。 ... [详细]
  • 本文详细解析了Python中的os和sys模块,介绍了它们的功能、常用方法及其在实际编程中的应用。 ... [详细]
  • RecyclerView初步学习(一)
    RecyclerView初步学习(一)ReCyclerView提供了一种插件式的编程模式,除了提供ViewHolder缓存模式,还可以自定义动画,分割符,布局样式,相比于传统的ListVi ... [详细]
  • 本文详细介绍了macOS系统的核心组件,包括如何管理其安全特性——系统完整性保护(SIP),并探讨了不同版本的更新亮点。对于使用macOS系统的用户来说,了解这些信息有助于更好地管理和优化系统性能。 ... [详细]
author-avatar
Federer2012_554
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有