Xcode performance issues on Catalina

I've been having serious performance issues developing iOS apps since moving to Catalina.

Sometimes Xcode can take over a minute to open a small (under 4K lines) test project. Other times Xcode freezes with a spinning cursor before resuming on its own. In general it feels significantly slower than Mojave on the same MacBook Pro.

Now I'm wondering if this is a security/access issue caused by how I've configured my machine.

Instead of having everything in a single ~/Documents folder, my work files are spread across three APFS partitions:
Code Block
/Volumes/Catalina/Users/Shared
/Volumes/Mojave/Users/Shared
/Volumes/Work

Do I need to give Xcode extra access to these folders?

In 'System Preferences/Security & Privacy/Privacy/Files and Folders', only 'Documents' is listed under Xcode. Should I add these folders to that list? Or is there some other way/place to add them?

In general, has anyone had similar issues with Xcode on Catalina?

Specs:
  • MacBook Pro (13-inch, 2019, Four Thunderbolt 3 ports)

  • 2.8 GHz Quad-Core Intel Core i7

  • 16 GB RAM, 1 TB internal SSD

also an external 2 TB USB disk drive for backups.

using Xcode 11.6, Xcode 11.7, Xcode 12.0 GM