Cocoapods link_with method may cause this problem!
I was getting the same error in xcode 7.2 - not a single number of simulators or dropping devices seemed to clear it. After a complete overhaul of my goals, UITest, although everything was fine. After spending a lot of time in the git diff array of the .pbxproj file, I found a solution for my project. I'm not sure if he addresses the root cause for everyone who sees this error, but it definitely clears me.
From the project information below, “Deployment Goal” in “Configurations” will list all the possible configurations for your application. Expand the configuration you are trying to run and you will see a list of all your goals. In my case, cocoapods automatically added the basic configuration for the UITest target:

Set none to the drop-down list.
Then select your UITest target in the menu on the left, then build phases you will need to remove check pods manifest.lock link binary with libraries emebd pods frameworks and copy pods resources .
Finally, go to your pod file and check if your goal or goals are mentioned in UITest. In my case, I pointed at the top of my podfile:
platform :ios, '8.4' use_frameworks! link_with 'My App', 'My UITesting Target' pod 'A Pod', '~> 1.0'
Instead, the podfile should display specific dependencies for each target:
platform :ios, '8.4' use_frameworks! target 'My App', :exclusive => true do pod 'A Pod I want to use in my app', '~> 1.0' end
Assuming that you are not using any containers in your UITests, the goal should be created again without errors and tests will be executed!
My understanding of the root of this problem is that each UITest target creates two separate packages: one for the application and one for the UITest controller. Unfortunately, the cocoapods link_with logic changes all of the specified goals to expect pods.framework in its bundle. Build phase scripts add the framework to the set of applications, but not to the set of UITest controllers, so when you run tests that appear to be missing from the UITest packages, and xcode aborts the installation.
If you used containers in your UITests, you must specify them in the same way:
target 'My UITesting Target', :exclusive => true do pod 'Another Pod I want only for UITesting', '~> 1.0' end
And when you start pod install everything should communicate correctly.