SFML Mac App中格式错误的Freetype框架 [英] Malformed Freetype Framework in SFML Mac App

查看:162
本文介绍了SFML Mac App中格式错误的Freetype框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚用SFML(Mac版)包装了一个游戏并将其提交给Mac商店.我们正在使用SFML 2.0.我们正在Xcode中使用标准SFML项目,并使用链接脚本在所需框架上进行复制.该游戏在Mac OSX 10.6-10.9上的所有计算机上均可正常运行.麻烦的是,当我们提交到App Store时,我们收到一封回信,内容如下:

We just wrapped up a game in SFML for Mac and submitted it to the Mac store. We are using SFML 2.0. We're using a standard SFML project in Xcode with the link script that copies over the required frameworks. The game works great on all computers from Mac OSX 10.6-10.9. Trouble is, when we submit to the App Store, we get an email back saying the following:

格式错误的框架-框架捆绑 (Shibashiba.app/Contents/Frameworks/freetype.framework)必须包含一个 符号链接'freetype'->'版本/当前/freetype'.请参阅 有关更多信息,请参见Framework Bundle剖析.

Malformed Framework - The framework bundle (Shibashiba.app/Contents/Frameworks/freetype.framework) must contain a symbolic link 'freetype' -> 'Versions/Current/freetype'. Refer to the Anatomy of Framework Bundles for more information.

如果我进入已存档的应用程序,则freetype.framework文件夹位于Contents/Frameworks中,并且它具有指向Versions/Current/freetype的符号链接,因此我对该错误的含义不知所措.可能是某种权限错误? 2.0附带的freetype发行版可能会以某种方式弄乱吗?任何帮助,将不胜感激.这是我们运输的最后障碍!

If I go into the Archived application, the freetype.framework folder is in Contents/Frameworks and it has a symbolic link that points to Versions/Current/freetype, so I'm at a loss as to what this error means. Could it be some kind of permissions error? Could the freetype distro included with 2.0 be messed up in some way? Any help would be appreciated. This is our last hurdle to shipping!

推荐答案

我想我明白了!基本上,SFML随附的已编译 freetype.framework 链接不正确.

I think I figured it out! Basically, the compiled freetype.framework included with SFML is linked incorrectly.

如果使用Finder查找文件夹,则链接看起来正确,但是如果将其与 sndfile.framework 进行比较,则将有所不同.例如:

If you look in the folder using Finder, the links look correct, but if you compare it to sndfile.framework, it is different. For example:

sndfile.framework
    sndfile -> Versions/Current/sndfile
    Versions
        A
            sndfile
        Current -> A

freetype.framework
    freetype -> Versions/A/freetype
    Versions
        A
            freetype
        Current -> A

您可以在上方看到freetype指向直接指向"A"版本的freetype,而在正确的"Anatomy"中,它应指向 Current ,将点转到当前版本.

You can see above that freetype points DIRECTLY to the "A" version of freetype, whereas in the correct "Anatomy", it should point to Current, which in turn points to the current version.

我更改了符号链接,并且Apple接受了更正后的二进制文件:

I changed the symlink and Apple accepted the corrected binary:

cd /Library/Frameworks/freetype.framework
ln -fns Versions/Current/freetype freetype

这篇关于SFML Mac App中格式错误的Freetype框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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