Dyld 消息:库未加载:/System/Library/Frameworks/FileProvider.framework/FileProvider

Dyld Message: Library not loaded: /System/Library/Frameworks/FileProvider.framework/FileProvider

我正在使用 C++Builder (RAD Studio 10.2.3) 开发多设备应用程序。

Android 版本有效,而 iOS 无效。

我使用 Mac(MacOS 10.3.4)和 Xcode 9.4.1(iOS SDK 11.4),可以选择同时编译 32 位和 64 位版本。

我正在为 Ad Hoc 部署发布它。我的 iPad3,3 (iOS 9.3.5) 通过 USB 连接到我的电脑并与 iTunes 同步。我通过从 PC 拖放到 iTunes 中的设备来安装应用程序。

当我运行 iPad 上的应用程序时,会出现片刻的黑屏,然后什么也没有。如果我在 C:\Users\myuser\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\myiPadName 中读取 .crash 文件(与 iTunes 同步),我会看到:

Incident Identifier: 42CFCEA1-EE7A-4AF3-A7A5-4FA5976B1541
CrashReporter Key:   ad037ec0f72fef57d801caab47534a1552cbae5b
Hardware Model:      iPad3,3
Process:             MyApp [370]
Path:                /private/var/containers/Bundle/Application/04BA1DBE-7049-4FAB-9955-7624B233313C/MyApp.app/MyApp
Identifier:          it.mycompany.myapp
Version:             1.0.0 (1.0.0)
Code Type:           ARM (Native)
Parent Process:      launchd [1]

Date/Time:           2018-08-31 11:28:52.52 +0200
Launch Time:         2018-08-31 11:28:51.51 +0200
OS Version:          iOS 9.3.5 (13G36)
Report Version:      105

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread:  0

Filtered syslog:
None found

Dyld Error Message:
Dyld Message: Library not loaded: /System/Library/Frameworks/FileProvider.framework/FileProvider
  Referenced from: /var/containers/Bundle/Application/04BA1DBE-7049-4FAB-9955-7624B233313C/MyApp.app/MyApp
  Reason: image not found
  Dyld Version: 390.7

Binary Images:
0x50000 - 0x7a3fff FriulMedica armv7  <cdfdbcde54883701825adc5ea65b0b14> /var/containers/Bundle/Application/04BA1DBE-7049-4FAB-9955-7624B233313C/MyApp.app/MyApp
0x1fe60000 - 0x1fe87fff dyld armv7  <146dc907cdf7350eb7cf92a77291119f> /usr/lib/dyld

这只是一个简单的 C++ 应用程序。如果我尝试使用一个简单的 Delphi 应用程序...它会工作...

可能是什么问题?

我解决了这个问题,从 RAD Studio > Tools > Options > Environment Options > SDK Manager 中删除了 FileProvider 框架(似乎可以从 iOS 11 获得)。

测试使用 C++ Builder (RAD Studio 10.3.3) 制作的简单多设备应用程序,目标是 iOS 32 位和 SDK 13.4 到 iPhone 5 iOS 10.3.4连接到我的 MacBook Pro macOS 10.15.4,我遇到了与他 post 中描述的蓝色完全相同的问题。 他提出的解决方案也对我有用:从 RAD Studio > 工具 > 选项 > 环境选项 > SDK 管理器中删除 FileProvider 框架。