我读过类似的文章,但无法找到解决问题的方法。
I've read similar threads but wasn't able to find a solution to my issue.
启动项目时,我首先将其保存在文件夹中名称中带有空格(将其命名为我的项目) 还可以简化项目中作为简单文件夹的路径:我的路径(是的,层次结构中有空格)
When I start my project, I first saved it in a folder with blank space in its name (let name it "My Project") Lets also simplify the path through my project as a simple folder : "My path" (yes, there was blank spaces in the hierarchy).
在构建项目时,我经常遇到问题,尤其是在构建设置中使用库搜索路径时,经常会进行xcode更新或/和重复进行项目保存。
I used to have issues while building my project, especially with the Library search path in Build settings, regularly coming back with xcode updates or/and duplication of project for keeping a historical.
为了解决这个问题,我用下划线替换了所有空格。因此,现在我项目的文件夹名称为 My_Project,路径为 My_path。 这些更改也已在我的项目的构建设置中执行。
To solved that, I've replaced all the blank spaces with underscores. So now my project's folder name is "My_Project" and the path "My_path". These changes have also been performed in the Build Settings of my project.
但是今天,我遇到了一个我无法摆脱的错误。 在构建项目时,每个文件都可以完美编译,但是在复制过程中,会出现这种错误。
But today, I have an error I can't get rid of. When I build my project, every file compile perfectly, but during the "copying" process, I get this kind of error.
/!\Copy AFNetworking ...in /Users/admin/Desktop/My_path/My Project/Product-name/Sub Folder CpResource /Users/admin/Desktop/My_path/My\ Project/Product-name/Sub\ Folder/AFNetworking /Users/admin/Library/Developer/Xcode/DerivedData/Product-name-gkplyeugxcxhijajdvpxutaodxmz/Build/Products/Release-iphoneos/Product-name.app/AFNetworking cd /Users/admin/Desktop/My_path/My_Project/Product-name export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/admin/Desktop/My_path/My\ Project/Product-name/Sub\ Folder/AFNetworking /Users/admin/Library/Developer/Xcode/DerivedData/Product-name-gkplyeugxcxhijajdvpxutaodxmz/Build/Products/Release-iphoneos/Product-name.app ------------------------------------- error: /Users/admin/Desktop/My_path/My Project/Product-name/Sub Folder/AFNetworking: No such file or directory我没有在目标的构建设置中找到没有用下划线代替空格的任何字段。
I don't find in my target's Build Settings any field where blank spaces haven't been replaced by underscores.
任何帮助表示赞赏。
(我正在使用Xcode 7.2,OS X El Capitan 10.11.2)
(I'm using Xcode 7.2, OS X El Capitan 10.11.2)
推荐答案我终于偶然发现了一些东西我的问题的答案。
I finally find somewhat by chance an answer to my problem.
我已经打开了Finder中的.xcodeproj文件,然后编辑 project.pbxproj 。 在此文件中,我建立了一行:
I've opened the .xcodeproj file in finder, and then edit project.pbxproj. In this file, I've founded a line :
84635D6F1C22F90100C55AB2 /* AFNetworking */ = {isa = PBXFileReference; lastKnownFileType = folder; name = AFNetworking; path = "/Users/admin/Desktop/My_path/My Project/Product-name/Sub Folder/AFNetworking"; sourceTree = "<absolute>"; };正确地重新键入就可以了。
And retyping it properly made the trick.
更多推荐
Xcode错误:构建时没有此类文件或目录
发布评论