This is known issue in Xcode, I met same in 9.2. I always clear the derrived data and clean project/ rebuild and it works.