When I build my app locally, it works fine (Unity 4.6.4p1). When I use the app built by Unity Cloud Build, the app crashes immediately after starting it. The console log on the phone starts like this (it goes on for about 500 lines):
Apr 17 09:18:57 iPhone kernel[0] : xpcproxy[5208] Container: /private/var/mobile/Containers/Data/Application/1A4550C3-4ED1-4C7F-BE20-D90E66E2416D (sandbox)
Apr 17 09:18:57 iPhone locationd[64] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Apr 17 09:18:57 iPhone appname[5208] : → registered mono modules 0x13ab4d0
Apr 17 09:18:57 iPhone appname[5208] : assertion failed: 12F70: libxpc.dylib + 51915 [8DB46991-F182-35E3-8E95-918A4007AA7A]: 0x7d
Apr 17 09:18:57 iPhone Unknown[5208] :
Apr 17 09:18:58 iPhone locationd[64] : Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Apr 17 09:18:58 iPhone backboardd[57] : CoreAnimation: updates deferred for too long
Apr 17 09:18:59 iPhone backboardd[57] : CoreAnimation: timed out fence 3bdd3
Apr 17 09:18:59 iPhone appname[5208] : +[FuseAPI Log:]: unrecognized selector sent to class 0x15069d8
Apr 17 09:18:59 iPhone appname[5208] : +[FuseAPI Log:]: unrecognized selector sent to class 0x15069d8
Apr 17 09:18:59 iPhone ReportCrash[5210] : task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Apr 17 09:18:59 iPhone ReportCrash[5210] : ReportCrash acting against PID 5208
Apr 17 09:18:59 iPhone ReportCrash[5210] : Formulating crash report for process appname[5208]
Apr 17 09:18:59 iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.bundleid[0xc936][5208]) : Service exited due to signal: Abort trap: 6
Apr 17 09:18:59 iPhone mediaserverd[37] : ‘’ com.bundleid(pid = 5208) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Apr 17 09:18:59 iPhone mediaserverd[37] : ‘’ (pid = 5208) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Apr 17 09:18:59 iPhone ReportCrash[5210] : Not saving crash log because we have reached the limit for logs to store on disk. Sync or otherwise clear logs from /var/mobile/Library/Logs/CrashReporter to save new logs.
Apr 17 09:18:59 iPhone ReportCrash[5210] : Could not save crash report to disk!
Apr 17 09:18:59 iPhone SpringBoard[43] : Application ‘UIKitApplication:com.bundleid[0xc936]’ crashed.
Apr 17 09:18:59 iPhone UserEventAgent[17] : id=com.bundleid pid=5208, state=0
Apr 17 09:19:00 iPhone ReportCrash[5210] : Incident Identifier: FC70BBEE-5E9C-4382-9797-52C3DDEBA07C
Apr 17 09:19:00 iPhone ReportCrash[5210] : CrashReporter Key: bf4c0e3a3b25f08b11d197c42a15018797b5d207
Apr 17 09:19:00 iPhone ReportCrash[5210] : Hardware Model: iPhone5,2
Apr 17 09:19:00 iPhone ReportCrash[5210] : Process: appname [5208]
Apr 17 09:19:00 iPhone ReportCrash[5210] : Path: /private/var/mobile/Containers/Bundle/Application/1C6DB723-5E06-460F-AE8D-70018A7B893E/appname.app/appname
Apr 17 09:19:00 iPhone ReportCrash[5210] : Identifier: appname
Apr 17 09:19:00 iPhone ReportCrash[5210] : Version: ???
Apr 17 09:19:00 iPhone ReportCrash[5210] : Code Type: ARM (Native)
Apr 17 09:19:00 iPhone ReportCrash[5210] : Parent Process: launchd [1]
Apr 17 09:19:00 iPhone ReportCrash[5210] : Date/Time: 2015-04-17 09:18:59.725 +0200
Apr 17 09:19:00 iPhone ReportCrash[5210] : Launch Time: 2015-04-17 09:18:57.177 +0200
Apr 17 09:19:00 iPhone ReportCrash[5210] : OS Version: iOS 8.3 (12F70)
Apr 17 09:19:00 iPhone ReportCrash[5210] : Report Version: 105
Apr 17 09:19:00 iPhone ReportCrash[5210] : Exception Type: EXC_CRASH (SIGABRT)
Apr 17 09:19:00 iPhone ReportCrash[5210] : Exception Codes: 0x0000000000000000, 0x0000000000000000
Apr 17 09:19:00 iPhone ReportCrash[5210] : Triggered by Thread: 0
Apr 17 09:19:00 iPhone ReportCrash[5210] : Last Exception Backtrace:
Apr 17 09:19:00 iPhone ReportCrash[5210] : (0x2ba34fea 0x39ce6c86 0x2ba3a320 0x2ba38322 0x2b967e74 0x12157f8 0x1215af2 0x1215fe2 0x8dd838 0xbcc10 0x6fb7d4 0x117f34c 0xbe29a0 0xbd8288 0xbd8c54 0xad9b90 0xb892dc 0x8ea62c 0x40d08 0x4f4b8 0x4da28 0x2c768368 0x2b9faeda 0x2b9faa56 0x2b9f8ca6 0x2b9451fc 0x2b94500e 0x332241fc 0x2f0e9a54 0x3be50 0x3a272aaa)
Apr 17 09:19:00 iPhone ReportCrash[5210] : Thread 0 name: Dispatch queue: com.apple.main-thread
Apr 17 09:19:00 iPhone ReportCrash[5210] : Thread 0 Crashed:
Apr 17 09:19:00 iPhone ReportCrash[5210] : 0 libsystem_kernel.dylib 0x3a33cdf0 0x3a328000 + 85488
Apr 17 09:19:00 iPhone ReportCrash[5210] : 1 libsystem_pthread.dylib 0x3a3bbcc2 0x3a3b8000 + 15554
Apr 17 09:19:00 iPhone ReportCrash[5210] : 2 libsystem_c.dylib 0x3a2d8904 0x3a28e000 + 305412
Apr 17 09:19:00 iPhone ReportCrash[5210] : 3 libc++abi.dylib 0x396049c4 0x39604000 + 2500
Apr 17 09:19:00 iPhone ReportCrash[5210] : 4 libc++abi.dylib 0x3961be24 0x39604000 + 97828
Apr 17 09:19:00 iPhone ReportCrash[5210] : 5 libc++abi.dylib 0x3961b8aa 0x39604000 + 96426
Apr 17 09:19:00 iPhone ReportCrash[5210] : 6 libobjc.A.dylib 0x39ce6dce 0x39ce0000 + 28110
Apr 17 09:19:00 iPhone ReportCrash[5210] : 7 CoreFoundation 0x2b945298 0x2b92d000 + 98968
Apr 17 09:19:00 iPhone ReportCrash[5210] : 8 CoreFoundation 0x2b94500e 0x2b92d000 + 98318
Apr 17 09:19:00 iPhone ReportCrash[5210] : 9 GraphicsServices 0x332241fc 0x3321b000 + 37372
Apr 17 09:19:00 iPhone ReportCrash[5210] : 10 UIKit 0x2f0e9a54 0x2f07a000 + 457300
Apr 17 09:19:00 iPhone ReportCrash[5210] : 11 appname 0x0003be50 0x35000 + 28240
Apr 17 09:19:00 iPhone ReportCrash[5210] : 12 libdyld.dylib 0x3a272aac 0x3a271000 + 6828
The local build uses XCode 6.2 on OS X 10.9.5
Any clue how to fix this?
Does it work properly when build and deployed locally? It’s probably a library which might not be included correctly.
More information about post process and libraries can be found here: IOS build error - framework not found DeviceInfo - Unity Services - Unity Discussions
You will need to check your device crash log and symbolise it, a detailed instruction how to do so can be found here: How to get useful crash dumps out of iOS builds from Unity Cloud Build - Unity Services - Unity Discussions