runtime: App refused by Apple with error ITMS-90338: Non-public API usage

Description

Hi,

we were able to migrate our solution from Xamarin to MAUI (.net 8).

After a 2 weeks fight, the app is finally working on Android and iOS in both Debug and Release configuration.

Unfortunately, after sending to Apple, the app is rejected because of the following:

ITMS-90338: Non-public API usage - The app references non-public symbols in [Our app name]: _SCDynamicStoreCreate, _SCDynamicStoreCreateRunLoopSource, _SCDynamicStoreKeyCreateNetworkServiceEntity, _SCDynamicStoreSetNotificationKeys. 
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. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/ 

From what I understand, this is because the 4 methods (_SCDynamicStoreCreate, _SCDynamicStoreCreateRunLoopSource, _SCDynamicStoreKeyCreateNetworkServiceEntity, _SCDynamicStoreSetNotificationKeys) exists in the generated Mach-O binary.

Mach-O binary methods

Those methods are not used directly by our application but because of HttpClient we are using to request our business API The methods are implemented in the System.Net.NetworkInformation assembly which is referenced in the System.Net.Http assembly

Assembly references System Net NetworkInformation

Installed Workload Id      Manifest Version       Installation Source
---------------------------------------------------------------------
android                    34.0.113/8.0.100       VS 17.11.35005.142
maccatalyst                17.2.8053/8.0.100      VS 17.11.35005.142
ios                        17.2.8053/8.0.100      VS 17.11.35005.142
maui-windows               8.0.40/8.0.100         VS 17.11.35005.142
aspire                     8.0.0/8.0.100          VS 17.11.35005.142

Use `dotnet workload search` to find additional workloads to install.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

Targeted iOS version: 11.0

Did you find any workaround?

No workaround found

Relevant log output

ITMS-90338: Non-public API usage - The app references non-public symbols in [Our app name]: _SCDynamicStoreCreate, _SCDynamicStoreCreateRunLoopSource, _SCDynamicStoreKeyCreateNetworkServiceEntity, _SCDynamicStoreSetNotificationKeys. 
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. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 7
  • Comments: 45 (8 by maintainers)

Most upvoted comments

@PureWeen: Here is the thread in Apple developer forum. I also sent a contact request with no response so far. I’d like this thread to stay open until further notice (or feedback from Apple).

I just filed a support case for it. We need to kick up the numbers on this one.

Thank you all, it’s nice not to feel alone anymore.

Hi all, I spoke to someone on the phone from Apple before finding this thread and they agreed that it was definitely a review issue and most likely not anything to do with .NET/MAUI, he said he was going to escalate it for me but the best bet was to email Apple Technical support from within the developer dashboard to get it to the right people.

@rolfbjarne is there anything Microsoft can do to get Apple to fix this more quickly?

As far as I know Apple prioritizes based on number of customers affected. So if you all contact Apple (the more the better), then it’s much more likely to get someone from Apple to take action asap.

also works for me. Whoever help in getting this fixed on Apple’s side this is a L E G E N D!

Yes, it is working now.

Same issue here and have also escalated to Apple. Thanks for creating this thread, let’s hope for a quick fix

I have exactly the same issue tonight

These functions are not private API, they’re very much public:

So this looks like Apple updated their list of private APIs, and got it wrong (it wouldn’t be the first time this has happened).

Typically publishing again works (because someone else complained and Apple fixed it), otherwise you’ll have to escalate this to Apple (forums, support ticket, etc.)

Its now working for me too, I was able to push my app to the App Store.

@ore300 reported it’s working now

I just send a support request to apple as well.

We have this issue as well. Apple just started to decline our TestFlight push since yesterday. The days before it was working just fine.