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]: iOS - framework not found OneSignalCore #76

Open
1 task done
mkjainit opened this issue Oct 26, 2023 · 4 comments
Open
1 task done

[Bug]: iOS - framework not found OneSignalCore #76

mkjainit opened this issue Oct 26, 2023 · 4 comments

Comments

@mkjainit
Copy link

mkjainit commented Oct 26, 2023

What happened?

Sdk not working on iOS platform with Latest .net8-rc2 - MAUI

Steps to reproduce?

1. Create new .Net MAUI project using latest .net8 rc2
2. Add onesignaldotnet sdk
3. target the ios platform 
3. Build the solution and it will failed with error

XCode version 14.3.1, iOS version 16.1, 16.4, 16.0
MAUI .NET 8 RC 2

What did you expect to happen?

I expected to build the MAUI app by targeting iOS platform

Relevant log output

1>Tool xcrun execution finished (exit code = 1).
1>ld: framework not found OneSignalCore
1>clang: error: linker command failed with exit code 1 (use -v to see invocation)
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.8968-net8-rc2\targets\Xamarin.Shared.Sdk.targets(1556,3): error : clang++ exited with code 1:
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.8968-net8-rc2\targets\Xamarin.Shared.Sdk.targets(1556,3): error : ld: framework not found OneSignalCore
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.8968-net8-rc2\targets\Xamarin.Shared.Sdk.targets(1556,3): error : clang: error: linker command failed with exit code 1 (use -v to see invocation)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@emawby
Copy link
Contributor

emawby commented Nov 3, 2023

Hello @mkjainit thank you for reporting. Were you using Windows or Mac to build this and with visual studio or visual studio code with the extensions? Additionally were you using the hot restart feature?

@mkjainit
Copy link
Author

mkjainit commented Nov 4, 2023 via email

@msmoises69
Copy link

msmoises69 commented Dec 4, 2023

I'm getting same error with Visual Studio 2022, maui .net 7.0, OneSignal version 5.0.2
When target is android, everything works fine.

@emawby
Copy link
Contributor

emawby commented Jan 17, 2024

The next release of the SDK will no longer be using the xamarin tool chain to and instead be using .net7. We were not able to reproduce this issue using the .net7 tools. I will ping here when the release is available.

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