简体   繁体   中英

Clean iOS Simulator / XCode

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 project 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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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