[英]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.我的 React Native 项目在 Xcode 升级到版本 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;
}
--
Using CocoaPods v1.9+, if you can't remove use_frameworks!
使用 CocoaPods v1.9+,如果不能删除
use_frameworks!
from Podfile
, you can set:从
Podfile
,您可以设置:
use_frameworks! :linkage => :static
Now that Swift supports static linking, CocoaPods has expanded this DSL to allow specifying the type of linkage preferred.
现在 Swift 支持静态链接,CocoaPods 扩展了这个 DSL 以允许指定首选的链接类型。
Source: https://blog.cocoapods.org/CocoaPods-1.9.0-beta/来源: https : //blog.cocoapods.org/CocoaPods-1.9.0-beta/
The solution for me was to remove use_frameworks!
我的解决方案是删除
use_frameworks!
from Podfile
.来自
Podfile
。
Don't forget pod install
, clear Derived Data and Erase All Content And Settings
on your Simulator.不要忘记
pod install
,清除派生数据并Erase All Content And Settings
模拟器上的Erase All Content And Settings
。
I have found a detailed solution here with screenshots:我在这里找到了一个带有屏幕截图的详细解决方案:
https://handyopinion.com/solution-failed-to-load-info-plist-from-bundle-at-path-in-xcode/ https://handyopinion.com/solution-failed-to-load-info-plist-from-bundle-at-path-in-xcode/
Steps:脚步:
1. remove use_frameworks! 1.移除 use_frameworks! from Podfile
来自 Podfile
2. Run pod install
command 2.运行
pod install
命令
3. Delete Content of Derived Data Folder. 3.删除派生数据文件夹的内容。 For that navigate to
File -> Workspace Settings
in xCode then navigate to the Derived data folder and remove its content.为此,在 xCode 中导航到
File -> Workspace Settings
,然后导航到 Derived data 文件夹并删除其内容。
Go to YourTarget
> Build Settings
> Packaging
> Info.plist File
and check here the path to your .plist
file.转到
YourTarget
> Build Settings
> Packaging
> Info.plist File
并在此处检查.plist
文件的路径。
Also it would be helpful to clear your derived data
folder, and re-build project again.清除
derived data
文件夹并再次重新构建项目也会很有帮助。
Had the same issue in Pod v1.11.2.在 Pod v1.11.2 中有同样的问题。 I tried restarting the simulator, erasing content, restarting the machine, removed derived data from File->WorkSpace settings -> {derived data}
我尝试重新启动模拟器,擦除内容,重新启动机器,从 File->WorkSpace settings -> {derived data} 中删除派生数据
Nothing worked for me.没有什么对我有用。 Finally, the below magic steps helped,
最后,下面的神奇步骤有所帮助,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.