Description
Describe the bug
Hello,
We’re using a third-party SDK (MLKit) in our React Native project, which depends on MLKitTextRecognitionCommon 5.0.0. During Apple App Store review, our app was rejected under guideline 5.0 - Legal, due to the presence of the following prohibited URL found inside the binary:
This URL appears inside:
Pods/MLKitTextRecognitionCommon/Frameworks/MLKitTextRecognitionCommon.framework/MLKitTextRecognitionCommon
This may be part of a public suffix list embedded in the binary, possibly in relation to domain validation logic.
As Iran is a U.S.-sanctioned country, Apple refuses to accept any references to it — even in unused metadata or strings — and explicitly flagged this URL as a blocker.
Can you please confirm if:
This string is intentionally included by Google in this MLKit release?
A new release can be issued with this reference removed or sanitized?
We are unable to publish the app while this string remains inside the framework.
Steps to Reproduce:
Add MLKitTextRecognitionCommon via CocoaPods (~> 5.0.0)
Build the project
Run: strings MLKitTextRecognitionCommon | grep -i 'nic.ir'
Thanks in advance. This affects distribution of apps in the Apple App Store.
To Reproduce
This is not a runtime issue or code error, but rather a binary content issue that leads to Apple App Store rejection due to legal/sanction compliance.
You can reproduce the issue as follows:
Add the following to a Podfile:
pod 'MLKitTextRecognition', '~> 6.0'
Run:
pod install
Locate the MLKitTextRecognitionCommon binary:
cd ios/Pods/MLKitTextRecognitionCommon/Frameworks/MLKitTextRecognitionCommon.framework
Use strings to inspect the binary:
strings MLKitTextRecognitionCommon | grep -i 'nic.ir'
You'll see output such as:
// ir.md : https://nic.ir.md
This results in App Store rejection under Guideline 5.0 - Legal, as Apple prohibits inclusion of references to sanctioned countries (Iran in this case), even in static metadata.
Expected behavior
Those URLs should not exist.
SDK Info:
- SDK Name & Version [MLKitTextRecognitionCommon via CocoaPods (~> 5.0.0)]