Dima Portenko
Dima Portenko

Reputation: 3854

Xcode 11.3.1 Failed to load Info.plist from bundle at path

I have React Native project which stops working after Xcode upgrade to version 11.3.1. The error is following

Could not install at this time.
Failed to load Info.plist from bundle at path /Users/dmytro/Library/Developer/CoreSimulator/Devices/F0BD5650-04A4-4534-B3F6-56B74ED1B0C2/data/Library/Caches/com.apple.mobile.installd.staging/temp.aRWRdh/extracted/Target.app/Frameworks/RCTVibration.framework; Extra info about plist: ACL=<not found

enter image description here

and details

Details

This app could not be installed at this time.
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Could not install at this time.
Recovery Suggestion: Failed to load Info.plist from bundle at path /Users/dmytro/Library/Developer/CoreSimulator/Devices/F0BD5650-04A4-4534-B3F6-56B74ED1B0C2/data/Library/Caches/com.apple.mobile.installd.staging/temp.aRWRdh/extracted/Target.app/Frameworks/RCTVibration.framework; Extra info about plist: ACL=<not found> 
--
Failed to load Info.plist from bundle at path /Users/dmytro/Library/Developer/CoreSimulator/Devices/F0BD5650-04A4-4534-B3F6-56B74ED1B0C2/data/Library/Caches/com.apple.mobile.installd.staging/temp.aRWRdh/extracted/Target.app/Frameworks/RCTVibration.framework; Extra info about plist: ACL=<not found> 
Domain: MIInstallerErrorDomain
Code: 35
User Info: {
    FunctionName = "-[MIBundle _validateWithError:]";
    LegacyErrorString = PackageInspectionFailed;
    SourceFileLine = 128;
}
--

enter image description here

Upvotes: 11

Views: 13891

Answers (5)

SaRaVaNaN DM
SaRaVaNaN DM

Reputation: 4410

Had the same issue in Pod v1.11.2. I tried restarting the simulator, erasing content, restarting the machine, removed derived data from File->WorkSpace settings -> {derived data}

Nothing worked for me. Finally, the below magic steps helped,

  1. In the pod file replace 'use_frameworks!' with 'use_frameworks! :linkage => :static'
  2. Run 'pod install' // now you might get some other issue
  3. Revert 'use_frameworks! :linkage => :static' changes i.e replace 'use_frameworks! :linkage => :static' with 'use_frameworks!'
  4. Again run 'pod install'

Upvotes: 0

Asad Ali Choudhry
Asad Ali Choudhry

Reputation: 5271

I have found a detailed solution here with screenshots:

https://handyopinion.com/solution-failed-to-load-info-plist-from-bundle-at-path-in-xcode/

Steps:

1. remove use_frameworks! from Podfile

2. Run pod install command

3. Delete Content of Derived Data Folder. For that navigate to File -> Workspace Settings in xCode then navigate to the Derived data folder and remove its content.

enter image description here

Upvotes: 1

Maycon Mesquita
Maycon Mesquita

Reputation: 4600

Using CocoaPods v1.9+, if you can't remove use_frameworks! from Podfile, you can set:

use_frameworks! :linkage => :static

Now that Swift supports static linking, CocoaPods has expanded this DSL to allow specifying the type of linkage preferred.

Source: https://blog.cocoapods.org/CocoaPods-1.9.0-beta/

Upvotes: 33

Dima Portenko
Dima Portenko

Reputation: 3854

The solution for me was to remove use_frameworks! from Podfile.

Don't forget pod install, clear Derived Data and Erase All Content And Settings on your Simulator.

Upvotes: 6

nazaif
nazaif

Reputation: 53

Go to YourTarget > Build Settings > Packaging > Info.plist File and check here the path to your .plist file.

Also it would be helpful to clear your derived data folder, and re-build project again.

Upvotes: 0

Related Questions