Failed to load Info.plist from bundle

…衆ロ難τιáo~ 提交于 2019-11-30 07:49:17

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. :)

Simply

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

Vinay Krishna Gupta

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.

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

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.

Suke

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

Remove the app from the Simulator worked well.

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

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.

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

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