I changed the name of my username and home folder for my Mac and now when I try building a new project I get an error during the compiling process. How would I correct this?
I already cleaned the build folder
:0: error: PCH was compiled with module cache path '/Users/edgarmartinez/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2Y7VT4EKQOHHI', but the path is currently '/Users/hannibalmartinez/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2Y7VT4EKQOHHI'
:0: error: missing required module 'SwiftShims'
Deleting the build
folder worked for me.
I found that changing the derived folder name like alyoshak mentioned in the answer I have linked to worked. If you go Xcode Preferences->Locations then change "DerivedData" to "DerivedData2" and switch the dropdown to relative that should make a new folder and then when you hit build it should fix your issue. https://stackoverflow.com/a/34188668
When i move the project ABAdressbook
to another directory, I got the following error:
PCH was compiled with module cache path
'/Users/guo/Desktop/Guo/ABAdressbook/DerivedData/ModuleCache.noindex/3D6110VGP95KX'
, but the path is currently
'/Users/guo/Documents/Projects/ABAdressbook/DerivedData/ModuleCache.noindex/3D6110VGP95KX'
Its a bit different form @Hannibal but all look like the file path is the key.
As my error point to DerivedData, so i delete this folder and rebuild it. This error disappeared.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With