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]: Error compiling after installing the OneSignalSDK.DotNet component in Visual Studio on the MAC #380

Open
2 of 3 tasks
MarcoErlwein opened this issue Sep 28, 2023 · 0 comments

Comments

@MarcoErlwein
Copy link

What happened?

I create a new project of type .NET Maui, install the component OneSignalSDK.DotNet from Nuget, and then when compiling the following error is generated:

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7099/targets/Xamarin.Shared.Sdk.targets(3,3): Error: clang++ exited with code 1:
Undefined symbols for architecture arm64:
"OBJC_CLASS$_OSInAppMessage", referenced from:
objc-class-ref in registrar.o
"OBJC_CLASS$_OSInAppMessageClickEvent", referenced from:
objc-class-ref in registrar.o
"OBJC_CLASS$_OSInAppMessageClickResult", referenced from:
objc-class-ref in registrar.o
"OBJC_CLASS$_OSInAppMessageDidDismissEvent", referenced from:
objc-class-ref in registrar.o
"OBJC_CLASS$_OSInAppMessageDidDisplayEvent", referenced from:
objc-class-ref in registrar.o
"OBJC_CLASS$_OSInAppMessageTag", referenced from:
objc-class-ref in registrar.o
"OBJC_CLASS$_OSInAppMessageWillDismissEvent", referenced from:
objc-class-ref in registrar.o
"OBJC_CLASS$_OSInAppMessageWillDisplayEvent", referenced from:
objc-class-ref in registrar.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation) (MauiOneSignal)

I have Visual Studio for Mac version 17.6.4 and XCode 14.2 installed on the MAC.

Steps to reproduce?

1. I create a new .Net Maui Blazor project

2. I install the OneSignalSDK.DotNet component from Nuget

3. I compile the project and the error is generated.

What did you expect to happen?

That the project can compile without error to continue with the setup

OneSignal Xamarin SDK version

5.0.0

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
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

1 participant