Managed to remove the error: changed in xcode: settings -> locations -> Advanced -> Build location: Legacy.