Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple iOS Processing Failing: ITMS-90338: Non-public API usage #123

Open
elmdecoste opened this issue Jun 7, 2022 · 5 comments
Open

Apple iOS Processing Failing: ITMS-90338: Non-public API usage #123

elmdecoste opened this issue Jun 7, 2022 · 5 comments

Comments

@elmdecoste
Copy link

elmdecoste commented Jun 7, 2022

We've been using this library for a while within our app and we're just now getting an error thats blocking us from submitting builds to Apple.

ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/flutter_web_auth.framework/flutter_web_auth: _SFAuthenticationErrorDomain. 
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/

This started this afternoon with no code changes from our end, and at first glance it seems like there are not references to said classes within this plugin, but it's getting flagged anyways

@Lukiya
Copy link

Lukiya commented Jun 7, 2022

Same issue.

@ish2028
Copy link

ish2028 commented Jun 7, 2022

I believe Apple is complaining about the use of

if case SFAuthenticationError.canceledLogin = err {

@LinusU
Copy link
Owner

LinusU commented Oct 30, 2022

@ish2028 hmm, interesting. Do you think it could be fixed with something like:

    if #available(iOS 12, *) {
        if case ASWebAuthenticationSessionError.canceledLogin = err {
            result(FlutterError(code: "CANCELED", message: "User canceled login", details: nil))
            return
        }
-   }
-     
-   if #available(iOS 11, *) {
+   } else if #available(iOS 11, *) {
        if case SFAuthenticationError.canceledLogin = err {
            result(FlutterError(code: "CANCELED", message: "User canceled login", details: nil))
            return
        }
    }

@ish2028
Copy link

ish2028 commented Nov 18, 2022

@LinusU potentially, but I was able to get my app approved after submitting another build with changes to my project source code. It was hit or miss with this issue.

@LinusU
Copy link
Owner

LinusU commented Nov 18, 2022

Okay, if anyone having troubles could try out the above change, that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants