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 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:
- Clean
- Quit Xcode
- Delete 'build' folder
- Restart Xcode
- 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?
精彩评论