Nirma
Nirma

Reputation: 5790

Instruments / UI Automation is selecting the wrong target to run

I have an iPhone app that I am writing and it has 2 targets for two different builds of the app target 'A' and 'B'. I selected to build target A and when I build on the device or the simulator it properly builds and runs target 'A'. When in instruments (UI Automation) I select target 'A' but it builds and runs the app as target 'B'.

Any idea why this is happening? I selected the proper app but the other one is running instead.

Upvotes: 1

Views: 346

Answers (1)

quellish
quellish

Reputation: 21244

This is controlled by your project's scheme. Make sure each target has it's own scheme, and edit the "Profile" portion of the scheme appropriately for each target.

Upvotes: 1

Related Questions