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

后端 未结 13 1245
有刺的猬
有刺的猬 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:35

    I encountered this issue when copying my project from one mac to another. The solution for me:

    assuming your files are grouped (in folder)

    1. from xcode open the group in file inspector

    2. The group will probably be missing the absolute path.

    3. press the little icon nearby to pick the folder to associate the group with.

    4. restart xcode to see the changes.

提交回复
热议问题