"Run destination iOS Device is not valid" for iPod Touch running 3.1.3 with XCode 4
Asked Answered
C

2

10

I'm trying to test my application against a friend's old iPod touch running iOS 3.1.3.

I have XCode 4 and receive this error message when trying to run the application:

The run destination iOS Device is not valid for Running the scheme 'MyApp'.

The scheme 'MyApp' contains no buildables that can be built for the architectures supported by the run destination iOS Device. Make sure your targets build for architectures compatible with the run destination iOS Device.

I have set the deployment target to iOS 3.1.3. What else do I need to do in XCode 4 to build and test the app on this old iPod touch?

I am using the "standard" build architecture, not optimised.

Calcar answered 21/9, 2011 at 14:24 Comment(1)
Is the device provisioned for development?Podesta
C
16

I solved this by Autocreating schemes (Scheme > Manage schemes > Autocreate schemes) and then selecting the iPod Touch instead of "iOS Device" which had appeared in the schemes. D'oh!

Calcar answered 21/9, 2011 at 14:30 Comment(2)
Worked for me, although everything was set correctly (I did not have to choose the device, just had to press "Autocreate schemes").Sawtelle
This answer also works for most of us: https://mcmap.net/q/187065/-quot-the-run-destination-ios-device-is-not-valid-for-running-the-scheme-quotTerbecki
M
3

In my Target->General, I selected Device "iPad" and was trying to run in an iPhone simulator. I just changed the Device option to universal (which was alright for me) and then run again. It solved my problem.

Macaw answered 20/1, 2014 at 11:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.