- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
通过 XCode 8 构建应用程序并在 Mavericks (OSX 10.9) 上运行应用程序时,我收到崩溃并出现以下错误:
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)
最佳答案
我创建了一个新图标并手动修改了 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"
}
}
关于macos - tokenCount < maxCountIncludingZeroTerminator 断言(osx 10.9),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39616332/
我有以下实体字段: /** * @Assert\Regex( * pattern = "/^d+\.(jpg|png|gif)$/", * htmlPattern = "/^d+\.(j
我有一个显示查询结果的表。 我使用这个检查表包含结果: cy.get("table", {timeout: 60000}).find("tr[data-index]").should("have.le
void (assert)(int e) { assert(e); } 这里是如何工作的? 最佳答案 void (assert)(int e) 相当于 void assert(int) 为什么
大家好,我的第一次测试遇到了一些问题 我正在写这个 fragment ,但我一直遇到这个问题: java.lang.AssertionError at org.junit.Assert.fail(As
从表中,我获取字符串列表,并想检查当 val!= "A"时,表列表中是否存在字符串“x”: for (int i = 0; i list = new ArrayList(); for(int i=0
我想在现有代码中为 VHDL 断言操作添加一个错误计数器。基本上,我的代码如下所示: assert data = good_data report "Bad data" severity er
我有一个无法处理的问题,所以我想也许你可以帮助我。基本上我有一个函数,它接收 char* 作为参数并对其执行一些操作(我已经检查了这些步骤/函数,它们工作得很好)。如果函数中给出的 char* 是“”
我有一些代码用于检查输入日期是否正确。只需检查是否不超过 12 个月,给定月份中的日期是否正确,并且还应该考虑闰年(因此,基本上是正常的日期检查)。唯一不合适的是年份不应低于 2000。如果日期无效,
我有一个关于 Cypress 断言的问题,最近才开始使用这个测试平台,但是当 URL 返回一个随机数时卡住了,如下所示。 /Geocortex/Essentials/REST/sites/SITE?f
我有一个 Python mock对象,我想断言是否设置了该对象的任何属性。 我不相信PropertyMock将适用于我的目的,因为我必须知道是否设置了任何属性,而不是特定属性。 它也不像我可以模拟模拟
考虑这个简单的基类 Foo 有一个函数 foo 调用一个纯虚函数 foo_,用 Doxygen 记录: class Foo { public: /** \brief This functi
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and th
我在这段代码中执行 malloc 时遇到问题, /*function starts*/ if(NULL==(partial_results=(bignum_t**)malloc(sizeof
大家好,我想知道如何将整个代码块放入一个断言中? 例如,我有一个数组,我想对数组的每个值进行断言。这是我的代码的样子: for (int value : values) { assert Wi
这不是我的作业——我只是在练习。我似乎无法完全理解这个断言概念。 1) Determine the pre-condition for x that guarantees the post-condi
是否可以在带有时间戳的断言失败时记录信息 例如 int a = 10 assert( a > 100 ); 那么它将失败并像时间戳一样输出 2013-12-02 , 17:00:05 assert f
由于我们公司不使用单元测试,所以我正在自学对自己的代码进行单元测试。我正在使用标准的 .net 测试框架进行一些非常基本的单元测试。 我的一个方法返回一个 IEnumerable我想测试它的输出。所以
我有一个如下所示的对象数组,并且只想针对数组中的某些字段进行断言。 对象数组 - var a = [{"key":"key2","value":"value2","updatedBy":"name1"
我正在尝试编写一个 PSL 断言来检查输入断言的数量是否与输出断言的数量相匹配。 例如: . 在输入上任何时候都可能发生任何事情,输出也可以在任何时候断言。确切时间未知,也不重要。我要验证的是没有信息
我想在Cypress中做一个断言如下: cy.get(a).should('be.visible').or(()=>{ cy.get(b).should('be.visible'); });
我是一名优秀的程序员,十分优秀!