OneSignal / OneSignal-Xamarin-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Xamarin app with OneSignal. https://onesignal.com
Other
104 stars 50 forks source link

[question]: Xamarin.IOS OneSignalNotificationServiceExtension Linker Settings are different error #376

Open turgaygncr opened 1 year ago

turgaygncr commented 1 year ago

How can we help?

Hi,

I'm using VS4Mac 2022, and integrated my xamarin project with Onesignal.SDK via v.9.0 documantation. I complated all set up but I'm getting error wgile archiving ios project.

The error is: Native code sharing has been disabled for the extension 'OneSignalNotificationServiceExtension' because the managed linker settings are different between the container app (SDKOnly) and the extension (None).

There is no Arm64 option on extention project build settings. I changed several options but got errors always.

Could you help please ?

My main Xamarin.IOS project build setting: Ekran Resmi 2023-04-07 09 23 17

That is also my OneSignalNotificationServiceExtension project build setting: Ekran Resmi 2023-04-07 09 23 51

Code of Conduct

robfrancis commented 1 year ago

I think you are looking in the wrong place on your OneSignalNotificationServiceExtension project. Try changing the values below to 'AppStore' & 'iPhone'. I'm assuming the 'Linker Behaviour' will need to match.

Debug_IphoneSim

emawby commented 1 year ago

@turgaygncr Hello did the above suggestion resolve your issue?