Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126742

QSysInfo::machineUniqueId() is not unique on MacOS with upgrade mac15

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15.10
    • Core: Other
    • None
    • macos 15.0 for beta
    • macOS

    Description

      the function QSysInfo::machineUniqueId() returns the same value for mac os 14.x, but this value changes after each update of the mac OS 15.x

      this is a code for : QSysInfo::machineUniqueId()

       
       

      charuuid[UuidStringLen +1]; 
      io_service_t service =IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("IOPlatformExpertDevice")); 
      QCFString stringRef = (CFStringRef)IORegistryEntryCreateCFProperty(service, CFSTR(kIOPlatformUUIDKey), kCFAllocatorDefault, 0); CFStringGetCString(stringRef, uuid, sizeof(uuid), kCFStringEncodingMacRoman); 
      returnQByteArray(uuid);

       
       

       

       

      any ideas?

      thank you

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            ytb TB Yi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes