xcode - 非公开 API 使用 Flutter.framework/Flutter : _kCTFontOpticalSizeAttribute error on upload of flutter app

标签 xcode flutter dart

在过去的两天里,我一直在尝试将我的应用程序提交到 App Store。我收到以下消息:

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/

这是我到目前为止所做的:

a)我已经搜索了我的代码以获取对字体大小的任何引用 - 我有一些是常量 - 我将常量名称更改为:
 k_fontSizeMyName

b) 我尝试下载最新的flutter sdk版本
c) 我重建了我的整个钥匙串(keychain)。

我现在好绝望。我累了。
我该怎么办?

互联网上没有提到这个错误。

最佳答案

几分钟前,我从 App Store 团队多次收到相同的消息。

我认为问题出在 Flutter SDK 版本上……!

一开始我用的是最新版本(Flutter SDK version 1.12.3-pre.26),后来把Flutter SDK版本改成'v1.9.1+hotfix.3',问题就解决了!!!

我通过以下说明解决了这个问题:

  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!!!!!! 🤩

关于xcode - 非公开 API 使用 Flutter.framework/Flutter : _kCTFontOpticalSizeAttribute error on upload of flutter app,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58894987/

相关文章:

objective-c - 将 NSImage 转换为 NSData

ios - OS X Server - 机器人无法从存储库获取源代码

firebase - Flutter Firestore 如何从聊天对话中获取最后一条消息?

dart - 在 flutter 中如何让当前用户从firebase维护的缓存中登录以获取电子邮件和密码的登录类型

intellij-idea - 在IntelliJ IDEA中调试Dart

swift - 使用 Alamofire 4.0 和 Swfit 3 解析字典数组

iOS7 jpg解压问题

Flutter 检查 Uint8List 是否有效 Image

Flutter app/build.gradle 错误但应用程序有效

google-app-engine - 如何在没有 boot2docker 的情况下使用 gcloud 预览应用程序运行?