Can’t run UITest on iphone 4s simulator with xcode 9

i0S Swift Issue

Question or problem in the Swift programming language:

Project can build properly on iphone 4s simulator but trying to run UITest on it gives me the error :

Can’t seem to figure out the root cause for this, tests are running properly on every other simulator.

Any thoughts?

How to solve the problem:

I have solved this problem setting “iOS Deployment Target” of the UITest target to iOS 9.0. It was created with 11.1 value by Xcode.

UITest target Build Settings

Hope this helps!