Post

Replies

Boosts

Views

Activity

Signing an app
Hi I am working on a MacOs based application. we were signing application using certificate via Xcode. but now my company is not going to provide certificate to us due to some security issue. I have xcarchive file and need to sign it, is it a correct way to get .app signed it and put it back in xcarchive. I am trying to sign .app through command line. there are some third party static libraries in code (SparkleFramework). so signed those too. and then signed .app as well. When I check code sign using "codesign -vvv --deep --strict" it shows me error .app: a sealed resource is missing or invalid any help would be appreciated.
6
0
2.3k
Oct ’21
IOServiceGetMatchingServices not returning graphics model data
I want graphics card details using objective c. used IOServiceGetMatchingServices api for it, its working fine in Intel processor machine, but not returning model info for M1 machine. here is the code I was using    CFMutableDictionaryRef matchDict = IOServiceMatching("IOPCIDevice");        io_iterator_t iterator;        if (IOServiceGetMatchingServices(kIOMasterPortDefault,matchDict,                    &iterator) == kIOReturnSuccess)   {      io_registry_entry_t regEntry;            while ((regEntry = IOIteratorNext(iterator))) {        CFMutableDictionaryRef serviceDictionary;        if (IORegistryEntryCreateCFProperties(regEntry,                          &serviceDictionary,                           kCFAllocatorDefault,                           kNilOptions) != kIOReturnSuccess)       {          IOObjectRelease(regEntry);          continue;       }        const void *GPUModel = CFDictionaryGetValue(serviceDictionary, @"model");                if (GPUModel != nil) {          if (CFGetTypeID(GPUModel) == CFDataGetTypeID()) {            NSString *modelName = [[NSString alloc] initWithData:                       (NSData *)GPUModel encoding:NSASCIIStringEncoding];                        NSLog(@"GPU Model: %@", modelName);           [modelName release];         }       }        CFRelease(serviceDictionary);        IOObjectRelease(regEntry);     }      IOObjectRelease(iterator);   }
2
0
1.5k
Feb ’21