From 447fbbe1237d799ca1dd4cd3ad3a8c5113bbd1f3 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Wed, 22 May 2019 19:57:34 -0400 Subject: [PATCH 1/7] [mmp] Ignore, by default, frameworks that cause rejection from App Store. Fix #6039 So far this only applies to `QTKit`... XM will now, by default, avoid natively link with QTKit unless it's instructed to so explicitly using `--link-prohibited-frameworks` ref: https://github.com/xamarin/xamarin-macios/issues/6039 --- docs/website/mmp-errors.md | 23 +++++++++++++++++++++++ docs/website/mtouch-errors.md | 2 ++ tools/common/Frameworks.cs | 10 ++++++++++ tools/mmp/driver.cs | 2 ++ 4 files changed, 37 insertions(+) diff --git a/docs/website/mmp-errors.md b/docs/website/mmp-errors.md index 81b5d4822a4e..0845f359ca98 100644 --- a/docs/website/mmp-errors.md +++ b/docs/website/mmp-errors.md @@ -633,6 +633,29 @@ See the [equivalent mtouch warning](~/ios/troubleshooting/mtouch-errors.md#MT521 + + + + +#### MM5219: Linking against framework '{nspace}'. It is prohibited (rejected) by the Mac App Store + +The application has references to the `{nspace}` namespace of `Xamarin.Mac.dll`. +The associated OS framework is known to be **prohibited** in Apple's Mac App Store applications. + +However `mmp` was instructed, using `--link-prohibited-framework`, to natively link to the associated framework. +You can silence this warning by adding `--nowarn=5219` to the **Addtional mmp arguments** in your project's options. + + + +#### MM5220: Skipping framework '{nspace}'. It is prohibited (rejected) by the Mac App Store + +The application has references to the `{nspace}` namespace of `Xamarin.Mac.dll`. +The associated OS framework is known to be **prohibited** in Apple's Mac App Store applications. +To avoid rejections `mmp` will not, by default, natively link with the mentioned framrwork. +Any feature that use the mentioned framework will not work and might crash at runtime. + +If needed (e.g. not submitting to the App Store) you can ask `mmp` to link against the framework by adding `--link-prohibited-framework` to the **Addtional mmp arguments** in your project's options. +You can silence this warning by adding `--nowarn=5220` to the **Addtional mmp arguments** in your project's options. ### MM53xx: other tools diff --git a/docs/website/mtouch-errors.md b/docs/website/mtouch-errors.md index 6cc68b1caefc..dd2637214d20 100644 --- a/docs/website/mtouch-errors.md +++ b/docs/website/mtouch-errors.md @@ -2825,6 +2825,8 @@ There are two main reasons for this: * The symbol is correct, but it's a symbol that's already preserved by normal means (some build options causes the exact list of dynamic symbols to vary). + + ### MT53xx: Other tools