在应用程序包内的OSX框架中创建符号链接 [英] Creating symlinks in OSX frameworks inside app bundle

查看:68
本文介绍了在应用程序包内的OSX框架中创建符号链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在OSX(版本10.10.1)上的应用程序内的框架中创建符号链接.由于该应用程序是在Qt中开发的,因此我不在XCode中.它提供了框架,但是它们需要一些修饰才能使用新的代码签名规则.

I need to create symlinks in frameworks inside an app on OSX (vers 10.10.1). I am outside of XCode as the app is developed in Qt. It provides the frameworks, but they need some retouches to work on the new codesigning rules.

我称其为"ln -s path_origin path_target_link",显然可以正常工作,创建了链接并将它们解析到正确的位置.

I call "ln -s path_origin path_target_link" and apparently it works, the links are created and they resolve to the right place.

但是当我对应用程序进行代码签名时,出现错误嵌入式框架的根目录中存在未密封的内容"

But when I codesign the app, I get an error "unsealed contents present in the root directory of an embedded framework"

(为了验证我的程序,我从另一个下载的包中复制了一个框架来验证协同签名,我可以成功签名,当我创建符号链接时,我的协同签名开始给出错误,所以我假设问题是我的符号链接创建)

(In order to verify my procedure, I copied a framework from another package downloaded that validates codesigning and I could sign it successfully, when I create a symlink my way codesign starts to give the error so I'm assuming the problem is my symlink creation)

我尝试了具有相同结果的其他方法,所以我一定会丢失一些东西.有什么想法吗?

I tried other methods with the same result so I must be missing something. Any ideas?

推荐答案

对于任何人来说都是有用的.就我而言,问题是我正在创建带有绝对路径的链接.显然,它们应该是相对的:您将移至链接应到达的目录,并相对于当前位置创建链接.

For the case it's useful to anyone. In my case the problem was that I was creating the links with absoulte paths. Obviously they should be relative: You move to the directory where the link should go and create the link relative to the current location.

这篇关于在应用程序包内的OSX框架中创建符号链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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