今天升级到 xCode 4.3 后,由于以下构建错误,我无法构建或运行我的 3.2.5 项目之一:
CpResource Classes/../iTunesArtwork /Users/glen/Library/Developer/Xcode/DerivedData/Project-bfsepykuktirdfeuvqhjyyiuhqii/Build/Products/Debug-iphonesimulator/Project.app/iTunesArtwork cd /Users/glen/Dev/Project/trunk setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/ sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/ XcodeDefault.xctoolchain/usr/bin/strip /Users/glen/Dev/Project/trunk/Classes/../iTunesArtwork /Users/glen/Library/Developer/Xcode/DerivedData/Project-bfsepykuktirdfeuvqhjyyiuhqii/Build/Products/Debug-iphonesimulator /项目.app
错误:/Users/glen/Dev/Project/trunk/Classes/../iTunesArtwork:没有这样的文件或目录
互联网上有一些关于此错误的提及,其中大多数是指 Ad Hoc 构建和在构建后添加应用程序图标。
正如这里所建议的那样,我尝试将 iTunesArtwork 作为资源添加到项目的顶层,作为 512x512png,它给出了一个构建警告说明:
检查依赖项
警告:输出文件 /Users/glen/Library/Developer/Xcode/DerivedData/Project-bfsepykuktirdfeuvqhjyyiuhqii/Build/Products/Debug-iphonesimulator/Project.app/iTunesArtwork 的多个构建命令
其次是早期故障错误。我知道我必须以某种方式摆脱对 iTunesArtwork 的引用,但我不确定从哪里开始寻找或这个错误来自哪里。
我正在使用一个本地 svn 存储库,我从中导入了项目,我没有使用 xCode 4,这可能是问题的一部分,但我不确定。
我第一次尝试使用 iOS 5 SDK 进行构建。