简体   繁体   English

iPhone模拟器4.3在OpenGL ES应用程序中崩溃

[英]Iphone simulator 4.3 crashes in opengl es application

I have some java experience, but i am new to Xcode, and I bought the book Learning iOS programming by Michael Daley in order to learn how to make a game using OpenGL ES. 我有一些Java经验,但是我对Xcode并不陌生,所以我买了Michael Daley的《 Learning iOS programming》一书,目的是学习如何使用OpenGL ES制作游戏。 I just created a new OpenGl ES application project in Xcode 3.2.6. 我刚刚在Xcode 3.2.6中创建了一个新的OpenGl ES应用程序项目。 When I opened it, there was already a sample application in there which should display a rainbow square moving up and down with a gray background. 当我打开它时,已经有一个示例应用程序,其中应显示带有灰色背景的上下移动的彩虹方块。 I pressed build and run and the simulator came up, but when the app tried to open, it immediately crashed. 我按下构建并运行,模拟器出现了,但是当应用尝试打开时,它立即崩溃了。 On the bottom left of the screen I got the message "Debugging terminated." 在屏幕的左下角,我收到消息“调试已终止”。 and on the right bottom i got the message "succeeded". 在右下角,我收到消息“成功”。 The book did not go over this error, and just told me that the application should run, which was very frustrating. 这本书没有解决这个错误,只是告诉我应用程序应该运行,这非常令人沮丧。

I am confused to why the simulator is crashing when I have not messed with any code. 我很困惑为什么当我没有弄乱任何代码时模拟器崩溃了。

I also tried build and debug, and on the bottom left of the screen says "MyAPP has exited with status 1." 我还尝试了构建和调试,并且在屏幕的左下方显示“ MyAPP已退出,状态为1”。

Is anyone else running into this problem when running the sample code? 运行示例代码时,还有其他人遇到此问题吗? Also, I am guessing that I am running OpenGL ES 2.0 because there are shader files in my project, but how do I start a project in OpenGL ES 1.1? 另外,我猜我正在运行OpenGL ES 2.0,因为项目中包含着色器文件,但是如何在OpenGL ES 1.1中启动项目? I am pretty sure that the code in the book is wirtten in 1.1. 我很确定书中的代码是在1.1中编写的。

I can paste the debugging log if that would help anyone find the problem. 如果可以帮助任何人发现问题,我都可以粘贴调试日志。

Thanks! 谢谢!

Here is the part of the log: 这是日志的一部分:

LLVM ERROR: Cannot yet select: 0x703f710: v4i32 = bit_convert 0x7056d50 [ORD=129] [ID=69] 0x7056d50: v8i16 = X86ISD::PUNPCKLWD 0x703d9b8, 0x703fd70 [ID=68] 0x703d9b8: v8i16 = bit_convert 0x7056cc8 [ORD=127] [ID=67] 0x7056cc8: v16i8 = X86ISD::PUNPCKLBW 0x703dac8, 0x7012b18 [ID=66] 0x703dac8: v16i8 = bit_convert 0x7056c40 [ORD=125] [ID=65] 0x7056c40: v4f32 = X86ISD::VZEXT_MOVL 0x703f358 [ID=64] 0x703f358: v4f32 = scalar_to_vector 0x703f028 [ID=62] 0x703f028: f32,ch = load 0x7056bb8, 0x703fa40, 0x703d688 [ORD=120][ID=61] LLVM错误:无法选择:0x703f710:v4i32 = bit_convert 0x7056d50 [ORD = 129] [ID = 69] 0x7056d50:v8i16 = X86ISD :: PUNPCKLWD 0x703d9b8,0x703fd70 [ID = 68] 0x703d9b8_v8i16 [ID = 67] 0x7056cc8:v16i8 = X86ISD :: PUNPCKLBW 0x703dac8,0x7012b18 [ID = 66] 0x703dac8:v16i8 = bit_convert 0x7056c40 [ORD = 125] [ID = 65] 0x7056c40:v4f32 = XEXT_C8:358 ] 0x703f358:v4f32 =标量_矢量0x703f028 [ID = 62] 0x703f028:f32,ch =加载0x7056bb8、0x703fa40、0x703d688 [ORD = 120] [ID = 61]

Debugger stopped. 调试器已停止。 Program exited with status value:1.(gdb) 程序退出,状态值为:1。(gdb)

您可能会遇到此问题: LLVM错误:无法选择:错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iPhone模拟器:OpenGL ES:内部纹理格式 - iPhone simulator: OpenGL ES: Internal texture format 使用iPhone模拟器在openGL ES上测试手势 - Testing gestures on openGL ES using the iPhone simulator OpenGL ES 2.0在iPhone Simulator中可以正常显示,但在iPhone上不能正常显示 - OpenGL ES 2.0 displays fine in iPhone Simulator but not on iPhone 可以从xcode 4 iphone模拟器4.3,我们通过应用程序发送电子邮件 - Can from xcode 4 iphone simulator 4.3, we send email by application Xcode 4.3和iPhone模拟器4.2 - Xcode 4.3 and iPhone Simulator 4.2 iPhone:在应用程序中使用静态库会使设备崩溃,但不会使iphone模拟器崩溃 - iPhone: Using static library in an application crashes the device but not the iphone simulator 在iOS 4.3中将YpCbCr iPhone 4相机框架渲染为OpenGL ES 2.0纹理 - Render YpCbCr iPhone 4 Camera Frame to an OpenGL ES 2.0 Texture in iOS 4.3 应用程序在iPhone上崩溃但在模拟器上没有崩溃 - App crashes on iPhone but not on simulator UIImagePickerControllerSourceSourceCamera在IPHONE模拟器中崩溃? - UIImagePickerControllerSourceTypeCamera crashes in IPHONE Simulator? 应用程序在iPhone上崩溃,但在模拟器中却没有崩溃 - App Crashes on iPhone but not in Simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM