2012-03-21 52 views
1

我已成功編譯在unity3d中製作的另一個應用程序,因此它不是那種問題。然而就行了這個應用程序崩潰:嘗試將Unity3d應用程序編譯爲設備時Xcode崩潰

.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); 
} 
+0

可以肯定的說dice6已經被實例化?你可以使用Mono調試器進行調試,還是嘗試在每行之前進行記錄? – Kay 2012-03-21 18:48:04

回答

0

您的IOS設備是否使用最新的IOS版本?

去檢查:

構建設置 - >基礎SDK - >調試&發佈IOS版本

0

升級了iOS 8.4解決了我的問題

相關問題