Page 1 of 1

SFS2XAPIOSX cannot be loaded by OSX app

Posted: 25 Jul 2014, 15:01
by FrankVanVliet
Hello SmartFoxServer users,

When I build an OSX app in XCode with the SFS2XAPIOSX.framework and deploy this app to another machine, it crashes complaining that it cannot find this framework in /Library/Frameworks/.... The SFS framework is not included in the app bundle and therefore not deployed with the app.

What can I do to fix this so that the framework is deployed together with the app cause I don't want to do an extra install just for the SFS2XAPIOSX framework... ?

thanks for any advice
Frank

Re: SFS2XAPIOSX cannot be loaded by OSX app

Posted: 25 Jul 2014, 20:37
by Lapo
Take a look at the directions from Apple here:
https://developer.apple.com/library/mac ... works.html

In particular this section --> "Embedding a Private Framework in Your Application Bundle"

Hope it helps

Re: SFS2XAPIOSX cannot be loaded by OSX app

Posted: 26 Jul 2014, 17:47
by FrankVanVliet
Hello Lapo,

Thank you for your reply, you gave me useful info to search for the solution.

I was able to include the SFS framework in the app bundle and fix a code signing error with http://stackoverflow.com/questions/1726 ... ned-at-all but now I'm still struggling with how to "tell" the build that the SFS framework is located inside the bundle and not in /Library/Frameworks.

In case anyone has experience with this issue and found a solution...

Thanks in advance
Frank