Xcode shows old, deleted xib files

后端 未结 13 1215
南旧
南旧 2021-01-17 09:22

I\'ve searched all over and haven\'t found any help...

I built a small test app with two UIViewControllers and their corresponding xibs. T

相关标签:
13条回答
  • 2021-01-17 10:13

    Try deleting the app from the simulator (hold down on the app's icon to get to jiggle mode, then click the X by the app) and from your device. Then let Xcode reinstall it.

    0 讨论(0)
  • 2021-01-17 10:13

    Just an assumption, not sure if that really caused it: I finished a XIB that worked fine in the simulator and on an actual device. I then changed it to be localised in Xcode 4.5.1. The changes I did after that were not synced to the device until I manually deleted the app from the device and reinstalled via Xcode.

    0 讨论(0)
  • 2021-01-17 10:18

    Deleted derived data, cleaned project and build. Old xib was magically removed. :D

    0 讨论(0)
  • 2021-01-17 10:20

    I know steve has found a work around but the problem is not in the XIB files at all. Xcode does not update the YouApplication-info.plist file to

    If you open it up you will see the line: Main nib file base name. You must change the value to reflect your desired NIB file name

    0 讨论(0)
  • 2021-01-17 10:21

    I ended up recreating the xibs from scratch and that worked. Very frustrating.

    0 讨论(0)
  • 2021-01-17 10:24

    Just modify your XIB files a bit, then save them, xCode will detect a modification (last modified date in the file system) then load the xib from its actual path, and not from a cache-path :P

    0 讨论(0)
提交回复
热议问题