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
Fixes "OneSignal.xcframework has an incorrect or unknown format and cannot be processed" error on 4.0.0-beta1+ on iOS builds due to wrong copy path for the root contents folder where OneSignal.xcframework lives under.
Details
Our .nuspec places the OneSignal.iOS.Binding\Com.OneSignal.targets file under build\Xamarin.iOS10\ in the package so in order for it to access contents at the root it needs to go up two folder levels.
PR https://github.com/OneSignal/OneSignal-Xamarin-SDK/pull/255 where this copy command was originally added had this path wrong.
Tested on Visual Studio Community 2019 for Mac and locally modifying ~/.nuget/packages/com.onesignal/4.0.0-beta2/build/Xamarin.iOS10/Com.OneSignal.targets to confirm it fixes the build and runs on an iOS 14 device.
Description
One Line Summary
Fixes "OneSignal.xcframework has an incorrect or unknown format and cannot be processed" error on 4.0.0-beta1+ on iOS builds due to wrong copy path for the root
contents
folder whereOneSignal.xcframework
lives under.Details
Our
.nuspec
places theOneSignal.iOS.Binding\Com.OneSignal.targets
file underbuild\Xamarin.iOS10\
in the package so in order for it to accesscontents
at the root it needs to go up two folder levels. PR https://github.com/OneSignal/OneSignal-Xamarin-SDK/pull/255 where this copy command was originally added had this path wrong.Motivation
Fixes iOS build error reported by beta testers https://github.com/OneSignal/OneSignal-Xamarin-SDK/issues/262#issuecomment-1025663362
Scope
Effects all iOS builds.
Testing
Manual testing
Tested on Visual Studio Community 2019 for Mac and locally modifying
~/.nuget/packages/com.onesignal/4.0.0-beta2/build/Xamarin.iOS10/Com.OneSignal.targets
to confirm it fixes the build and runs on an iOS 14 device.This change is![Reviewable](https://reviewable.io/review_button.svg)