Cocos2d开发之如何在Cocos2d项目中启用ARC机制(Build the cocos2d code as a Static Libary)
来源:互联网 发布:数据挖掘可视化平台 编辑:程序博客网 时间:2024/06/03 12:41
1.locate and delete the libs group in the Navigation area(Remove but not trash the libs group from the project)
2.Select the Project itself in the Nevigation area, then click the Add Target button at the bottom
3.navigate to the Framework & Librarygroup and select Cocoa Touch Static Library. Then click Next.
4.Name the static library appropriately—for example, cocos2d-library would be a good name.Besure to deselect both Include Unit Tests and Use Automatic Reference Counting.
5.Set the Always Search User Paths setting to Yesand set the User Header Search Paths to the somewhat cryptic ./** string.
6.Select the Build Phases tab and expand the Link Binary With Libraries list.
7.Click the small + button below the list to bring up the selection dialog shown in Figure down.From that, select the libcocos2d-library.a entry and click Add.
8.Click File Add Files to“name-of-project” to bring up the file dialog shown in Figure down
9.Locatethe cocos2d-library.h and cocos2d-library.m files in the navigation area and delete the files.It’s just an empty stub class that Xcode always creates when adding a static library target.
10.From the Xcode menu choose EditRefactorConvert to Objective-C ARC.... This brings upthe dialog shown in Figure down, where you can select the targets to convert. Select only yourapp’s target and not the cocos2d-library target. Then click Check.
11.Read the text and click Next. The dialog shown in Figure down allows you to reviewthe changes it is about to make. You can safely accept them all by clicking Save.
- Cocos2d开发之如何在Cocos2d项目中启用ARC机制(Build the cocos2d code as a Static Libary)
- 如何在cocos2d项目中enable ARC
- 如何在cocos2d项目中enable ARC
- [Cocos2D 2.x iOS 开发笔记2] 在Project中启用ARC
- Cocos2d-2.x开发之修改cocos2d-2.x-ARC-iOS ARC模板的项目名
- cocos2d-x 2.2 在WINDOWS中如何创建项目
- 如何在cocos2d-x 项目中增加全局变量
- cocos2d-x 2.2.1 在WINDOWS中如何创建项目
- cocos2d-x 2.2 在WINDOWS中如何创建项目
- 【玩转cocos2d-x之四十】如何在Cocos2d-x 3.0中使用opengl shader?
- 【玩转cocos2d-x之四十】如何在Cocos2d-x 3.0中使用opengl shader?
- 在Cocos2d 2.0中使用ARC的方法
- 如何新建Cocos2d开发iPad版项目
- cocos2d-x开发之如何在Android应用中加入广告(转载)
- 如何在cocos2d中截屏
- Cocos2d-X 在MAC中创建项目
- 如何在Xcode4.2 中安装cocos2d
- 如何在Xcode中安装cocos2d
- EBS AP 创建会计分录 Draft/Final/Final Post
- 哎.心里好烦
- 编程练习4——类
- 百度地图开发API之加载地图和添加地图控件
- linux command
- Cocos2d开发之如何在Cocos2d项目中启用ARC机制(Build the cocos2d code as a Static Libary)
- sysfs接口函数到建立_DEVICE_ATTR
- shell 实练(4)-crontab设置定时任务
- What Is Your Recovery Rate
- oracle virtual列
- Nginx 基础篇(序)---转发代理服务器与反向代理服务器
- 如何在Scala中使用条件表达式
- initWithFormat与initWithString的区别、initWithFormat与stringWithFormat的区别
- 基于struts2、spring、ibatis、poi的案例,将数据导出致Excel中