Xcode 4 添加 Three20 的方法

方法1

A Visual Guide to Manually Adding Three20 to your Xcode 4 Project

不过我到第5步的时候总是crash,尝试了重装Xcode,清Caches文件夹,删除com.Apple.dt.Xcode.plist文件均不成功,放弃

方法2

  1. 下载并安装git http://code.google.com/p/git-osx-installer/,双击安装即可
  2. 获取three20。打开终端,输入
git clone git://github.com/facebook/three20.git

回车后等待100%完成

      3. 新建项目,比如 code/Three20Demo/

      4. 添加three20。直接运行

> python three20/src/scripts/ttmodule.py -p code/Three20Demo/Three20Demo.xcodeproj Three20

如果提示无权限,需按以下步骤:

      1. 进入ttmodule.py所在目录

cd three20/src/scripts/

  2. 将其标为可执行

chmod +x ttmodule.py

  3. 退回根目录

cd ~/

  4. 执行以下命令即可

> python three20/src/scripts/ttmodule.py -p code/Three20Demo/Three20Demo.xcodeproj Three20
原文地址:https://www.cnblogs.com/appwgh/p/2517637.html