开发者

Clean iOS Simulator / XCode

开发者 https://www.devze.com 2023-03-10 16:54 出处:网络
So I\'ve been having trouble with laying out some things in IB.I deleted my old .xib completely, and dropped in a new one.To make sure everything was clean, all I did was add a label at the bottom.I r

So I've been having trouble with laying out some things in IB. I deleted my old .xib completely, and dropped in a new one. To make sure everything was clean, all I did was add a label at the bottom. I run my project, and it still runs the old p开发者_开发问答roject in the simulator to the last state of my .xib before I deleted it. I tried the reset settings in the iOS simulator as well as cleaning my XCode project, and then rebuilding. I still get the same .xib. Any thoughts? Thanks.


Remove the app from the simulator and delete with finder the directory of your app in Library > Developer > Xcode > DerivedData.


Looks like you've done most steps in the XCode voodoo dance:

  1. Clean
  2. Quit Xcode
  3. Delete 'build' folder
  4. Restart 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消