gpt4 book ai didi

swift - 在系统符号集中找不到名为 'xxx' 的符号

转载 作者:行者123 更新时间:2023-12-05 03:47:22 25 4
gpt4 key购买 nike

编辑:我更新了标题和问题,使其更具体。

我无法让我的应用程序在 14.2 上运行,它在 14.1 上运行没有问题。

应用程序“成功”加载,但我在模拟器和物理设备上都留下了空白屏幕(假设这是加载屏幕)。我在 14.2 上收到以下错误:

2020-11-17 12:38:38.090885+0000 TestApp[5191:233822] [framework] CoreUI: -[CUICatalog namedVectorGlyphWithName:scaleFactor:deviceIdiom:layoutDirection:glyphSize:glyphWeight:glyphPointSize:appearanceName:] 'triangle.fill' called with scaleFactor == 2.000000 glyphPointSize == 0.000000 at '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/CoreGlyphs.bundle/Assets.car'
2020-11-17 12:38:38.091306+0000 TestApp[5191:233822] [SwiftUI] No symbol named 'triangle.fill' found in system symbol set

我不确定为什么它会声明 No symbol named 'triangle.fill' 因为这是一个有效的 SF Symbols 图标。

真的很感激任何指导吗?

最佳答案

Xcode 14. 我在 Swift UI 中设置图像时遇到了同样的问题。我错误地用 systemName 提供了图像名称。我正在从 Assets 加载图像。

Image(systemName: "magazine-front-cover") //use only to load system image

代替这个

Image("magazine-front-cover") //use to load Asset image

关于swift - 在系统符号集中找不到名为 'xxx' 的符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64875592/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com