尝试将Unity3d应用程序编译到设备时Xcode崩溃

时间:2012-03-21 14:53:31

标签: ios xcode unity3d

我已经成功编译了另一个在unity3d中制作的应用程序,所以这不是那种问题。但是这个应用程序崩溃了:

.byte 1,16,159,231,2,0,160,225,0,224,146,229

话说:

Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

并用以下内容填充控制台:

2012-03-21 15:42:00.560 dice[1205:707] -> registered mono modules 0xbb05ec
-> applicationDidFinishLaunching()
Mono path[0] = '/var/mobile/Applications/CCF64295-CFD2-4CB6-913F-2317C7D41822/dice.app/Data/Managed'
Renderer: PowerVR SGX 535
Vendor:   Imagination Technologies
Version:  OpenGL ES 2.0 IMGSGX535-63.24
GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_texture_lod GL_EXT_texture_filter_anisotropic GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_IMG_read_format GL_IMG_texture_compression_pvrtc 
Creating OpenGLES2.0 graphics device
Begin MonoManager ReloadAssembly
Platform assembly: /var/mobile/Applications/CCF64295-CFD2-4CB6-913F-2317C7D41822/dice.app/Data/Managed/UnityEngine.dll (this message is harmless)
Loading /var/mobile/Applications/CCF64295-CFD2-4CB6-913F-2317C7D41822/dice.app/Data/Managed/UnityEngine.dll into Unity Child Domain
Platform assembly: /var/mobile/Applications/CCF64295-CFD2-4CB6-913F-2317C7D41822/dice.app/Data/Managed/Assembly-UnityScript-firstpass.dll (this message is harmless)
Loading /var/mobile/Applications/CCF64295-CFD2-4CB6-913F-2317C7D41822/dice.app/Data/Managed/Assembly-UnityScript-firstpass.dll into Unity Child Domain
Platform assembly: /var/mobile/Applications/CCF64295-CFD2-4CB6-913F-2317C7D41822/dice.app/Data/Managed/Assembly-UnityScript.dll (this message is harmless)
Loading /var/mobile/Applications/CCF64295-CFD2-4CB6-913F-2317C7D41822/dice.app/Data/Managed/Assembly-UnityScript.dll into Unity Child Domain
- Completed reload, in  0.269 seconds
-> applicationDidBecomeActive()

我真的不明白这是什么,有什么想法吗?

TIA 马库斯

编辑: 我尝试评论这部分,然后它运行,但我需要它。什么可能导致代码中的崩溃?

function OnTriggerEnter( other : Collider ) {
var dieGameObject = GameObject.Find("dice6");
var dieValueComponent : dieValue = dieGameObject.GetComponent(dieValue);
dieValueComponent.currentValue = faceValue;
Debug.Log(faceValue);
}

2 个答案:

答案 0 :(得分:0)

您的IOS设备是否使用最新的IOS版本?

去检查:

构建设置 - >基础SDK - >调试&发布IOS版本

答案 1 :(得分:0)

将iOS升级到8.4解决了我的问题