升级Mac OS Lion和Xcode 4.1时出错

时间:2011-08-18 17:10:56

标签: cocos2d-iphone osx-lion xcode xcode4.1

即使只创建一个简单的hello world项目,我也遇到了很多错误

它显示:

检查依赖关系

error: unable to create '/Users/webberlai/Library/Developer/Xcode/DerivedData/HelloWorld-bnwywshtalciqpgaeaznkzexibsz/Build/Intermediates' (Permission denied)

处理HelloWorld / HelloWorld-Info.plist

error: couldn't create directory /Users/webberlai/Library/Developer/Xcode/DerivedData/HelloWorld-bnwywshtalciqpgaeaznkzexibsz/Build/Products/Debug-iphoneos/HelloWorld.app: Permission denied

The file “Info.plist” doesn’t exist.

error: couldn't create directory /Users/webberlai/Library/Developer/Xcode/DerivedData/HelloWorld-bnwywshtalciqpgaeaznkzexibsz/Build/Products/Debug-iphoneos/HelloWorld.app: Permission denied

error: open /Users/webberlai/Library/Developer/Xcode/DerivedData/HelloWorld-bnwywshtalciqpgaeaznkzexibsz/Build/Products/Debug-iphoneos/HelloWorld.app/ResourceRules.plist: No such file or directory

我错过了什么吗?(​​我开始怀念使用Xcode 4.0的Mac OS 10.6.8 ......)

顺便说一下,cocos2D现在也不行......

我是否需要重新安装我的Mac?

3 个答案:

答案 0 :(得分:0)

您可以在“磁盘工具”应用中尝试修复权限,以确保一切正常。

我要检查的另一件事是你的目录和文件名的大小写匹配文件系统上的实际内容。如果应用程序出错并且错误地认为Hello和hello不同(或者相同,取决​​于你的mac设置方式),你可能会得到一些奇怪的权限错误。

希望有所帮助。

答案 1 :(得分:0)

好的,我可能会找到原因,当我安装Xcode 4.1

它显示我有旧版本的Xcode,安装程序将删除它。

它没有明确删除......为什么我有这么多错误

所以解决方案是重新安装整个系统和Xcode 4.1

之后,安装cocos2D-iphone,它工作正常。

答案 2 :(得分:0)

最后,我重新安装了我的所有系统并返回到10.6.8

比安装XCODE 4.1 for OS 10.6

这是一个糟糕的解决方案,需要备份多个文件......

相关问题