Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS displayManager.showSecondaryDisplay Error #24

Open
caseplugins opened this issue Mar 28, 2022 · 3 comments
Open

IOS displayManager.showSecondaryDisplay Error #24

caseplugins opened this issue Mar 28, 2022 · 3 comments

Comments

@caseplugins
Copy link

Describe the bug
presentation_displays/SwiftPresentationDisplaysPlugin.swift:119: Fatal error: Unexpectedly found nil while unwrapping an Optional value
presentation_displays/SwiftPresentationDisplaysPlugin.swift:119: Fatal error: Unexpectedly found nil while unwrapping an Optional value

  • thread Create CODE_OF_CONDUCT.md #1, queue = 'com.apple.main-thread', stop reason = Fatal error: Unexpectedly found nil while unwrapping an Optional value
    frame #0: 0x0000000185c68d7c libswiftCore.dylib`_swift_runtime_on_report

To Reproduce
Steps to reproduce the behavior:
Get Displays into displays Array.
run displayManager.showSecondaryDisplay(displayId: displays[1].displayId, routerName: "presentation");
App crashes and error is displayed.

I have tried setting display[1].rotation and .flag to 1

Expected behavior
Something to show in secondary screen.

Smartphone (please complete the following information):

  • Device: Iphone 11pro

Additional context
Second screen is already mirroring.

@fbernaly
Copy link
Contributor

@caseplugins: I encountered the same issue today and I fixed in this PR: #25. Hopefully the reviewers approved soon. In the meantime you can checkout to my branch.

@VNAPNIC
Copy link
Owner

VNAPNIC commented Mar 29, 2022

@caseplugins @fbernaly resolved in version 0.2.3

@caseplugins
Copy link
Author

@fbernaly @VNAPNIC Thanks! Got it to work. I would add to the documentation that you need to adjust the AppDelegate.swift file for an already existing project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants