如何解决ImageAssest的编译时间

如何解决ImageAssest的编译时间

本文介绍了如何解决ImageAssest的编译时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

描述图像集"BG_Email_Textfield.imageset"的Contents.json必须以顶级词典开头.

The Contents.json describing the image set "BG_Email_Textfield.imageset" must start with a top level dictionary.

我们如何解决这个问题?

how we could solve this ?

推荐答案

这通常在合并冲突时发生,您可以在Finder中打开YourImageName.imageset文件夹并编辑Contents.json,删除代码冲突.

This often occurs when the merge conflicts, you can open the YourImageName.imageset folder in Finder and edit Contents.json, remove the code conflict.

就我而言,我会合并冲突文件,如下所示:

In my case, I merge conflicting files like this:

{
  "images" : [
    {
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x",
      "filename" : "[email protected]"
    }
  ],
  "info" : {
    "version" : 1,
<<<<<<< HEAD
    "author" : "xcode",
    "template-rendering-intent" : "original"
=======
    "author" : "xcode"
>>>>>>> f15823d967d53508370cfcbd708e15ee2fad328e
  }
}

在删除代码冲突后,如下所示:

After removing the code conflicts like this:

{
  "images" : [
    {
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x",
      "filename" : "[email protected]"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode",
    "template-rendering-intent" : "original"
  }
}

这篇关于如何解决ImageAssest的编译时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 12:03