Framework的制作流程,Xode-6.0.1

1.新建Framework项目

这里写图片描述

2.删除原有的.h文件,创建与工程同名的类

这里写图片描述
这里写图片描述

在新建类.h中添加接口,.m中添加实现代码

这里写图片描述
这里写图片描述

3.Xcode的参数设置

“Architectures” 添加 “armv7s”
“Build Active Architecture Only” 设置为 “NO”
“Dead Code Stripping” 设置为 “NO”
“Mach-O Type” 设置为 “Static Library”
“IOS Deployment Target” 设置为 “IOS 7.0” ,表示支持IOS7.0以上系统版本的编译

这里写图片描述
这里写图片描述
这里写图片描述

4.为Framework添加文件

“Compile Sources” 添加封装进Framework的文件,即隐藏
“Headers->Public” 添加暴露给用户查看的头文件

这里写图片描述

5.编译生成Framework文件

分别选择真机和Iphone6模拟器进行编译
首先找到真机编译成功生成的framework,Show In Finder
然后找到Iphone6模拟器编译成功生成的framework(在真机目录中command+(向上剪头键)返回上一层文件夹路径)

这里写图片描述
这里写图片描述

6.合成通用版的framework文件

需要合成的文件是FrameworkTest.framework包中的FrameworkTest文件

这里写图片描述

使用终端进行合成操作
lipo -create FramewrokTest.framework/FrameworkTest(真机framework路径) FramewrokTest.framework/FrameworkTest(Iphone6模拟器framework路径) -output 保存路径/FrameworkTest

这里写图片描述

合成的文件如下图:

这里写图片描述

将合成的FrameworkTest文件替换掉真机或者模拟器路径中FrameworkTest.framework包中的FrameworkTest文件

这里写图片描述

7.测试自己制作的framework

这里写图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Paperback: 1625 pages Publisher: Apress; 7th ed. 2015 edition (January 1, 2016) Language: English ISBN-10: 1484213335 ISBN-13: 978-1484213339 This new 7th edition of Pro C# 6.0 and the .NET 4.6 Platform has been completely revised and rewritten to reflect the latest changes to the C# language specification and new advances in the .NET Framework. You'll find new chapters covering all the important new features that make .NET 4.6 the most comprehensive release yet, including: A Refined ADO.NET Entity Framework Programming Model Numerous IDE and MVVM Enhancements for WPF Desktop Development Numerous updates to the ASP.NET Web APIs This comes on top of award winning coverage of core C# features, both old and new, that have made the previous editions of this book so popular. Readers will gain a solid foundation of object-oriented development techniques, attributes and reflection, generics and collections as well as numerous advanced topics not found in other texts (such as CIL opcodes and emitting dynamic assemblies). The mission of this book is to provide you with a comprehensive foundation in the C# programming language and the core aspects of the .NET platform plus overviews of technologies built on top of C# and .NET (ADO.NET and Entity Framework, Windows Communication Foundation (WCF), Windows Presentation Foundation (WPF), ASP.NET (WebForms, MVC, WebAPI).). Once you digest the information presented in these chapters, you’ll be in a perfect position to apply this knowledge to your specific programming assignments, and you’ll be well equipped to explore the .NET universe on your own terms. What you’ll learn Be the first to understand the .NET 4.6 platform and C# 6. Discover the ins and outs of the leading .NET technology. Learn from an award-winning author who has been teaching the .NET world since version 1.0. Find complete coverage of XAML, .NET 4.6 and Visual Studio 2015 together with discussion of the new Windows Runtime. Who this book is for This book is perfect for anyone who is interested in the new .NET Framework 4.6 and the C# language. Whether you are moving to .NET for the first time or are already writing applications using previous .NET versions, this book will provide you with a comprehensive grounding in the new technology and serve as a complete reference throughout your coding career.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值