ios – Xcode错误:构建时没有这样的文件或目录
发布时间:2020-12-14 18:01:01 所属栏目:百科 来源:网络整理
导读:我读过类似的帖子,但无法找到问题的解决方案. 当我开始我的项目时,我首先将其保存在名称中有空格的文件夹中(让我们将其命名为“我的项目”) 让我们简化通过我的项目的路径作为一个简单的文件夹:“我的路径”(是的,层次结构中有空格). 我曾经在构建我的项目
我读过类似的帖子,但无法找到问题的解决方案.
当我开始我的项目时,我首先将其保存在名称中有空格的文件夹中(让我们将其命名为“我的项目”) 我曾经在构建我的项目时遇到问题,特别是在Build设置中的Library搜索路径,经常返回xcode更新或/和项目重复以保存历史记录. 为了解决这个问题,我用下划线替换了所有空格.所以现在我的项目的文件夹名称是“My_Project”和路径“My_path”. 但今天,我有一个错误,我无法摆脱. /!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 我没有在我的目标的构建设置中找到空格未被下划线替换的任何字段. 任何帮助赞赏. (我正在使用Xcode 7.2,OS X El Capitan 10.11.2) 解决方法
我终于找到了偶然的机会
an answer来解决我的问题.
我在finder中打开了.xcodeproj文件,然后编辑project.pbxproj. 84635D6F1C22F90100C55AB2 /* AFNetworking */ = {isa = PBXFileReference; lastKnownFileType = folder; name = AFNetworking; path = "/Users/admin/Desktop/My_path/My Project/Product-name/Sub Folder/AFNetworking"; sourceTree = "<absolute>"; }; 正确地重新输入它就成了伎俩. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |