ios - Xcode 错误 : PBXCp error: couldn't create directory

标签 ios objective-c xcode swift j2objc

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

我的目标的 构建阶段 我做了:

![在此处输入图片描述][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

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

最佳答案

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

关于ios - Xcode 错误 : PBXCp error: couldn't create directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29797003/

相关文章:

ios - 以编程方式更改 UIScrollView 引用

iphone - 关闭应用程序时保存 NSI​​nteger intScore

xcode - swift:更新解析对象而不知道他的objectId

ios - 无法配置数据源和委托(delegate)

iphone - KVC Collection Accessor + index 0 beyond bounds for empty array 错误

objective-c - 将 dylib 插入现有的包/可执行文件

iOS 模拟器不运行

iphone - 将 OAuth 添加到 Xcode 项目会导致 Xcode 找不到 Foundation header (随之而来的是大量错误)

iOS Swift WKWebView 使用 Session 登录

iOS 应用程序传输