Install 3rd party framework using AppleScript from package

My application depends on another third party framework and I need to make sure the framework is installed before running my application. I am using AppleScript to check if the framework is installed or not. I am packaging my application with PackageMaker.

How can I package another pkg framework file in my PackageMaker project and run my AppleScript if the package is not already installed?

thank

Note. The pkg file along with adding the framework adds some other things to the Applications folder. So I need to run the pkg file and not just get the framework in my app resources.

-1


source to share


1 answer


Don't try to install the framework on the system - it's better to keep a copy in your application.

To use 3rd party framework drag Xcode -> Frameworks -> Linked Frameworks.



Next, create a Copy Files phase below the Targets so that your third party framework is copied to Content / Frameworks in your app bundle.

For more details and a step-by-step example, check out the Sparkle Framework Documentation

0


source







All Articles