问题
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
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;
}
--
回答1:
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/
回答2:
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.
回答3:
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.
回答4:
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.
来源:https://stackoverflow.com/questions/59940644/xcode-11-3-1-failed-to-load-info-plist-from-bundle-at-path