Mac OS X存档(.app)在测试Mac机器上崩溃:EXC_BAD_INSTRUCTION [英] Mac OS X Archive (.app) crashed on test Mac machine: EXC_BAD_INSTRUCTION

查看:436
本文介绍了Mac OS X存档(.app)在测试Mac机器上崩溃:EXC_BAD_INSTRUCTION的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Mac应用程序,该计算机在开发机器上的机器上运行良好. 该项目有很多dylib文件,我必须使用来解决这些依赖关系

I am working on a Mac application, which is running fine on my machine which is a development machine. The project has quite a few dylib files, the dependancies for which I had to solve using

install_name_tool -change

我在上面的命令中使用了@executable_path.完成此操作后,当我将.app文件移动到测试环境中时,该程序在我的机器上运行正常.

I used @executable_path in the above command. After doing this, the program works fine on my machine, when I move the .app file to test environment it fails..

崩溃的线程:0调度队列:com.apple.main-thread

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

异常类型:EXC_BAD_INSTRUCTION(SIGILL) 异常代码:0x0000000000000001,0x0000000000000000

Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000

线程0崩溃::调度队列:com.apple.main-thread
0 libfreetype.6.dylib 0x001f736b FT_CMap_New + 105

1 libfreetype.6.dylib 0x0022d1a4 tt_face_build_cmaps + 516
2 libfreetype.6.dylib 0x00229f0a sfnt_load_face + 1424
3 libfreetype.6.dylib 0x00200cbe tt_face_init + 231
4 libfreetype.6.dylib 0x001f5fb4 open_face + 218
5 libfreetype.6.dylib 0x001f5bf1 FT_Open_Face + 528
6 libfreetype.6.dylib 0x001f59db FT_New_Face + 68

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libfreetype.6.dylib 0x001f736b FT_CMap_New + 105

1 libfreetype.6.dylib 0x0022d1a4 tt_face_build_cmaps + 516
2 libfreetype.6.dylib 0x00229f0a sfnt_load_face + 1424
3 libfreetype.6.dylib 0x00200cbe tt_face_init + 231
4 libfreetype.6.dylib 0x001f5fb4 open_face + 218
5 libfreetype.6.dylib 0x001f5bf1 FT_Open_Face + 528
6 libfreetype.6.dylib 0x001f59db FT_New_Face + 68

看看粗体字符,可以发现问题出在freetype dylib中.但是为什么会带来问题呢?我已经将.dylib文件包含在my_app.app/Contents/Frameworks/目录中.

Looking at the bold characters one can make out that the problem is in freetype dylib. But why is it giving problems? I have included the .dylib file in the my_app.app/Contents/Frameworks/ directory.

这是为什么导致问题的原因吗?

Is this why the problem is caused?

推荐答案

看到此错误是因为提供给freetype的字体位置不正确.

This error is seen because the location of the font supplied to freetype was incorrect.

客户端的计算机上没有提供的字体文件(ttf).

The client did not have the supplied font file (ttf) on his machine.

当我将ttf文件和分发包一起提供时,它已修复.!

When I supplied the ttf file along with the bundle, it was fixed.!

这篇关于Mac OS X存档(.app)在测试Mac机器上崩溃:EXC_BAD_INSTRUCTION的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆