The Contents.json describing the image set "BG_Email_Textfield.imageset" must start with a top level dictionary.
how we could solve this ?
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" : "BodySelfieTabbarItem@2x.png"
}
],
"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" : "BodySelfieTabbarItem@2x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode",
"template-rendering-intent" : "original"
}
}