应用程序包不包含有效的标识符

时间:2022-04-15 10:37:33

I try to run my project but i get the following error "The application bundle does not contain a valid identifier."

我尝试运行我的项目,但我得到以下错误“应用程序包不包含有效的标识符。”

here my info.plist

在这里我info.plist

应用程序包不包含有效的标识符

I followed other answer on the question. I don't have any "Ressources" folder inside my project.

在这个问题上我听从了其他的回答。我的项目中没有任何“Ressources”文件夹。

Thanks for your help

谢谢你的帮助

3 个解决方案

#1


73  

I solve this problem after I delete all build files by Xcode. Your build file path at Xcode > Preferences > Locations > Derived Data

通过Xcode删除所有构建文件后,我解决了这个问题。您在Xcode上的构建文件路径>首选项>定位>派生数据

If you didn't change the default path, Your path is like

如果你不改变默认路径,你的路径是这样的

应用程序包不包含有效的标识符

I just deleted all files under DerivedData

我刚刚删除了派生数据下的所有文件

#2


4  

In my case, this problem occurred when I manually removed a pod from my file browser in XCode. In order to fix it, I deleted the associated entry in my podfile, and ran 'pod install' from the terminal. Additionally, I had to delete the relevant search paths and other references to that pod. And of course I had to clean the project.

在我的例子中,当我在XCode中手动从文件浏览器中删除pod时,出现了这个问题。为了修复它,我删除了我的podfile中的相关条目,并在终端上运行“pod install”。此外,我必须删除相关的搜索路径和对该pod的其他引用。当然,我得清理这个项目。

#3


0  

In my case the info.plist had the wrong encoding format, I still don't know why it changed. So I had to create a new one from Xcode and copy paste all the keys.

在我的情况下,信息。plist的编码格式是错误的,我还是不知道为什么会改变。所以我必须从Xcode中创建一个新的并复制粘贴所有的键。

#1


73  

I solve this problem after I delete all build files by Xcode. Your build file path at Xcode > Preferences > Locations > Derived Data

通过Xcode删除所有构建文件后,我解决了这个问题。您在Xcode上的构建文件路径>首选项>定位>派生数据

If you didn't change the default path, Your path is like

如果你不改变默认路径,你的路径是这样的

应用程序包不包含有效的标识符

I just deleted all files under DerivedData

我刚刚删除了派生数据下的所有文件

#2


4  

In my case, this problem occurred when I manually removed a pod from my file browser in XCode. In order to fix it, I deleted the associated entry in my podfile, and ran 'pod install' from the terminal. Additionally, I had to delete the relevant search paths and other references to that pod. And of course I had to clean the project.

在我的例子中,当我在XCode中手动从文件浏览器中删除pod时,出现了这个问题。为了修复它,我删除了我的podfile中的相关条目,并在终端上运行“pod install”。此外,我必须删除相关的搜索路径和对该pod的其他引用。当然,我得清理这个项目。

#3


0  

In my case the info.plist had the wrong encoding format, I still don't know why it changed. So I had to create a new one from Xcode and copy paste all the keys.

在我的情况下,信息。plist的编码格式是错误的,我还是不知道为什么会改变。所以我必须从Xcode中创建一个新的并复制粘贴所有的键。