1

我想Messages_de.properties在我的 Xcode 项目中包含一个文件。

我是我的目标,Build Phase我做到了:

![在此处输入图像描述][1]

当我尝试构建项目时,出现以下错误:

PBXCp /Users/mg/Documents/Grails/GGTS3.6.3-SR1-2/testproject-core/src/main/resources/testproject/core/i18n/Messages_de.properties /Users/mg/Library/Developer/Xcode/DerivedData/testproject-bkkczkzivpolszewxttakwlxnztk/Build/Products/Debug-iphoneos/testproject.app/testproject/core/i18n/Messages_de.properties
    cd /Users/mg/Documents/Grails/GGTS3.6.3-SR1-2/testproject
    export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.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 /Users/mg/Documents/Grails/GGTS3.6.3-SR1-2/testproject-core/src/main/resources/testproject/core/i18n/Messages_de.properties /Users/mg/Library/Developer/Xcode/DerivedData/testproject-bkkczkzivpolszewxttakwlxnztk/Build/Products/Debug-iphoneos/testproject.app/testproject/core/i18n

    error: couldn't create directory /Users/mg/Library/Developer/Xcode/DerivedData/testproject-bkkczkzivpolszewxttakwlxnztk/Build/Products/Debug-iphoneos/testproject.app/testproject/core/i18n: Not a directoryerror: open /Users/mg/Library/Developer/Xcode/DerivedData/testproject-bkkczkzivpolszewxttakwlxnztk/Build/Products/Debug-iphoneos/testproject.app/testproject/core/i18n/Messages_de.properties: Not a directory

(null): error: couldn't create directory /Users/mg/Library/Developer/Xcode/DerivedData/testproject-bkkczkzivpolszewxttakwlxnztk/Build/Products/Debug-iphoneos/testproject.app/testproject/core/i18n: Not a directory

(null): error: open /Users/mg/Library/Developer/Xcode/DerivedData/testproject-bkkczkzivpolszewxttakwlxnztk/Build/Products/Debug-iphoneos/testproject.app/testproject/core/i18n/Messages_de.properties: Not a directory

是什么导致了这些错误,我该如何解决?

4

1 回答 1

0

您正在尝试包含目录而不是文件。验证您的代码,您可能正在使用目录管理器来管理文件。

于 2015-04-22T12:08:53.270 回答