简体   繁体   English

更改 XCode 项目的显示名称,现在出现错误

[英]Changed Display Name of XCode Project, now getting error

I changed the name of my Display Name in Xcode in the General tab(Don't do this), and now it will not build to my iPhone.我在常规选项卡的 Xcode 中更改了我的显示名称的名称(不要这样做),现在它不会构建到我的 iPhone 上。 It will build to the simulator, though.不过,它将构建到模拟器中。 I changed the name from Project1 to Project 2: Build -> Failed.我将名称从 Project1 更改为 Project 2:构建 -> 失败。 I changed it back to Project1 -> Build failed.我将其改回 Project1 -> 构建失败。 It will not work now.现在行不通了。

Here is the error:这是错误:

error: /Users/treyw./Library/Developer/Xcode/DerivedData/Score_Keeper-ffykvkyyltqhhlfkdvjvrdbhsywn/Build/Intermediates.noindex/Score Keeper.build/Debug-iphoneos/Score Keeper.build/Objects-normal/arm64/Score_Keeper.swiftmodule: No such file or directory (in target 'Score Keeper' from project 'Score Keeper')错误:/Users/treyw./Library/Developer/Xcode/DerivedData/Score_Keeper-ffykvkyyltqhhlfkdvjvrdbhsywn/Build/Intermediates.noindex/Score Keeper.build/Debug-iphoneos/Score Keeper.build/Objects-normal/arm64/Score_Keeper.swiftmodule:没有这样的文件或目录(在项目'Score Keeper'的目标'Score Keeper'中)

I have found a few posts saying to go to Build Phases-> Copy Bundle Resources -> And delete whatever is red.我发现一些帖子对 go 说要构建阶段-> 复制捆绑资源-> 并删除任何红色。 I've deleted everything in there and it doesn't help.我已经删除了那里的所有内容,但没有帮助。 I have also seen a post where someone says if there are spaces in your folder, I need to change them to no spaces.我还看到一个帖子,有人说如果您的文件夹中有空格,我需要将它们更改为没有空格。 But I cannot find these folders anywhere in Finder.但是我在 Finder 的任何地方都找不到这些文件夹。 I can go to /Users/treyw./ but there is no Library to keep going.我可以 go 到 /Users/treyw./ 但没有库可以继续。 Of course, the error is no such file or directory, but I don't even know where this error is referring to start with this one.当然,错误是没有这样的文件或目录,但我什至不知道这个错误是指从哪里开始的。 Thank you in advance!先感谢您!

Screenshot of error错误截图

In the Info.Plist change the following在 Info.Plist 中更改以下内容

"CFBundleDisplayName" = "Name of the app"; "CFBundleDisplayName" = "应用名称"; "CFBundleName" = "Name of the app"; "CFBundleName" = "应用名称";

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM