Bug 2030 - Apple Rejection: We found the following non-public API/s in your app: applicationWillResignActive
Summary: Apple Rejection: We found the following non-public API/s in your app: applica...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 4.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-14 20:24 UTC by rcollins
Modified: 2011-11-14 23:19 UTC (History)
1 user (show)

Tags:
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:
Status:
RESOLVED FIXED

Description rcollins 2011-11-14 20:24:25 UTC
We just got rejected by the App Store for using the undocumented API applicationWillResignActive

We override UIApplication.OnResignActivation, which I assume binds through to this API.

applicationWillResignActive: is in their documentation. Is MonoTouch binding an undocumented version of this API?

We are using Mono 2.10.4, MonoTouch 4.0.7 and MonoDevelop 2.8, built on OS X Lion.
Comment 1 rcollins 2011-11-14 23:19:59 UTC
Apple starting using a tool on 10th November which scans your binaries for a list of strings of undocumented APIs, which are internal selectors (methods) on various classes in their frameworks.

This is a really blunt tool. It basically means that if you get a name clash which doesn't even have to be qualified by type then your application will be rejected. So for example if your class A implements a method 'foo', and 'foo' is an undocumented method on some framework class, then your app will be rejected. In this case foo is 'applicationWillResignActive'.

MonoTouch is putting the 'applicationWillResignActive' string into the binary in a long list of APIs which presumably form part of our interop layer:

$cache7 [clipped] ApplicationWillResignActive [clipped] <>f__am$cache16<>f__am

We have identified the name clash in our objective-C library and will change the name and resubmit.

Roh.