How to remove reference of file Xcode?

前端 未结 6 2494
一整个雨季
一整个雨季 2021-02-20 09:34

I had removed some files from my iOS project a while back and thought they had been completely deleted. After a long time I created another class which unfortunately had the sam

6条回答
  •  余生分开走
    2021-02-20 10:01

    After removing a subproject, the framework was always referenced in my code. To remove this framework I had to do these steps:

    • remove subproject (reference)
    • clean project
    • close xcode
    • remove all derived and cached data with this script run in applescript tool :

      tell application "Terminal"
          do script "rm -frd ~/Library/Developer/Xcode/DerivedData/*" 
          do script "rm -frd ~/Library/Caches/com.apple.dt.Xcode/*"
      end tell
      

提交回复
热议问题