Post

Replies

Boosts

Views

Activity

GCVirtualController crashes on virtualController.connect()
This code crashes on the virtualController.connect(): let virtualConfiguration = GCVirtualControllerConfiguration() virtualConfiguration.elements = [GCInputLeftThumbstick, GCInputButtonA, GCInputButtonB] let virtualController = GCVirtualController(configuration: virtualConfiguration) // Connect to the virtual controller if no physical controllers are available. if GCController.controllers().isEmpty {   virtualController.connect() } This is the error: dyld4 config: DYLD_LIBRARY_PATH= /usr/lib/system/introspection DYLD_INSERT_LIBRARIES= /Developer/usr/lib/libBacktraceRecording.dylib: /Developer/usr/lib/libMainThreadChecker.dylib: /Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib It doesn't crash on the emulator, but it crashes on a real device. What am I doing wrong?
1
0
1.2k
Jun ’21