OneSignal / OneSignal-DotNet-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your .NET app with OneSignal. https://onesignal.com
MIT License
16 stars 5 forks source link

[Bug]: Cannot install OneSignalSDK.DotNet Maui #65

Closed gabsamples6 closed 1 year ago

gabsamples6 commented 1 year ago

What happened?

We are upgrading from Xamarin to Maui and installing the OneSignalSDK.DotNet causes an error

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\anyUser.nuget\packages\onesignalsdk.dotnet\5.0.0\res\ios\OneSignalFramework.xcframework\ios-arm64_x86_64-maccatalyst\OneSignalFramework.framework\Versions\A\Modules\OneSignalFramework.swiftmodule\x86_64-apple-ios-macabi.private.swiftinterface'.

Steps to reproduce?

Create A maui app .net 7 or 8 (windows pc)
Go to nuget packages and install OneSignalSDK.DotNet
See
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\anyUser\.nuget\packages\onesignalsdk.dotnet\5.0.0\res\ios\OneSignalFramework.xcframework\ios-arm64_x86_64-maccatalyst\OneSignalFramework.framework\Versions\A\Modules\OneSignalFramework.swiftmodule\x86_64-apple-ios-macabi.private.swiftinterface'.

What did you expect to happen?

I expected to install the nuget successfully

Does OneSignal support Maui?

many thanks

Relevant log output

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\anyUser\.nuget\packages\onesignalsdk.dotnet\5.0.0\res\ios\OneSignalFramework.xcframework\ios-arm64_x86_64-maccatalyst\OneSignalFramework.framework\Versions\A\Modules\OneSignalFramework.swiftmodule\x86_64-apple-ios-macabi.private.swiftinterface'.

Code of Conduct

gabsamples6 commented 1 year ago

@brismithers Could you please advise. We really need to use this feature and we are blocked?

TedMobile commented 1 year ago

I get the same error when installing on a blank maui app .net 7 or 8

gabsamples6 commented 1 year ago

I close this issue because this is todo with xamarin.ios not handling long path

nkdiep24 commented 5 months ago

@gabsamples6 can i know how to solve it? i'm using latest version also can't install via nuget