move xcode project causes red text (missing files from project)

后端 未结 13 1262
有刺的猬
有刺的猬 2020-12-08 13:53

When I move iphone project directory to a new path. There are some red texts indicate the missing files from the project source codes. How to avoid these?

13条回答
  •  爱一瞬间的悲伤
    2020-12-08 14:31

    This worked on a Pod project.

    • go into finder and project.
    • right click on your project .xcworkspace and click show package contents
    • right click on contents.xcworkspacedata and open with textEdit then make sure file path is correct. If project has been moved this can change

    I also did this below but now sure if you need it

    Quit XCode.

    rm -rf project.xcworkspace/xcuserdata/*

    Restart XCode and reopen project.

提交回复
热议问题