Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objective c-Symbolication issue Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 60

Tags:

Error shown in the terminal

:Resources myDirectory$ ./symbolicatecrash /foldername/myapp_2014-04-02-130024_Review-Machine.crash /foldername/myapp.app.dSYM  Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 60. 

I was trying to symbolicate my app but this error is shown.I have read many of the tutorials about symbolication and gone through the way.Even someone had this same issue and the solution i have tried out ie,creating a new folder and adding the .app,.dSYM and crash files.

The foldername in the error is the new folder i have created.

But i still get this error.Is this way wrong?? I have even tried by symbolicating through Xcode by adding to Organiser but didn't work!!!!1

Anybody has any idea what is the problem here???Please help i am new to this..

like image 512
Piya Avatar asked Apr 09 '14 08:04

Piya


2 Answers

add as a first line of your script that runs symbolicatecrash script:

export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer

By the way, you've copied symbolicatecrash script to some folder from it's initial location?

like image 109
Andrei Shender Avatar answered Oct 02 '22 09:10

Andrei Shender


Follow two steps to find and export missing DEVELOPER_DIR

  • Output of xcode-select --print-path on terminal is the value of DEVELOPER_DIR, something like, /Applications/Xcode.app/Contents/Developer
  • Run the following command in the Terminal app, or insert into ~/.bashrc if using Bash:
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
like image 21
DawnSong Avatar answered Oct 02 '22 08:10

DawnSong