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 nuget XCFramework nested path copy reference #271

Merged

Conversation

jkasten2
Copy link
Member

@jkasten2 jkasten2 commented Feb 8, 2022

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 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 #255 where this copy command was originally added had this path wrong.

Motivation

Fixes iOS build error reported by beta testers #262 (comment)

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

Our .nuspec places the `OneSignal.iOS.Binding\Com.OneSignal.targets`
file under `build\Xamarin.iOS10\` in the package so inorder for
it to access `contents` at the root it needs to go up two folder levels.
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 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jkasten2)

@jkasten2 jkasten2 merged commit 36cb51f into 4.0.0_release Feb 8, 2022
@jkasten2 jkasten2 deleted the fix/ios_nuget_xcframework_nested_path_copy_ref branch February 8, 2022 20:02
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