我的 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
和细节
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;
}
--
最佳答案
使用 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/