Synchronization issues between Cursor and Xcode

I’m writing Swift code in Cursor while Xcode is open. When I make changes in Cursor and try to build in Xcode, it doesn’t recognize the changes. Why is this happening and how can I fix it?

Hi, I’m having similar issues. Just started using xcode/cursor together. If i create new files in cursor, they appear in the project folder, but you can’t see them in the xcode project pane. So if you Build, it doesn’t work as the files are not matching the changes in cursor…

i’ve tried loads of ways to get it working but it just doesn’t :frowning:

Hey, give this guide a go and let us know how you get on!

2 Likes

while this article is great in solving the main issue, but it’s still limited as the author said at the end:
“Currently, my script only handles files in the root directory, which can be a bit limiting for larger projects. I am looking into improving this to handle more complex folder structures.
Feel free to tweak things as you need, and happy cursoring!”

Hope if Cursor natively support the sync issue between XCode and Cursor IDE, so when i add files using the Composer it reflects directly in XCode project.

This article shows how to convert projects created before XCode 16 to support Folders instead of Groups which might solve the issue, and for newer projects created using XCode 16 there is nothing to do: