I am seeing following error in AppCode every time I try to deploy my app to a connected device (an iPad):
xcodebuild: error: Was unable to find a destination matching the arguments to the -destination flag: The requested device could not be found because no available devices matched the request. Build failed with 2 errors and 0 warnings in 14 sec
I can build and deploy from XCode fine.
And I am sure AppCode can see the device, since it is listed in the dropdown (Yellow 11 is the device):
Additional Info: The project uses cocoapods XCode is version 5.1 AppCode is version 2.5.5 Deployment Target Setting in XCode is 7.0 Project is using SDK 7.1 iPad is on iOS 7.0.4
Things I have tried: - Deleting DerivedData folder's contents (via XCode's Organizer window) - Closing and Starting XCode and AppCode again - Disconnecting and reconnecting the device - Clean rebuild
Why I want to build via AppCode so bad? Because it is easier to debug and I know all the keyboard shortcuts there. Please help.
Following resolved the issue for me:
Somehow, after deleting and adding the device to organizer, AppCode was able to start running the app on the device again.