Non-public API usage Flutter.framework/Flutter: _kCTFontOpticalSizeAttribute error on upload of flutter app

flutter xcode check failed vm must be able to initialize the vm
could not setup vm data to bootstrap the vm from
flutter vm snapshot must be valid
flutter verbose 3 shell cc 212 check failed vm must be able to initialize the vm
flutter ios provisioning profile
https github com flutter flutter issues 24641
flutter ios upload
flutter ios testflight

I've spent the last two days trying to submit my app to the App Store. I get the message below:

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

Here's what Ive done so far:

a) I've scoured my code for any reference to Font Sizes - I had some that were constants - I changed the constant name to:

 k_fontSizeMyName

b) I tried to download the latest flutter sdk version c) I rebuilt my entire keychain.

Im so desperate right now. im tired. What do I do?

the internet has no mention of this bug.

I've got the same message several times from the App Store Team a few minutes ago.

I think the problem was the Flutter SDK version...!

I used to use the latest version(Flutter SDK version 1.12.3-pre.26) at first but changed the Flutter SDK version to 'v1.9.1+hotfix.3' and the problem is resolved!!!

I solved the problem with the following instruction below:

  1. Switching Flutter SDK version to 'v1.9.1+hotfix.3' with the command:

    flutter version v1.9.1+hotfix.3

  2. Archive and upload again ...

  3. Problem Solved!!!!!! 🤩

iOS App Store submission rejection - Non-public API usage , Flutter placeholder issue for underlying bug in Skia API usage - The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _kCTFontOpti rejection - Non-public API usage in Skia _kCTFontOpticalSizeAttribute iOS App Please correct the following issues, then upload again. ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _kCTFontOpticalSizeAttribute. 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.

This may be a recently-introduced Skia regression.

The code was included in Flutter v1.12.3, so v1.12.2 on the dev channel should work.

Flutter's Bad Build wiki page will be updated when there is a fix for this issue.

Update: This has been resolved in Flutter v1.12.5.

flutter build ios --release may use a debug Flutter , When I submit my application to Testflight I get the following error from Apple. ITMS-90338: Non-public API usage - The app references non-public symbols in flutter build ios --release may use a debug Flutter.framework by mistake # 37850. Open Select the Archive you uploaded to Apple in Finder. ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _ptrace. 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.

Since there have been a lot of problems with flutter recently(when I tried the fix mentioned in another answer I different error) I though I should include this https://github.com/flutter/flutter/releases

Just type flutter version [version code]

Error while uploading Flutter App to App Store: Non-public API usage, itms-90338 non public api usage the app references non public symbols in frameworks/flutter framework flutter: _ptrace flutter apple flutter ios app publish flutter� ITMS-90338: Non-public API usage. The recommended solution for this: The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _ptrace. 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.

iOS App Store submission rejection, Flutter placeholder issue for underlying bug in Skia -- https://bugs.chromium.org/p /skia/issues/detail?id=9657. ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _kCTFontOpticalSizeAttribute. flutter/ Please correct the following issues, then upload again. ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _ptrace. 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.

flutter build ios --release may use a debug Flutter.framework by , When I submit my application to Testflight I get the following error from Apple. ITMS-90338: Non-public API usage - The app references non-public symbols in locale en-GB) • Flutter version 1.8.4-pre.104 at /Users/laibullle/flutter • Framework revision 61ede615c0 (2 Please correct the following issues, then upload again. ITMS-90338: Non-public API usage - The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _ptrace. 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.

Flutter/iOS App Store error message: ITMS-90338: Non-public API , Flutter/iOS App Store error message: ITMS-90338: Non-public API usage “ ITMS-90338: Non-public API usage” App Store Connect error message, it probably Please correct the following issues, then upload again. app references non-public symbols in Frameworks/Flutter.framework/Flutter: _ptrace. I meet it too! flutter doctor -v example flutter doctor -v [ ] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale zh-Hans-CN) • Flutter version 1.12.13+hotfix.5 at /Users/haoranliu/flutter • Framework revision 27321ebbad (6 days ago), 2019-12-10 18:15:01 -0800 • Engine revision 2994f7e1e6 • Dart version 2.7.0 [ ] Android toolchain - develop for Android

Comments
  • Unless you know that the latest stable channel version also has this bug you can simply switch to the stable channel with flutter channel stable and get notified when stable is updated instead of pinning yourself to a particular version on stable.
  • Wish I could give you extra upvotes for the tip about the Bad Builds wiki page which I had not known about - thank you!