iOS 开发简单步骤
2018-11-19 本文已影响0人
囚徒_教父
1.cocoapod配置
cd 目录
touch Podfile
vim Podfile
输入 ' i '
platform:ios,'7.0'
target '项目名字' do
pod '第三方库名称'
@end
2.配置 PCH文件
1。创建Pch文件(1-1)
![](https://img.haomeiwen.com/i5779573/6757e0ce6d937ae2.png)
2.Build Settings 搜索prefix header(1-2)
![](https://img.haomeiwen.com/i5779573/8dcd1f3dfa4aeeca.png)
3.配置 Precompile Prefix header 为Yes(1-3)
![](https://img.haomeiwen.com/i5779573/dd5010400d2bef07.png)
4.prefix Header
设置Prefix Header的值为:
$SRCROOT/(你的项目名称)/(你的pch文件名称)
如:$(SRCROOT)/GIFMaker/GIFPrefixHeader.pch