Xcode- Deleted images appear in simulator

前端 未结 8 1797
礼貌的吻别
礼貌的吻别 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:50

    I believe that since Lion, this has changed to '/Users/[user name]/Library/Application Support/iPhone Simulator/[version number]**'. Be careful however, the Library folder is hidden. To view it, open the Terminal and run this:

    defaults write com.apple.Finder AppleShowAllFiles YES
    
    0 讨论(0)
  • 2020-12-14 10:56

    Manually removing the build folder may help. Clean does not always do this properly, for reasons unknown. The build folder used to be in the project directory, but now (also) exists in ~/Library/Developer/Xcode/DerivedData/


    Solved by original poster:

    Oh wait I had a brainstorm because of your suggestion above, and from Terminal I used: find . -name 'myimage.png' 2> /dev/null and I found the secret hidden cache! It is in my user library here: ~/Library/Application Support/iPhone Simulator/4.3.2/Applications/ Just delete everything in the Applications directory. May also need to do this one as well: ~/Library/Application Support/iPhone Simulator/5.0/Applications/

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