gpt4 book ai didi

macos - tokenCount < maxCountIncludingZeroTerminator 断言(osx 10.9)

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

通过 XCode 8 构建应用程序并在 Mavericks (OSX 10.9) 上运行应用程序时,我收到崩溃并出现以下错误:
Crash stack
Apple 确实在 XCode 8 Release notes 中特别提到了这一点。具有以下详细信息:

Asset Catalogs

Applications compiled with Xcode 8 and a deploymenttarget of iOS 7 may crash at launch with the following assertion:

Assertion failed: (maxCountIncludingZeroTerminator > 0 && tokenCount <maxCountIncludingZeroTerminator), function CUIRenditionKeyCopy, file/SourceCache/CoreUI/CoreUI-232.4/CoreTheme/ThemeStorage/CUIThemeRendition.m,line 185.

To work around this issue, update the deployment target toiOS 8.0 or higher, or add a single image to the asset catalog that hasat least five attributes specified across the image set, such as:

  • scale (1x, 2x, 3x)
  • idiom (add iPad,iPhone, and a universal asset)
  • direction (left to right, right to left)
  • width/height class (any & compact, and so forth)
  • memory (add a 1 GB asset)
  • graphics (add a Metal1v2 asset)

It is not necessary to use the image in your code or to addall of these attributes. (27852391)


我尝试在项目中添加一些 3 倍缩放的图像,但是我仍然收到相同的异常。根据文档,我只需要添加其中一个属性来解决问题,但是它似乎对我没有用。有没有其他人遇到过这个?有没有人有任何解决方案?

最佳答案

我创建了一个新图标并手动修改了 json 文件以包含以下内容:

{
"images" : [
{
"idiom" : "universal",
"filename" : "apple-17.png",
"language-direction" : "right-to-left",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "apple-18.png",
"graphics-feature-set" : "metal1v2",
"language-direction" : "right-to-left",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "apple-39.png",
"language-direction" : "right-to-left",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "apple-38.png",
"graphics-feature-set" : "metal1v2",
"language-direction" : "right-to-left",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "apple-48.png",
"language-direction" : "right-to-left",
"scale" : "3x"
},
{
"idiom" : "universal",
"filename" : "apple-49.png",
"graphics-feature-set" : "metal1v2",
"language-direction" : "right-to-left",
"scale" : "3x"
},
{
"idiom" : "universal",
"filename" : "apple-19.png",
"language-direction" : "right-to-left",
"height-class" : "regular",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "apple-20.png",
"graphics-feature-set" : "metal1v2",
"language-direction" : "right-to-left",
"height-class" : "regular",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "apple-37.png",
"language-direction" : "right-to-left",
"height-class" : "regular",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "apple-36.png",
"graphics-feature-set" : "metal1v2",
"language-direction" : "right-to-left",
"height-class" : "regular",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "apple-50.png",
"language-direction" : "right-to-left",
"height-class" : "regular",
"scale" : "3x"
},
{
"idiom" : "universal",
"filename" : "apple-51.png",
"graphics-feature-set" : "metal1v2",
"language-direction" : "right-to-left",
"height-class" : "regular",
"scale" : "3x"
},
{
"idiom" : "universal",
"filename" : "apple-21.png",
"width-class" : "regular",
"language-direction" : "right-to-left",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "apple-22.png",
"width-class" : "regular",
"graphics-feature-set" : "metal1v2",
"language-direction" : "right-to-left",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "apple-35.png",
"width-class" : "regular",
"language-direction" : "right-to-left",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "apple-34.png",
"width-class" : "regular",
"graphics-feature-set" : "metal1v2",
"language-direction" : "right-to-left",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "apple-52.png",
"width-class" : "regular",
"language-direction" : "right-to-left",
"scale" : "3x"
},
{
"idiom" : "universal",
"filename" : "apple-53.png",
"width-class" : "regular",
"graphics-feature-set" : "metal1v2",
"language-direction" : "right-to-left",
"scale" : "3x"
},
{
"idiom" : "universal",
"filename" : "apple-23.png",
"width-class" : "regular",
"language-direction" : "right-to-left",
"height-class" : "regular",
"scale" : "1x"
},
{
"language-direction" : "right-to-left",
"graphics-feature-set" : "metal1v2",
"idiom" : "universal",
"width-class" : "regular",
"filename" : "apple-16.png",
"height-class" : "regular",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "apple-33.png",
"width-class" : "regular",
"language-direction" : "right-to-left",
"height-class" : "regular",
"scale" : "2x"
},
{
"language-direction" : "right-to-left",
"graphics-feature-set" : "metal1v2",
"idiom" : "universal",
"width-class" : "regular",
"filename" : "apple-32.png",
"height-class" : "regular",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "apple-54.png",
"width-class" : "regular",
"language-direction" : "right-to-left",
"height-class" : "regular",
"scale" : "3x"
},
{
"language-direction" : "right-to-left",
"graphics-feature-set" : "metal1v2",
"idiom" : "universal",
"width-class" : "regular",
"filename" : "apple-55.png",
"height-class" : "regular",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

我实际上并没有在任何地方使用这个图标。这样就解决了问题。我已上传图标 here如果有人遇到这个问题并需要它。

关于macos - tokenCount < maxCountIncludingZeroTerminator 断言(osx 10.9),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39616332/

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