-
Notifications
You must be signed in to change notification settings - Fork 520
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
NSInvalidArgumentException when sending multipart content over HTTP #15860
Comments
Bug is still present when building a .NET7 iOS app |
…et#15860. Preserve all members of WrappedNSInputStream, and mark it as a non-direct binding class, so that the linker doesn't trim away any virtual overrides, since they're actually necessary. Fixes dotnet#15860.
…et#15860. Preserve all members of WrappedNSInputStream, and mark it as a non-direct binding class, so that the linker doesn't trim away any virtual overrides, since they're actually necessary. Fixes dotnet#15860.
…et#15860. Preserve all members of WrappedNSInputStream, and mark it as a non-direct binding class, so that the linker doesn't trim away any virtual overrides, since they're actually necessary. Fixes dotnet#15860.
…et#15860. Preserve all members of WrappedNSInputStream, and mark it as a non-direct binding class, so that the linker doesn't trim away any virtual overrides, since they're actually necessary. Fixes dotnet#15860.
…pedNSInputStream. Fixes #15860. (#18020) Preserve all members of WrappedNSInputStream, and mark it as a non-direct binding class, so that the linker doesn't trim away any virtual overrides, since they're actually necessary. Fixes #15860. Backport of #18011 Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
…Fixes #15860. (#18019) Preserve all members of WrappedNSInputStream, and mark it as a non-direct binding class, so that the linker doesn't trim away any virtual overrides, since they're actually necessary. Fixes #15860. Backport of #18011 Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
…pedNSInputStream. Fixes #15860. (#18018) Preserve all members of WrappedNSInputStream, and mark it as a non-direct binding class, so that the linker doesn't trim away any virtual overrides, since they're actually necessary. Fixes #15860. Backport of #18011 Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
I am facing same issue. I am using Xamarin Forms - 5.0.0.2578 |
This has been blocking my work. May I know when this resolved version is been released? |
I believe this will be shipped together with our support for Xcode 14.3 - and see this issue for that: #17561 |
Is there any estimated date for release to that issue ? |
This crash is still happening with the latest versions of .NET / Xamarin / VS4Mac |
@tipa can you show the exact versions you used? |
|
Just to confirm: you saw this error with an app built with legacy Xamarin.iOS? |
No, I fully transitioned to "new .NET 7 for iOS". I don't know if it also happens on legacy Xamarin |
OK, that makes sense then, because we haven't published packages with the fix for .NET 7 yet. |
Is this issue is been fixed and released? I have been blocked for a long time |
Yes, it's been released now. It's included in this release for .NET: https://github.com/xamarin/xamarin-macios/releases/tag/dotnet-7.0.2xx-xcode14.3-7060 |
@rolfbjarne that's great news - thanks! |
(the important part is the first version,
Yes, when building for iOS with .NET (with or without MAUI), you'll reference the |
Steps to Reproduce
Expected Behavior
No exception, file upload succeeds
Actual Behavior
2022-09-05 09:34:20.133318+0200 test[4083:85862] Xamarin.iOS: Received unhandled ObjectiveC exception: NSInvalidArgumentException *** -streamStatus only defined for abstract class. Define -[System_Net_Http_NSUrlSessionHandler_WrappedNSInputStream streamStatus]!
Additional comments
StringContent
instead of aJsonContent
as part of theMultipartFormDataContent
in the example projectEnvironment
Version information
The text was updated successfully, but these errors were encountered: