Failed to load Info.plist from bundle

Deadly 提交于 2019-12-03 10:24:57

问题


Cannot run app. Failed to load Info.plist from bundle error occurs. When I CMD+K clean the project, it runs fine. But I have to clean the project every time I make changes and run the app.

Following is the screenshot of my podfile:


回答1:


I had tried all suggestion and none of them work Then I tried to Reset content and Setting of simulator and it worked for me. :)




回答2:


Simply

Just quit the simulator and open it again and it should works fine




回答3:


1: Remove app from simulator,

2: Product > Clean ,

3: Simulator > Hardware > Reboot ,

It solved my problem. In case it doesn't resolved, change your bundle identifier.




回答4:


This error occurs due to 'RealmSwift'. When you try to write in realm in certain directory, this error occurs, due to the conflicts in overwriting with realm.

You may want to Reset Content & Settings in simulator and also try cleaning your build folder in Xcode using Cmd+Shift+Option+K




回答5:


It was duplicated frameword when you config. Please check again in Embedded Binaries and Linked Frameworks and Libraries. With some frameworks, you don't need add in both sections, please remove one. It worked with me




回答6:


I encountered this error in one of my projects and narrowed down a set of exact conditions that are able to reproduce it, thereby preventing installation to the simulator.

With Xcode 10.2.1, I was testing linking a framework. I noticed in the project navigator panel that two instances of it were present. This could have been due to my multiple attempts.

Inside the Xcode project package, I opened the file MyProject.xcodeproj/project.pbxproj and confirmed that the two instances were identical. The following snippet shows an example of how this was represented.

/* Begin PBXFileReference section */
...
    65C8CE8522CA0D3500271FFD /* MyFrameworkForiOS.framework */ = { 
        isa = PBXFileReference; 
        lastKnownFileType = wrapper.framework; 
        name = MyFrameworkForiOS.framework; 
        path = "../my-frameworks/out/MyFrameworkForiOS.framework"; sourceTree = "<group>"; 
    };
    65C8CE8722CA0D3800271FFD /* MyFrameworkForiOS.framework */ = {
        isa = PBXFileReference; 
        lastKnownFileType = wrapper.framework; 
        name = MyFrameworkForiOS.framework; 
        path = "../my-frameworks/out/MyFrameworkForiOS.framework"; sourceTree = "<group>"; 
    };
...
/* End PBXFileReference section */

By removing a duplicate reference in the project navigator (with command-backspace), I was able to install my app to the simulator without the error.

What didn't matter was the contents of Info.plist in my framework as it only had an empty root dictionary. Therefore, the error message may be misleading relative to the actual cause.




回答7:


It is annoying. Temporary I remove app on simulator then rebuild project work but still waiting for a better solution This problem likely to a problem with core data i have meet in the past.

Update: this solution work for me: https://stackoverflow.com/a/24042126/5387768




回答8:


Remove the app from the Simulator worked well.




回答9:


If resetting the Simulator did't work. Try to change simulator like from iPhone6 to iPhone5s. Then later run in iPhone6 simulator and reset the Simulator again. It will start working.




回答10:


I had this problem when integrating Firebase to my project. The issue was that Xcode automatically configured project to "Embed&Sign" the libraries when I drag&drop them into "Framworks, Libraries, and Embedded Content" section.

To fix that, I manually set them to "Do Not Embed".




回答11:


Don't do anything. Just go to 'Product' -> 'Clean', and then Command + R, It works !



来源:https://stackoverflow.com/questions/40327935/failed-to-load-info-plist-from-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!