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

Fix iOS link error for apps consuming .nupkg for 4.0.0 #255

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

jkasten2
Copy link
Member

@jkasten2 jkasten2 commented Nov 22, 2021

Description

Xamarin has limited support for .xcframework files, they do not have a built in working solution for NuGet packages yet. This works around the issue by including OneSignal.xcframework as-is in the .nupkg. It also includes a .target file which is settings to add the OneSignal.xcframework as a native reference. See the comment in the Com.OneSignal.nuspec file for more details.

The items under <NativeReference> in Com.OneSignal.targets is from OneSignal.iOS.Binding.csproj in this repo.

This was added based on the recommendations from:


This change is Reviewable

Xamarin has limited support for `.xcframework` files, they do not have a
built in working solution for NuGet packages yet.
This works around the issue by including `OneSignal.xcframework` as-is
in the `.nupkg`. It also includes a `.target` file which is setting to
add the `OneSignal.xcframework` as a native reference.
See the comment in the `Com.OneSignal.nuspec` file for more details.

The items under `<NativeReference>` in `Com.OneSignal.targets` is from
`OneSignal.iOS.Binding.csproj` in this repo.

This was added based on the recommendations from:
   - xamarin/xamarin-macios#10819 (comment)
Copy link
Contributor

@tanaynigam tanaynigam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jkasten2)

Base automatically changed from fix/ios_building_with_xcframework to 4.0.0_release November 22, 2021 19:07
@jkasten2 jkasten2 merged commit 3a327fa into 4.0.0_release Nov 22, 2021
@jkasten2 jkasten2 deleted the fix/ios_nuget_with_xcframework branch November 22, 2021 19:10
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

Successfully merging this pull request may close these issues.

2 participants