Missing “Target Membership” panel in Xcode10

限于喜欢 提交于 2019-12-13 15:20:21

问题


I came over this Issue xcode 9 Could not load the image referenced from a nib in the bundle with identifier when I was playing around with Xcode 10.

No big deal, the solution is right in the linked topic, but unfortunately I don't have the 'Target Membership' Panel, when I select an Image.


回答1:


Your images are inside a folder reference, indicated by the fact that the folder is blue. That means that only the folder can have target membership. The images inside it just come along for the ride.

(It also means that your images are not going to end up at the top level of the app bundle, which is why your nibs can't find them. You would need to refer to that image in the nib as Bilder/würfel3.png in order for it to be found. And if you wanted to load it in code, it would be even more complicated.)



来源:https://stackoverflow.com/questions/52958090/missing-target-membership-panel-in-xcode10

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!