I tried both ways - on Xcode 9.3 (9E145)
For each XIB, I added the following goal.

On Target → General → Deploy Info-> Change Target

We cleaned the project and built it into the device again. It worked!
AG Apr 30 '18 at 8:17 2018-04-30 08:17
source share