Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symlinks corruption in iOS custom framework

I'm currently working on the already developed iOS project. In this project custom framework is used which is giving me error 'abcLib/abcLib.h' file not found.

When I had a look at framework in the Finder, I found that the symlinks are broken and because of which I'm not able to include the Header files in project which leads to file not found error.

Following image shows the custom framework structure: enter image description here

I also got the framework in .zip format from one of my colleague (who probably has a windows machine) and tried to integrate it again but issue still persist. Is there a way by which I can get the framework with no broken symlinks or a way to recreate the broken symlinks.

Or that I'll need the code that created the framework

Note: I don't have the Project used to create the framework.

like image 251
Mahesh Avatar asked Dec 24 '15 07:12

Mahesh


1 Answers

You can recreate the symlinks using this script. I used it a couple times, it works fine.

Edit :

First delete all broken symlinks.

Then you can recreate them using this command :

ln -s {path_to_folder_or_file} {name_of_symlink}

So you will need in myFramework.framework/Versions/ :

  • The symlink Current that points to A

And in myFramework.framework/ :

  • The symlink Headers that points to /Versions/Current/Headers

  • The symlink Resources that points to /Versions/Current/Resources if you have one

  • The symlink myFramework that points to /Versions/Current/myFramework
like image 181
ebluehands Avatar answered Oct 06 '22 00:10

ebluehands