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

init SMB2Manager throws error #99

Open
haoyuanwu opened this issue Jan 2, 2024 · 7 comments
Open

init SMB2Manager throws error #99

haoyuanwu opened this issue Jan 2, 2024 · 7 comments

Comments

@haoyuanwu
Copy link

haoyuanwu commented Jan 2, 2024

image
@haoyuanwu
Copy link
Author

I want to know how to use it

@haoyuanwu
Copy link
Author

It appears when the real machine is running

@amosavian
Copy link
Owner

You are trying to force unwrap a nullable initializer and I think this causes a crash.

The only apparent reason to return nil is when the URL is malformed, though the serverURL is ok and this code should work.

@haoyuanwu
Copy link
Author

I actually ran it in the swiftUI environment, and only real tests crashed, not in the emulator. I switched several ways to call the initialization method and still got an error.

@haoyuanwu
Copy link
Author

An error is reported even if the run is not forced to expand.

You are trying to force unwrap a nullable initializer and I think this causes a crash.

The only apparent reason to return nil is when the URL is malformed, though the serverURL is ok and this code should work.

An error is reported even if the run is not forced to expand.

@haoyuanwu
Copy link
Author

You are trying to force unwrap a nullable initializer and I think this causes a crash.

The only apparent reason to return nil is when the URL is malformed, though the serverURL is ok and this code should work.

image

@amosavian
Copy link
Owner

Can you check which line of SMB2Manager initializer causes the crash?

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

2 participants