Я считаю, что это из -за того, как символы упакованы или составлены, так сказать. /> bluetoothConnectionManager < /strong> < /p>
Код: Выделить всё
private var connectionOptions: [String: Any] = {
if #available(iOS 17.0, *) {
[
CBConnectPeripheralOptionNotifyOnConnectionKey: true,
CBConnectPeripheralOptionEnableAutoReconnect: true,
CBConnectPeripheralOptionEnableTransportBridgingKey: NSNumber(value: true)
]
} else {
[
CBConnectPeripheralOptionNotifyOnConnectionKey: true,
CBConnectPeripheralOptionEnableTransportBridgingKey: true
]
}
}()
Код: Выделить всё
private func startExecutingInitialActions() {
...
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
if isEULAAccepted {
BTCM.shared.tryToConnectToDevice()
...
}
}
}
< /code>
Полезная нагрузка < /p>
dyld[21249]: Symbol not found: _CBConnectPeripheralOptionEnableAutoReconnect
Referenced from: [Redacted]/Library/Developer/CoreSimulator/Devices/21A2FBDC-949D-4C0B-8E18-A233595F24A4/data/Containers/Bundle/Application/9449D6A8-C6E1-4E0C-8C02-407AEA73A61D/tusk-intercom-ios.app/tusk-intercom-ios.debug.dylib
Expected in: /Library/Developer/CoreSimulator/Volumes/iOS_20E247/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 16.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreBluetooth.framework/CoreBluetooth
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/793 ... leautoreco