init SMB2Manager throws error
haoyuanwu opened this issue · comments
I want to know how to use it
It appears when the real machine is running
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.
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.
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 theserverURL
is ok and this code should work.
An error is reported even if the run is not forced to expand.
Can you check which line of SMB2Manager initializer causes the crash?