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

标签 ios xcode react-native cocoapods

我的 React Native 项目在 Xcode 升级到版本 11.3.1 后停止工作。错误如下

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

和细节
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

最佳答案

使用 CocoaPods v1.9+,如果无法删除 use_frameworks!来自 Podfile ,您可以设置:

use_frameworks! :linkage => :static

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



来源:https://blog.cocoapods.org/CocoaPods-1.9.0-beta/

关于ios - Xcode 11.3.1 无法从路径中的包加载 Info.plist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59940644/

相关文章:

react-native - 导航器已被弃用,即使我不使用导航器也已被删除

ios - 如何根据我在另一个 ViewController 中的信息更改插入到 TableCell 上的数组?

ios - Adobe Air 的 DeviceOrientationEvent

ios - 展开多个导航 Controller

iphone - phonegap 2.6 iOS 程序中出现意外的 '@'

android - React Native问题: WebView has been removed from React Native

ios - dat转换IOS报错

swift - 为什么 Swift 不能从 CLI 运行?

ios - 在 ios 中为 MBCalendar Kit 添加事件

json - React Native 如何存储和处理 JSON 数据?