- Home /
iOS simulator failing to launch
I am working on bringing a game a built for Android using Windows, which uses Unity Ads and Facebook to the iOS. I transferred over my project files from my PC to my Mac and opened the Unity project and built the xCode project files fully on my Mac. I have been able to successfully build the xCode project and it will continue to launch the simulator and show the launch screen. It is after this where it will break, and freeze the simulation, or force close it if debug freezing is turned off. When it breaks it gives me a an error Thread 1: EXC_BAD_ACCESS(code=1, address=0x0).
Here is the full list of where it breaks.
fallenleaf`::FetchAdsId():
0x7b1a96 <+0>: pushl %ebp
0x7b1a97 <+1>: movl %esp, %ebp
0x7b1a99 <+3>: pushl %edi
0x7b1a9a <+4>: pushl %esi
0x7b1a9b <+5>: subl $0x20, %esp
0x7b1a9e <+8>: movl 0x8(%ebp), %edi
0x7b1aa1 <+11>: calll 0x3b574 ; UnityAdvertisingIdentifier at DeviceSettings.mm:42
0x7b1aa6 <+16>: movl %eax, %esi
0x7b1aa8 <+18>: calll 0x166ea3 ; ::get_current_allocation_root_reference_internal() at MemoryMacros.cpp:20
0x7b1aad <+23>: movl %eax, -0xc(%ebp)
0x7b1ab0 <+26>: movl %esi, (%esp)
0x7b1ab3 <+29>: calll 0x1369e2a ; symbol stub for: strlen
0x7b1ab8 <+34>: movl %eax, 0x8(%esp) Thread 1: EXC_BAD_ACCESS(code=1, address=0x0)
0x7b1abc <+38>: movl %esi, 0x4(%esp)
0x7b1ac0 <+42>: leal -0x18(%ebp), %esi
0x7b1ac3 <+45>: movl %esi, (%esp)
0x7b1ac6 <+48>: calll 0x273fc4 ; ::__init() at string:1975
0x7b1acb <+53>: cmpl %esi, %edi
0x7b1acd <+55>: je 0x7b1af4 ; <+94> [inlined] ~UnityStr at String.h:783
0x7b1acf <+57>: movzbl -0x18(%ebp), %eax
0x7b1ad3 <+61>: testb $0x1, %al
0x7b1ad5 <+63>: jne 0x7b1ade ; <+72> [inlined] __get_long_size at string:1431
0x7b1ad7 <+65>: leal -0x17(%ebp), %ecx
0x7b1ada <+68>: shrl %eax
0x7b1adc <+70>: jmp 0x7b1ae4 ; <+78> [inlined] assign + 21 at string:2414
0x7b1ade <+72>: movl -0x14(%ebp), %eax
0x7b1ae1 <+75>: movl -0x10(%ebp), %ecx
0x7b1ae4 <+78>: movl %eax, 0x8(%esp)
0x7b1ae8 <+82>: movl %ecx, 0x4(%esp)
0x7b1aec <+86>: movl %edi, (%esp)
0x7b1aef <+89>: calll 0x232c54 ; ::assign() at string:2348
0x7b1af4 <+94>: movl %esi, (%esp)
0x7b1af7 <+97>: calll 0x273e68 ; ::~basic_string() at string:2274
0x7b1afc <+102>: calll 0x3b7cb ; UnityAdvertisingTrackingEnabled at DeviceSettings.mm:64
0x7b1b01 <+107>: testl %eax, %eax
0x7b1b03 <+109>: setne 0x10(%edi)
0x7b1b07 <+113>: movl $0x1, %eax
0x7b1b0c <+118>: addl $0x20, %esp
0x7b1b0f <+121>: popl %esi
0x7b1b10 <+122>: popl %edi
0x7b1b11 <+123>: popl %ebp
0x7b1b12 <+124>: retl
As you can make it has to do with something with Unity Ads calling FetchAdsID() and returning something null, at least this is what I can make out of it but I cannot pinpoint a solution and all my searching for how to fix this problem has lead me no where. I do have Unity Ads enabled for iOS and in TestMode in the editor and to ONLY show test ads in the Unity Ads Control Panel.
Your answer
Follow this Question
Related Questions
[IOS] Launch my app while music is playing stop the music 1 Answer
Unity Ads video player stuck to 0ms position 0 Answers
Building for iOS Simulator 1 Answer
iOS build error with Unity Ads 1 Answer