Bug 29786 - PushKit Warning
Summary: PushKit Warning
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 8.10
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-05-06 06:25 UTC by BB
Modified: 2015-06-22 10:22 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description BB 2015-05-06 06:25:22 UTC
The latest release (Xamarin Studio 5.9) still has this warning when building for a Debug build (with linker behaviour set to "Don't Link"):

MTOUCH: Warning MT0049: PushKit.framework is supported only if deployment target is 8.0 or later. PushKit features might not work correctly. (MT0049) (Obymobi.Mobile.App.iOS)

It's been discussed here:


When will this be fixed - I've been living with it for over 6 months now...
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-05-06 07:39:18 UTC
BB, technically the warning is correct, Xamarin.iOS.dll contains PushKit bindings, and if you don't link the app it will contain those PushKit bindings (iow your app as a whole is using PushKit even though your own code isn't).

Sebastien, maybe we should disable this warning for simulator+dontlink builds? I
Comment 3 Sebastien Pouliot 2015-05-06 21:31:20 UTC
That warning was, largely, to cover an Apple bug [1][2] as a way to indicate that the feature would not work (but we allowed the build to complete, even when the linker was disabled). 

It seems that was fixed (at least in 8.4 beta, need to track it back - 8.1 SDK was also buggy) so it might be possible to remove it completely (at least for recent Xcode versions).

[1] http://www.openradar.me/17647271
[2] https://devforums.apple.com/message/999579
Comment 4 Sebastien Pouliot 2015-05-06 22:03:31 UTC
Xcode 6.1 (iOS 8.1 SDK) was still buggy.
Xcode 6.2 is fine (iOS 8.2 SDK).

Fixed in maccore/master a54b5b78ffccb8d624b1c6e1db6e59f75370540b

note: if someone is still using Xcode 6.[0|1] they will continue to have the MT0049 warning since it's not possible, when the linker is disabled, to know if PushKit is really used (or not) by the application - making it hard to diagnose why it would not work.
Comment 5 BB 2015-06-22 10:22:56 UTC
I still get this warning when building for a Debug build (with linker behaviour set to "Don't Link") with the latest Xamarin and Xcode:

Xamarin Studio: 5.9.3
Xcode: 6.3.2