Destroying a game while loading on iOS

I am developing Unity 3.4.2f, Xcode version 4.2.1 with iOS 5.0 SDK.

My game consists of a main menu with a play button that loads the main scene. The game can be built on the device by an employee and works fine. Whenever I build a game, it crashes when the second scene loads. This has been the scourge of my existence for more than a week.

The device failure log is as follows:

Exception Type: EXC_BAD_ACCESS (SIGILL) Exception Codes: KERN_PROTECTION_FAILURE at 0x00ed4e90 Crashed Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 ??? 0x050000c0 0 + 83886272 1 ??? 0xfffffff8 0 + -8 Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib 0x33babfbc kevent + 24 1 libdispatch.dylib 0x328ebed4 _dispatch_mgr_invoke + 744 2 libdispatch.dylib 0x328ecf3a _dispatch_queue_invoke + 70 3 libdispatch.dylib 0x328ec4ec _dispatch_worker_thread2 + 228 4 libsystem_c.dylib 0x3489f58a _pthread_wqthread + 258 5 libsystem_c.dylib 0x3489fbbc start_wqthread + 0 *Note: Removed various other non-crashed threads through thread 11* Thread 0 crashed with ARM Thread State: r0: 0x01ab7094 r1: 0x00000000 r2: 0x00000000 r3: 0x3f800000 r4: 0x04020000 r5: 0x3987cc80 r6: 0x01004d08 r7: 0x080000c1 r8: 0xc1080000 r9: 0x00000000 r10: 0xc1050000 r11: 0xc1040000 ip: 0x2fdfe144 sp: 0x00ed4e9c lr: 0x00dfc558 pc: 0x050000c0 cpsr: 0x20000030 

Which one is not the most useful, but from what I read here and other sites, I SHOULD use these memory addresses, such as 0x050000c0, to determine where in the code I crash? First, some other things we tried ...

The project is in an SVN repo, so I blew away the entire source directory and updated it from SVN, ensuring that the person who MAY build the assembly did the same. When this did not work, I asked him to send me the .zip of his xcode project to try to create it, but Prime31 Unity plugins do not like it, they point to its source folder, which is located in another user directory of his machine. So I made him zip up the source of unity and send it together, which required reinstalling Prime31 plugins, and then I was able to build, but still with the same results. Crash between scene loading.

We use the same physical iPad device we can build on. We are both building against iOS 5.0, and the device is 4.3.3.

I deleted all the xcode settings and then completely deleted the entire / Developer folder from my Mac and reinstalled xcode. The same results. I would try reinstalling Unity, but I'm not sure if I will need to disable my Unity Pro key and then activate it again?

I spent too much time for it to be something complicated and difficult. I know that this, of course, is incomprehensibly simple and stupid of me, but I can no longer see the forest for trees, so I ask you, dear Internet!

+4
source share
1 answer

Solved! I linked this post to a friend who asked: "Are you sure you are both on the same version of unity?" I checked, and I was actually Unity version 3.4.1f, not 3.4.2f. Updated Unity, and everything was fine. Presumably, the latest version of these Prime31 plugins doesn't look like an older version of Unity?

+1
source

Source: https://habr.com/ru/post/1391843/


All Articles