0

After relocating some files in an Xcode Project (moving some files into different folders without editing the files), Xcode can't archive the product anymore. Xcode was able to compile, build and archive the project before I restructured the project. Now Xcode can compile and build the project but it can't archive the project, saying that it can't find specific files and objects in scope, which are inside the files I relocated.

When I click on the missing objects in the navigator and i'm taken to the object-reference, the error disappears. Only to show up again upon archiving.

enter image description here

It seems like Xcode failed to update the paths of the files upon relocating. How would I be able to manually edit that?

Thanks in advance!

P.S: I use git and GitHub incase that matters.

HangarRash
  • 7,314
  • 5
  • 5
  • 32
EddiKh
  • 36
  • 1
  • 3
  • opening the folders where they are at present moment and drag and drop to the designated `group`. That should be enough – Joke coder Jan 12 '23 at 16:10
  • @Jokecoder Thank you for the suggestion. I ended up removing the complete directory and re-adding it from Finder. – EddiKh Jan 16 '23 at 11:20

1 Answers1

0

The problem was fixed by removing all files, and re-adding them from Finder by dragging and dropping them onto the Project Navigator.

I did run across the following issue afterwards: Xcode 10 Error: Multiple commands produce

Which was easily solved by following the solution in that post.

Credits to @Jokecoder for suggesting the solution.

EddiKh
  • 36
  • 1
  • 3