Xcode- Deleted images appear in simulator

前端 未结 8 1796
礼貌的吻别
礼貌的吻别 2020-12-14 10:05

Mac OS X Lion v10.7.2 Xcode v4.2.1 Build 4D502 gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Th

相关标签:
8条回答
  • 2020-12-14 10:36

    After I did the "remove fromfolder"/"Reset content and setting"/remove app from simulator", I still had an old image hanging around in the simulator. Then I did a "Project>clean". Then the detailViewController.xib file disappeared from the folder. It is still present in XCode, but can not be found anymore when running the app in the simulator, cousing a crash. What is the problem here?

    0 讨论(0)
  • 2020-12-14 10:37

    I had this issue as well. Deleting the app from the simulator (In the simulator do Hardware -> Home, click + hold on app icon till icons jiggle, click the x just like you would do on a device). Running again used the correct images.

    0 讨论(0)
  • 2020-12-14 10:44

    I had to

    1) Delete the images from the folders.

    2) Delete the app from the simulator.

    3) Clean.

    4) Stop the simulator and restart.

    Only when I had done each of these could I get rid of old resources

    0 讨论(0)
  • 2020-12-14 10:48

    I had the same thing when I was adding transparent background to an image that was already part of the project.

    What worked:

    1) Delete app from Simulator (long press and hit X).

    2) Also I had to remove old image files from project and then reload the new transparent background images into the project.

    Also hit Project > Clean multiple times.

    0 讨论(0)
  • 2020-12-14 10:48

    I had the same. Very strange because the simulator displayed the no longer existing images and the development-phone displayed the correct images.

    I had already removed them from the folder. And deleted them from the simulator. For me a Product > Clean did the trick.

    0 讨论(0)
  • 2020-12-14 10:49

    Running sudo rm -rf ~/Library/Application\ Support/iPhone\ Simulator/7.*/Applications fixed the problem for me. You might have to change the 7, depending on which version you'll have in ~/Library/Application Support/iPhone Simulator

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