xcode 目标 c 符号问题错误:“DEVELOPER_DIR”未在 ./symbolicatecrash 第 60 行定义
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22956596/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Objective c-Symbolication issue Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 60
提问by Piya
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.
我试图对我的应用程序进行符号化,但显示了这个错误。我已经阅读了许多关于符号化的教程并完成了整个过程。即使有人遇到了同样的问题,我也尝试过解决方案,即创建一个新文件夹并添加.app、.dSYM 和崩溃文件。
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
但我仍然收到这个错误。这是错误的吗??我什至尝试通过添加到 Organizer 来通过 Xcode 进行符号化,但没有奏效!!!1
Anybody has any idea what is the problem here???Please help i am new to this..
有人知道这里有什么问题吗?请帮助我,我是新手。
回答by Andrei Shender
add as a first line of your script that runs symbolicatecrash script:
添加为运行符号崩溃脚本的脚本的第一行:
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
By the way, you've copied symbolicatecrash script to some folder from it's initial location?
顺便说一句,您是否已将symbolicatecrash 脚本从其初始位置复制到某个文件夹?
回答by DawnSong
Follow two steps to find and export missing DEVELOPER_DIR
按照两个步骤查找并导出丢失的 DEVELOPER_DIR
- Output of
xcode-select --print-path
on terminal is the value ofDEVELOPER_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
xcode-select --print-path
终端上的输出是 的值DEVELOPER_DIR
,例如,/Applications/Xcode.app/Contents/Developer
- 在终端应用程序中运行以下命令,
~/.bashrc
如果使用 Bash ,则插入:export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer