Building a Mac OS X/Cocoa application for distribution with an imported framework

前端 未结 1 1175

So I built an application which compiles and runs fine from Xcode. Now I want to distribute it to other people so they can use it. How do I do that correctly?

I thou

1条回答
  •  执念已碎
    2020-12-18 01:21

    You can provide an installer for the framework(s) you are using, or you can embed them in your Application's bundle.

    Read the "Framework Programming Guide". Page 41 is what you are looking for:

    http://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/BPFrameworks.pdf

    The trick is to copy the framework files in a special directory, inside your application. Then, you'll use @executable_path to refer to your application's binary path, so the application's will be correctly linked to your framework at launch time.

    0 讨论(0)
提交回复
热议问题