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

[iosurface] IOSurface is not usable before iOS/tvOS 11. Fixes #59201 #2706

Merged
merged 1 commit into from
Sep 15, 2017

Conversation

spouliot
Copy link
Contributor

Apple rejects apps that links with the previously private IOSurface.framework.
We were not sure about this [1] and had it disabled (this is removed).

However another bug stopped our adjustment logic [2] from being executed. This
is needed since clang picks up the private framework if it does not find the
public one (even when asking for a weak framework),

[1] https://bugzilla.xamarin.com/show_bug.cgi?id=59201
[2] Added a while ago for JavascriptCore

Apple rejects apps that links with the previously private IOSurface.framework.
We were not sure about this [1] and had it disabled (this is removed).

However another bug stopped our adjustment logic [2] from being executed. This
is needed since `clang` picks up the private framework if it does not find the
public one (even when asking for a weak framework),

[1] https://bugzilla.xamarin.com/show_bug.cgi?id=59201
[2] Added a while ago for JavascriptCore
@@ -336,7 +336,7 @@ public class NativeLinkTask : BuildTask
// /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore instead of
// /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
// more details in https://bugzilla.xamarin.com/show_bug.cgi?id=31036
if (Target.WeakFrameworks.Count > 0)
if (CompilerFlags.WeakFrameworks.Count > 0)
Copy link
Member

Choose a reason for hiding this comment

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

👍 nice one!

@monojenkins
Copy link
Collaborator

Build failure

@spouliot
Copy link
Contributor Author

mmp-test failed with [FAIL] WebKit is absent

@spouliot
Copy link
Contributor Author

This seems unrelated since the only change is made to mtouch, not mmp.
@chamons have you ever see this one ? I'll file it tomorrow (unless it exists) but right now we need a package with this fix.

@spouliot spouliot merged commit a74174e into dotnet:xcode9 Sep 15, 2017
@chamons
Copy link
Contributor

chamons commented Sep 15, 2017

@spouliot I believe it is https://bugzilla.xamarin.com/show_bug.cgi?id=59277

I was going to look at a fix after I get #2685 working, should be trivial.

@spouliot spouliot deleted the xcode9-iosurface-fix branch September 15, 2017 16:05
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.

5 participants