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"
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"
相关文章推荐
- Framework添加第三方so库
- android4.4 framework添加第三方调用接口
- iOS如何查看工程里添加的第三方静态库(.a或.framework)中发送的网络请求
- Qt 在mac 下添加第三方 framework的方法
- ios中添加第三方类库造成的linker command failed with exit code 1 (use -v to see invocation)的错误调试
- 程序文件BUG:第三方分享添加错误解决方案
- 如何在项目中添加framework
- xcode 4.2下怎么添加framework?
- Nginx 动态添加第三方模块
- Fedora如何添加第三方软件源?
- 如何向android的framework里添加新类
- Android 系统添加第三方apk到data/app
- 将XMPPFramework框架添加到项目中
- .NET Framework Cleanup Tool添加对.NET 4.5及Windows 8的支持
- Common Navigator Framework (CNF) 添加排序common sorter
- Android apk签名、第三方内置、图标添加与删除、开关机动画及铃声、启动第三方程序
- iOS9适配 之 关于info.plist 第三方登录 添加URL Schemes白名单
- 将自定义的jar包添加到framework层(解决)
- 如何添加Android第三方lib
- xcode4 里如何添加Framework?