Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Xcode does not see code changes in local Swift packages (autocomplete wrong, errors shown, but still compiles)

Hey,

I've been having a lot of problems with Xcode 16 not seeing changes made to code in local Swift packages (the packages are inside the root directory of the project).

Whenever I make any change like renaming a variable or type, or adding new methods or whatever, autocomplete doesn't see those changes and when I type in that new type/variable manually it gives me an error. However, building the project still works fine, even with the errors never going away.

The only way for it to notice the code changes is to clean the project and build it again which takes a long time.

At first, I thought this was connected to the new "Explicitly built modules" feature in Xcode 16, but I turned it off and it still happens.

Any ideas what I can try? I'm on the latest Xcode version, but this problem has been happening since Xcode 16 originally came out.

Thanks! Dennis

Xcode does not see code changes in local Swift packages (autocomplete wrong, errors shown, but still compiles)
 
 
Q