Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to open executable - xcode

I'm getting this error...any idea how to solve it?

GenerateDSYMFile /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app.dSYM /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app/PBTest
    cd /Users/fmota/Documents/Developer/Protobuf/PBTest
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/usr/bin/dsymutil /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app/PBTest -o /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app.dSYM

error: unable to open executable '/Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app/PBTest'
like image 506
Filipe Mota Avatar asked Jan 05 '12 16:01

Filipe Mota


People also ask

Could not open workspace file at Xcode?

Close Xcode and restart you mac. Then open Xcode project again. It will work. Save this answer.

How do I open a Xcodeproj file on a Mac?

Click Open on the Welcome screen or File | Open from the main menu. Navigate to the desired . xcodeproj directory. Specify whether you want to open the project in a new window, or close the current project and reuse the existing window.

Where is executable Xcode stored?

The files are stored in the project directory; in Xcode, find the file you'd like to see where is, right-click it, and choose "Show in Finder".

How do I open Xcode on Mac?

Alternatively, typing “xcode-select — install” into the terminal works just as well. Before installing Xcode Command Line Tools, click “Get Xcode”; In order to install Xcode from the App Store, you'll need to first log-in through your Apple Id. If you haven't already created one, you can do so by clicking here.


2 Answers

In my case, I was trying to compile external library into my code and some of test c files in this library was added on "Compile Sources" on "Build Phases" tab. These files also had main() function which was causing it show "duplicate symbol" message. Once I removed these files from Compile Sources, project compiled successfully.

like image 123
sarabdeep singh Avatar answered Sep 28 '22 08:09

sarabdeep singh


I have also faced that problem. I have closed, restarted Xcode; deleted the application from device and reinstalled it again, then the problem has gone.
Make sure the library and project files is truly included if it is not include it shows in red color in this type of case some time it is in original folder and not in project so delete it and add it again.

like image 35
Manobala Avatar answered Sep 28 '22 10:09

Manobala