简体   繁体   English

清洁 iOS 模拟器 / XCode

[英]Clean iOS Simulator / XCode

So I've been having trouble with laying out some things in IB.所以我在 IB 中布置一些东西时遇到了麻烦。 I deleted my old.xib completely, and dropped in a new one.我完全删除了我的 old.xib,并放入了一个新的。 To make sure everything was clean, all I did was add a label at the bottom.为了确保一切都干净,我所做的只是在底部添加一个 label。 I run my project, and it still runs the old project in the simulator to the last state of my.xib before I deleted it.我运行我的项目,它仍然将模拟器中的旧项目运行到my.xib的最后一个state,然后再删除它。 I tried the reset settings in the iOS simulator as well as cleaning my XCode project, and then rebuilding.我尝试了 iOS 模拟器中的重置设置以及清理我的 XCode 项目,然后重建。 I still get the same.xib.我仍然得到相同的.xib。 Any thoughts?有什么想法吗? Thanks.谢谢。

Remove the app from the simulator and delete with finder the directory of your app in Library > Developer > Xcode > DerivedData.从模拟器中删除应用程序并使用查找器在 Library > Developer > Xcode > DerivedData 中删除应用程序的目录。

Looks like you've done most steps in the XCode voodoo dance:看起来你已经完成了 XCode 巫毒舞中的大部分步骤:

  1. Clean干净的
  2. Quit Xcode退出 Xcode
  3. Delete 'build' folder删除“构建”文件夹
  4. Restart Xcode重启Xcode
  5. Re-build重建

Give it a shot, with deleting the build folder.试一试,删除构建文件夹。

Have you also checked that your new.xib is configured for the correct build target?您是否还检查过您的 new.xib 是否针对正确的构建目标进行了配置?

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

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