您的位置:首页 > 其它

cocoa xcode 添加 第三方 framework

2013-03-08 12:26 246 查看
I did the following to create the framework:

Create new Cocoa Framework named Test.

Set installation directory to "@rpath".

Add "Test.h" to public headers.

Click run.

Right click on Test.framework under "Products", choose Show in Finder. It's a directory called "Test.framework" in the "Debug" directory of the project. It seems to have reasonable contents (Versions/A directory and symlinks to "Headers", "Resources" and the
"Test" binary)

I did the following to create the app:

Create new Cocoa app named "TestApp".

Add test framework to project. Choose "Add files to project". Select "Test.framework" directory from "Release" directory of the Test framework project. "Copy items into destination group's folder" is checked Leave "Create groups for any added folders." on.

Make sure framework files are copied to application bundle. Choose "Add Build Phase" -> "Add Copy Files" Drag Test.framework folder (or group?) from the sidebar into the Copy Files area.

Add an extra "framework search path" named "@loader_path/../Frameworks"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: