本文介绍了Xcode 4和cocos2D 1.0.0 beta未分类的错误和Info.plist不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装了xcode 4 sdk和cocos2d 1.0.0 beta模板。



我刚刚使用cocos2d模板创建了一个新项目。
但是当我构建时,我得到这些错误:
(对于以前的项目用xcode 3开发的相同的问题信息)



警告:couldn com.apple.XcodeGenerated'标签'再增加'/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build:错误域= NSPOSIXErrorDomain代码= 2的UserInfo = 0x201dde680操作无法完成。没有这样的文件或目录
错误:无法创建'/ Users / Benoit / Library / Developer / Xcode / DerivedData / xcode4-bswxazfuwbsguiasyatbtlmvbpps / Build / Intermediates' b $ b错误:无法创建'/ Users / Benoit / Library / Developer / Xcode / DerivedData / xcode4-bswxazfuwbsguiasyatbtlmvbpps / Build / Products'(权限被拒绝)
无法创建目录/ Users / Benoit / Library / Developer /Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.build/Objects-normal/i386
无法创建目录/ Users / Benoit / Library / Developer / Xcode / DerivedData / xcode4-bswxazfuwbsguiasyatbtlmvbpps /建设/ PrecompiledHeaders /前缀dflnzjtztxdgjwhistrvvjxetfrg
无法创建目录/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4 .build
无法创建目录/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.build
无法创建目录/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.build
无法创建目录/ Users / Benoit / Library / Developer / Xcode /DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.build
无法创建目录/用户/伯努瓦/库/开发商/ Xcode中/ DerivedData / xcode4-bswxazfuwbsguiasyatbtlmvbpps /建设/ PrecompiledHeaders /前缀fqemzerugrwojibbegzkffljkxqs
无法创建目录/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.build
无法创建目录/用户/伯努瓦/库/开发商/ Xcode中/ DerivedData / xcode4-bswxazfuwbsguiasyatbtlmvbpps /索引/ PrecompiledHeaders /前缀dbtcglhksokwygezixirqkgfipsr_ast
无法创建目录/用户/伯努瓦/库/开发商/ Xcode中/ DerivedData / xcode4-bswxazfuwbsguiasyatbtlmvbpps /索引/ PrecompiledHeaders /前缀gdirtpasdqzasnclnkzguimarjpd_ast
错误:无法创建目录/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Products/Debug-iphonesimulator/xcode4.app:权限被拒绝
错误:无法创建目录/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Products/Debug-iphonesimulator/xcode4.app:权限被拒绝
文件Info

请帮助!!

解决方案

p>我刚刚遇到同样的问题 - 检查目录的权限:

  / Users / Benoit / / Xcode / 

在我的例子中,它由root所有(我怀疑是由于安装在cocos2d模板之前全新安装Xcode - 但可能是错误的)。将其更改为由我的用户拥有可解决此问题或您的情况:

  sudo chown Benoit / Users / Benoit / Library / Developer / Xcode / 

希望有帮助。



尼克


I just installed the xcode 4 sdk and the cocos2d 1.0.0 beta template.

I just created a new project with the cocos2d template.But when I build I got these errors :(for information my previous projects developed with xcode 3 have the same problem)

warning: couldn't add 'com.apple.XcodeGenerated' tag to '/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build': Error Domain=NSPOSIXErrorDomain Code=2 UserInfo=0x201dde680 "The operation couldn’t be completed. No such file or directory"error: unable to create '/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates' (Permission denied)error: unable to create '/Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Products' (Permission denied)Unable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.build/Objects-normal/i386Unable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/PrecompiledHeaders/Prefix-dflnzjtztxdgjwhistrvvjxetfrgUnable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.buildUnable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.buildUnable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.buildUnable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.buildUnable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/PrecompiledHeaders/Prefix-fqemzerugrwojibbegzkffljkxqsUnable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Intermediates/xcode4.build/Debug-iphonesimulator/xcode4.buildUnable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Index/PrecompiledHeaders/Prefix-dbtcglhksokwygezixirqkgfipsr_astUnable to create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Index/PrecompiledHeaders/Prefix-gdirtpasdqzasnclnkzguimarjpd_asterror: couldn't create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Products/Debug-iphonesimulator/xcode4.app: Permission deniederror: couldn't create directory /Users/Benoit/Library/Developer/Xcode/DerivedData/xcode4-bswxazfuwbsguiasyatbtlmvbpps/Build/Products/Debug-iphonesimulator/xcode4.app: Permission deniedThe file "Info.plist" doesn’t exist.

Please help !!

解决方案

I've just experienced the same issue - check the permissions on the directory:

/Users/Benoit/Library/Developer/Xcode/

In my case it was owned by root (which I suspect was as a result of installing the cocos2d templates before a fresh install of Xcode - but could be wrong). Changing it to be owned by my user fixed the issue, or in your case:

sudo chown Benoit /Users/Benoit/Library/Developer/Xcode/

Hope that helps.

Nick

这篇关于Xcode 4和cocos2D 1.0.0 beta未分类的错误和Info.plist不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-18 15:45