Hi there,
I run unity project IOS build in Xcode after build successful but which has break and did not load to device. In Xcode showed "Thread 1: EXC_BREAKPOINT(.." error. Could you give any suggestion to resolve. Thanks!
Function error shows as bellow:
*(void)updateDisplayListCacheInUnity;
{
// [UIScreen screens] might be out of sync to what is indicated to the
// application via UIScreenDidConnectNotification and UIScreenDidDisconnectNotification
// notifications. For example, on disconnection [UIScreen screens] might still
// have the screen that the display manager no longer knows about.
const unsigned MAX_DISPLAYS_SUPPORTED = 8; // sync this to the value on Unity side
void* screens[MAX_DISPLAYS_SUPPORTED];
unsigned screenCount = 0;
UIScreen* mainScreen = [UIScreen mainScreen];
screens[screenCount++] = (__bridge void*)mainScreen;
for (UIScreen* screen in _displayConnection) ***= Thread 1: EXC_BREAKPOINT(.**
{
if (screen == mainScreen)
continue;
screens[screenCount++] = (__bridge void*)screen;
}
UnityUpdateDisplayListCache(screens, screenCount);
}*
↧