简体   繁体   English

Xcode 11.3.1 无法从路径中的包加载 Info.plist

[英]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,最后,下面的神奇步骤有所帮助,

  1. In the pod file replace 'use_frameworks:' with 'use_frameworks: :linkage => :static'在 Pod 文件中,将“use_frameworks:”替换为“use_frameworks: :linkage => :static”
  2. Run 'pod install' // now you might get some other issue运行 'pod install' // 现在你可能会遇到一些其他问题
  3. Revert 'use_frameworks: :linkage =>.static' changes i:e replace 'use_frameworks: :linkage => :static' with 'use_frameworks!'恢复 'use_frameworks: :linkage =>.static' 更改,即用 'use_frameworks!' 替换 'use_frameworks: :linkage => :static'
  4. Again run 'pod install'再次运行“pod install”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从路径上的bundle加载Info.plist - Failed to load Info.plist from bundle at path 无法从包中加载 Info.plist - Failed to load Info.plist from bundle Xcode“找不到Info.plist路径。” - Xcode 'Info.plist path not found.' GoogleMaps SDK - 加载 Info.plist 失败 - GoogleMaps SDK - Failed to load Info.plist Copy Bundle Resources 构建阶段包含此目标的 Info.plist 文件 'Info.plist' in xcode 6? - The Copy Bundle Resources build phase contains this target's Info.plist file 'Info.plist' in xcode 6? 在info.plist(Xcode)中使用相同的包标识符进行不同的构建 - using same bundle identifier in info.plist (Xcode) for different builds Xcode 11 Swift 5 - 无法安装应用程序(无法加载 info.plist 文件) - Xcode 11 Swift 5 - Unable to install app (failed to load info.plist file) Xcode 7错误:无法从Info.plist中读取CFBundleIdentifier(null) - Xcode 7 error: could not read CFBundleIdentifier from Info.plist (null) 在Xcode中,info.plist中的Bundle名称不会更改包名称(.app文件名) - in Xcode, Bundle name in info.plist doesn't change bundle name (.app file name) UIUserInterfaceStyle 键在 Xcode 12 的 Info.plist 中不可用,如何从 Info.plist 禁用 Xcode 12 中的暗模式? - UIUserInterfaceStyle key is not available in Info.plist in Xcode 12, how to disable Dark Mode in Xcode 12 from Info.plist?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM