macossymlinkcodesign

Creating symlinks in OSX frameworks inside app bundle


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.

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?


Solution

  • 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.