-
Notifications
You must be signed in to change notification settings - Fork 591
Description
Describe the bug
During iOS distribution, App Store Connect validation fails because flutter_unity_widget.framework references the non-public selector rootView.
To Reproduce
Steps to reproduce the behavior:
- Go to a Flutter project using flutter_unity_widget from experimental/unity_6000.
- Integrate Unity as Library using Unity 6000.1.17f1 and export with fuw-6000.0.2.unitypackage.
- Build/archive iOS app in Release mode.
- Upload archive to App Store Connect / validate for distribution.
- See error:
Validation failed The app references non-public selectors in Payload/Runner.app/Frameworks/flutter_unity_widget.framework/flutter_unity_widget: rootView (ID: 1a405613-6868-4a78-a7a9-e8da0ec43b10)
Expected behavior
iOS archive should pass App Store Connect validation and distribution without non-public selector errors.
Screenshots
Not applicable, during distribution/upload process in XCode the error message
Unity:
OS: iOS
Version: Unity 6000.1.17f1
Smartphone:
Device: iPhone
OS: iOS 16
Version: App build created from Flutter project using experimental/unity_6000
Additional context
I patched my fork by replacing iOS plugin usage of appController()?.rootView
After patching, archive upload succeeded on App Store Connect.
Android worked as-is in my case.
I’m still validating long-term stability, but current results look good.
My fork (with patch):
I would appreciate others to test and confirm.