Bug 27777 - Invalid binary on submitting to Appstore
Summary: Invalid binary on submitting to Appstore
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.1
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-03-09 11:36 UTC by Christoffer Mikkelsen
Modified: 2015-05-27 17:42 UTC (History)
4 users (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 ANSWERED

Description Christoffer Mikkelsen 2015-03-09 11:36:27 UTC
We have been using xamarin.forms to build our new app. However the last 2-3 times we have been trying to submit the app apple gives us an error regarding use of invalid API. However this should not be the case, as we only use xamarin.forms, together with the following components.

Azure mobile services
RestSharp
Json.NET
Xamarin.Mobile

Here is the email that we receive each time we try to submit to the appstore.

Dear developer,

We have discovered one or more issues with your recent delivery for "Hungry - Bestil Takeaway". To process your delivery, the following issues must be corrected:

Non-public API usage:

The app references non-public selectors in HungryAppiOS: _addRecorder:, _playbackEvents:atPlaybackRate:messageWhenDone:withSelector:, _removeRecorder:, applicationWillTerminate, terminateWithSuccess
If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed.

If you think this message was sent in error and that you have only used Apple-published APIs in accordance with the guidelines, send the app's nine-digit Apple ID, along with detailed information about why you believe the above APIs were incorrectly flagged, to appreview@apple.com. For further information, visit the Technical Support Information page.

Once these issues have been corrected, you can then redeliver the corrected binary.

Regards,

The App Store team
Comment 2 Stephane Delcroix 2015-05-27 08:29:49 UTC
quick workaround, remove the reference to Xamarin.TestCloud.Agent
Comment 3 Mikayla Hutchinson [MSFT] 2015-05-27 17:42:28 UTC
Please make sure that your code does not call into Calabash from your release build (or whatever other configuration you use to build for the App Store).


For example, set the ENABLE_TEST_CLOUD define only in your debug configuration, and conditionally include the initialization code:
 
   #if ENABLE_TEST_CLOUD
    Xamarin.Calabash.Start();
    #endif

If you still have the problem after making this change, could you please attach your build log so we can look into it?