简体   繁体   English

Xcode旧标签栏图标突然出现

[英]Xcode old tab bar icons showing up unannounced

So in xcode I have a tab bar view controller with multiple tabs. 所以在xcode中,我有一个带有多个标签的标签栏视图控制器。 Each tab has an individual tab bar icon. 每个选项卡都有一个单独的选项卡栏图标。 A while back I made my own custom icons and added them to my tab bar view controller, but just till recently I decided they don't look fitting. 不久前,我制作了自己的自定义图标并将其添加到我的标签栏视图控制器中,但是直到最近我才确定它们看起来不合适。 So I replaced them with sharper looking icons. 因此,我用外观更清晰的图标代替了它们。 The problem is when I run my app, it shows the old icons for a couple seconds, then shows the new icons. 问题是当我运行我的应用程序时,它会显示旧图标几秒钟, 然后显示新图标。 I've done clean/build many times in a vain attempt to cease this problem. 我已经做了很多次清洁/构建工作,但都没有成功来终止此问题。

Problems of this sort are almost always caused by the old icons hanging around inside your build. 此类问题几乎总是由构建中悬挂的旧图标引起的。 First, make sure you've really deleted them from your project. 首先,请确保您确实从项目中删除了它们。 Then quit Xcode. 然后退出Xcode。 Finally, follow the instructions here: 最后,请按照以下说明进行操作:

How to Empty Caches and Clean All Targets Xcode 4 如何清空缓存并清理所有目标Xcode 4

Be sure to clean out both the DerivedData folder and the Simulator. 确保清除DerivedData文件夹和Simulator。 Now there is no trace of the old build and you should get a proper clean build next time. 现在没有任何旧版本的痕迹,下次您应该获得正确的干净版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM