Xcode 4.6.2 error: "cannot work at selected destination"

I have had this problem for a couple of weeks now. Suddenly this happened to my project, and I could not fix it. This is a basic tab app, and I barely started writing heavy encoding on it. Running xcode 4.6.2 (also tested on 4.6 and 4.6.1).

The actual error says: “Cannot start the selected destination. The selected destination does not support the architecture for which the selected software is built. Switch to the destination that supports this architecture to start the selected software.

Thanks in advance.

+2
xcode
Apr 16 '13 at 2:44 on
source share
1 answer

Well here is my new fix: for me (for some reason) the highlighted line below has changed:

info.plist

I changed ${EXECUTABLE_NAME} to something else. Changing it right away did not fix the problem: I had to first click the + icon to add a new line and then delete the new line.

My application now works fine




OLD FIX:

OK, so yes, that’s true, there are other questions like this. They helped me figure out another (and unfamiliar) solution.

  • I right-click on the .xcodeproj file and select "Show Package Contents"
  • Then I opened "project.pbxproj"
  • I copied all the text from it to another file, deleted all the text and saved
  • This “crashed” my Xcode project, which I accidentally left open in Xcode.
  • I closed my project and then inserted the original contents of "project.pbxproj" back into "project.pbxproj"
  • I saved the project.pbxproj file and closed it
  • After opening my Xcode project again, I was able to run it on my device!

For me, it does not make sense why it worked because I did not modify the files ... But it is, so cheers!

PS Make a backup copy of your project in advance, just in case.

EDIT : The mine stopped working again and I cannot use the above method to fix it ...

+5
Apr 28 '13 at 5:17
source share



All Articles