Einzelnen Beitrag anzeigen

philipp.hofmann
Online

Registriert seit: 21. Mär 2012
Ort: Hannover
864 Beiträge
 
Delphi 10.4 Sydney
 
#2

AW: MacOS: Umstieg von 13.x SDK auf 14.x SDK

  Alt 10. Feb 2024, 18:56
So, läuft jetzt. Ich habe im englischsprachigen Forum eine Lösung gefunden und es wurde auch ein Ticket aufgemacht (https://quality.embarcadero.com/browse/RSP-43324), ich habe es nur mit meinen Keywords nicht direkt gefunden. Das Problem liegt in Macapi.Bluetooth.pas.

{$IFDEF IOS}
libCoreBluetooth = '/System/Library/Frameworks/CoreBluetooth.framework/CoreBluetooth';
{$ELSE}
libCoreBluetooth = '/System/Library/Frameworks/IOBluetooth.framework/Frameworks/CoreBluetooth.framework/CoreBluetooth';
{$ENDIF}

Für MacOS Sonoma (14) ist der Bluetooth-Library-Pfad der gleiche wie für iOS. Nur bin ich trotzdem verwirrt. Die App lief mit SDK 13.3 kompiliert die ganze Zeit bei mir unter MacOS 14. Daher bin ich mir unsicher, ob der folgende Code so stimmt:

Delphi-Quellcode:
{$IFDEF IOS}
  libCoreBluetooth = '/System/Library/Frameworks/CoreBluetooth.framework/CoreBluetooth';
{$ELSE}
    if TOSVersion.Check(14) then
      libCoreBluetooth = '/System/Library/Frameworks/CoreBluetooth.framework/CoreBluetooth';
    else
      libCoreBluetooth = '/System/Library/Frameworks/IOBluetooth.framework/Frameworks/CoreBluetooth.framework/CoreBluetooth';
{$ENDIF}
oder ob es irgendetwas wie das Folgende sein muss:

Delphi-Quellcode:
{$IFDEF IOS}
* libCoreBluetooth = '/System/Library/Frameworks/CoreBluetooth.framework/CoreBluetooth';
{$ELSE}
* {$IFDEF MACOS_SKD_14F}
  * * libCoreBluetooth = '/System/Library/Frameworks/CoreBluetooth.framework/CoreBluetooth';
* {$ELSE}
      libCoreBluetooth = '/System/Library/Frameworks/IOBluetooth.framework/Frameworks/CoreBluetooth.framework/CoreBluetooth';
    {$ENDIF}
{$ENDIF}

Geändert von philipp.hofmann (11. Feb 2024 um 06:12 Uhr)
  Mit Zitat antworten Zitat