Search code examples
iosswiftios-simulatorxctestxcode9

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


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

The bundle “MyappUITests” couldn’t be loaded because it doesn’t contain a version for the current architecture. Try installing a universal version of the bundle.

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

Any thoughts?


Solution

  • 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