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

[Bug]: Could not find a part of the path #108

Open
1 task done
grabnerM opened this issue May 23, 2024 · 3 comments
Open
1 task done

[Bug]: Could not find a part of the path #108

grabnerM opened this issue May 23, 2024 · 3 comments

Comments

@grabnerM
Copy link

What happened?

I tried to add OneSignalSDK.DotNet to my MAUI (.NET8) project. This was only possible via CLI because in VS i always got the error

"Could not find a part of the path 'C:\Users\maximilian.nuget\packages\onesignalsdk.dotnet\5.1.3\res\ios\OneSignalFramework.xcframework\ios-arm64_x86_64-maccatalyst\OneSignalFramework.framework\Versions\Current\Modules\OneSignalFramework.swiftmodule\x86_64-apple-ios-macabi.private.swiftinterface'."

This problem got already reported but every issue is marked as closed. Honestly, i don´t know why these issues got closed, but IMO is this a crucial bug.

Steps to reproduce?

1. Create a .Net 8 MAUI project
2. Try to add OneSignalSDK.DotNet

What did you expect to happen?

Correct installation of the nuget package

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@grabnerM
Copy link
Author

Okay. Now i got the project to run at least. After installing the package via CLI you HAVE to run "dotnet restore" because damn VS is not able to do this on itself.
Still, this can´t be the way to go to use this package..

@ColdstarJoey
Copy link

ColdstarJoey commented Sep 2, 2024

Same issue for me even if i use package console, do we know how to resolve this in VS yet as i had to open the folder in Terminal and run the cli command

@mads195
Copy link

mads195 commented Sep 10, 2024

We've also seen this behavior on all workstations with the OneSignal SDK and limited to just the OneSignal SDK. Occurs during install or after git pull onto a new workstation.

Get round:
To install, use dotnet add package OneSignalSDK.DotNet
Post git pull, use dotnet restore

The error:
Error that appears if using the nuget package manager:
Error occurred while restoring NuGet packages: Could not find a part of the path 'C:\Users\MYUSER\.nuget\packages\onesignalsdk.dotnet\5.2.1\res\ios\OneSignalLiveActivities.xcframework\ios-arm64_x86_64-maccatalyst\OneSignalLiveActivities.framework\Versions\A\Modules\OneSignalLiveActivities.swiftmodule\x86_64-apple-ios-macabi.private.swiftinterface'.

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