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

Dmi*_*nko 8 xcode ios cocoapods react-native

我有 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
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

和细节

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;
}
--
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

May*_*ita 25

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

use_frameworks! :linkage => :static
Run Code Online (Sandbox Code Playgroud)

现在 Swift 支持静态链接,CocoaPods 扩展了这个 DSL 以允许指定首选的链接类型。

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

  • 添加 `:linkage =&gt; :static` 有什么后果吗? (2认同)

Dmi*_*nko 6

我的解决方案是use_frameworks!Podfile.

不要忘记pod install,清除派生数据并Erase All Content And Settings在您的模拟器上。