1

我从 github 上提取了three20 的最新版本并安装了他们的模板。我在 XCode 中打开它,构建它,运行它,然后我意识到这个模板还没有准备好 iOS4。

我发现的第一个问题是“找不到基础 SDK”。我通过将 Base SDK 更改为“iOS Device 4.1”在编辑项目设置中解决了这个问题。

然后我又跑了一次。我收到大量与“Three20/Three.h:没有这样的文件或目录”相关的错误。我将“../three20/src”添加到我的标题搜索路径中,但它没有帮助。

有谁知道为什么?我还应该改变什么?

仅供参考:
XCode 版本 3.2.4
最新版本的three20(9 月 29 日)

目录:
xcode/myproject/
xcode/three20/

PS:模板在 SDK 3.0 中工作正常

4

5 回答 5

2

自从将three20 正确添加到您的新iOS4 中,我也在拉扯头发,这里列出了非常基本的说明:http://github.com/facebook/three20不起作用。

问题:可以将新的three20 编译到您的iOS 项目并收到此错误:找不到#import "Three20/Three20.h"。

Here is the best solution for those have the same issue:
1) Add your three20 to your iphone project path like this:
[yourProjectPath]/[iOSProjectName]/three20/..
2) cd three20 dir
3) run:
python src/scripts/ttmodule.py -p [yourProjectPath]/[iOSProjectName]/[iOSProjectName].xcodeproj Three20 -c Debug -c Release
4) go to XCode and do a build now.

Thanks to jverkoey for adding this in ...man
u save us a lot of headache if u ever read this :- ) kudos bud! :- )
http://github.com/facebook/three20/commit/0814b1c149cbe987557c88a271f999c3f9f3ae64

Please vote this answers if it help u. Thanks :-)

于 2010-10-21T20:43:38.543 回答
0

结果我必须改用http://github.com/ECP/three20

于 2010-09-30T04:25:28.040 回答
0

我从 twitter 得到的答案——“需要手动设置每个项目的构建目标”
他可能是对的。

于 2010-10-01T02:33:11.630 回答
0

My solution was to add the following to the Header Search Path in Xcode:

three20/Build/Products/three20

Xcode 4 screen shot:

Xcode header search path

Yours may be different of course, but maybe this will help someone.

于 2012-01-10T16:12:33.790 回答
-1

此外,尝试检查项目设置下的部署目标,包括模拟器和设备。就我而言,由于目标设置为 2.2,我收到了数千个错误。iOS 4.1 和 Xcode 3.2.4 似乎不再支持 2.2。

于 2010-10-02T02:31:19.057 回答