Xcode 11.3.1 无法从路径中的包加载 Info.plist
Xcode 11.3.1 Failed to load Info.plist from bundle at path
我的 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;
}
--
转到 YourTarget
> Build Settings
> Packaging
> Info.plist File
并在此处检查 .plist
文件的路径。
此外,清除您的 derived data
文件夹并重新构建项目也会有所帮助。
我的解决方案是从 Podfile
中删除 use_frameworks!
。
不要忘记 pod install
,清除模拟器上的派生数据和 Erase All Content And Settings
。
使用CocoaPods v1.9+,如果你不能从Podfile
中删除use_frameworks!
,你可以设置:
use_frameworks! :linkage => :static
Now that Swift supports static linking, CocoaPods has expanded this
DSL to allow specifying the type of linkage preferred.
我在这里找到了详细的解决方案,并附有截图:
https://handyopinion.com/solution-failed-to-load-info-plist-from-bundle-at-path-in-xcode/
步骤:
1.删除use_frameworks!来自 Podfile
2. 运行 pod install
命令
3. 删除派生数据文件夹的内容。为此导航到 xCode 中的 File -> Workspace Settings
,然后导航到派生数据文件夹并删除其内容。
我的 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;
}
--
转到 YourTarget
> Build Settings
> Packaging
> Info.plist File
并在此处检查 .plist
文件的路径。
此外,清除您的 derived data
文件夹并重新构建项目也会有所帮助。
我的解决方案是从 Podfile
中删除 use_frameworks!
。
不要忘记 pod install
,清除模拟器上的派生数据和 Erase All Content And Settings
。
使用CocoaPods v1.9+,如果你不能从Podfile
中删除use_frameworks!
,你可以设置:
use_frameworks! :linkage => :static
Now that Swift supports static linking, CocoaPods has expanded this DSL to allow specifying the type of linkage preferred.
我在这里找到了详细的解决方案,并附有截图:
https://handyopinion.com/solution-failed-to-load-info-plist-from-bundle-at-path-in-xcode/
步骤:
1.删除use_frameworks!来自 Podfile
2. 运行 pod install
命令
3. 删除派生数据文件夹的内容。为此导航到 xCode 中的 File -> Workspace Settings
,然后导航到派生数据文件夹并删除其内容。