Alternative to copying the SFS library to Library/Frameworks folder ?

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

eyalb
Posts: 9
Joined: 08 Jan 2018, 10:13

Alternative to copying the SFS library to Library/Frameworks folder ?

Postby eyalb » 28 May 2019, 16:22

Hi,

Regarding this comment:
NOTE: in order to run an OSX application that is dependent on the SFS2X API you will need to have a copy of the library in your /Library/Frameworks/ folder. Failing to do so will cause a library loading error as soon as you hit the "Run" button.

Indeed, my project fails when I hit run.

Is there any way to overcome this? having to manually copy the library to /Library/Frameworks/ is a big issue for us.
This specific project is used only for development process, and by multiple developers, so we don't mind bundling the framework or anything like that, or any other possible solution, besides having every developer to manually do it.

Thanks!
Eyal
mmilen
Posts: 298
Joined: 09 Nov 2010, 00:48
Contact:

Re: Alternative to copying the SFS library to Library/Frameworks folder ?

Postby mmilen » 28 May 2019, 19:31

Hi,

Here is a command to run once on your mac, change only 'full_path_to_your_library_location'.

install_name_tool -id @executable_path/../Frameworks/SFS2XAPIOSX.framework/SFS2XAPIOSX /full_path_to_your_library_location/SFS2XAPIOSX.framework/SFS2XAPIOSX
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Alternative to copying the SFS library to Library/Frameworks folder ?

Postby Lapo » 29 May 2019, 07:57

Hi,
eyalb wrote:NOTE: in order to run an OSX application that is dependent on the SFS2X API you will need to have a copy of the library in your /Library/Frameworks/ folder.

Just to clarify this is a common problem with any framework for OSX, not just our API.
If you run a dedicated installer you can deploy the framework in the default OSX folder (~/Library/Frameworks). Otherwise the solution provided by mmilen is also a valid alternative.

Here's a similar discussion from the StackOverflow website:
https://stackoverflow.com/questions/162 ... xcode?rq=1

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 8 guests