幸运飞艇停吗

ASP源碼.NET源碼PHP源碼JSP源碼JAVA源碼DELPHI源碼PB源碼VC源碼VB源碼Android源碼
當前位置:首頁 >> 網絡編程 >> IOS開發 >> iOS 如何獲取 Mach-O 的 UUID

iOS 如何獲取 Mach-O 的 UUID(1/3)

來源:網絡整理     時間:2018-11-01     關鍵詞:

BENPIANWENZHANGZHUYAOJIESHAOLE" iOS RUHEHUOQU Mach-O DE UUID",ZHUYAOSHEJIDAOFANGMIANDENEIRONG,DUIYUIOSKAIFAGANXINGQUDETONGXUEKEYICANKAOYIXIA: LC_UUID YIBANJIANCHENGWEI UUID,SHIYONGLAIBIAOSHI Mach-O WENJIANDE,ZUOGUOBENGKUIDUIZHANFUHAOHUAHUANYUANDETONGXUEYINGGAIDOUZHIDAOYOU UUID ZHEGEDONGXI,NIZAIJINXINGFUHAOJIEXIDESHIHOU,JIU...

LC_UUID YIBANJIANCHENGWEI UUID,SHIYONGLAIBIAOSHI Mach-O WENJIANDE,ZUOGUOBENGKUIDUIZHANFUHAOHUAHUANYUANDETONGXUEYINGGAIDOUZHIDAOYOU UUID ZHEGEDONGXI,NIZAIJINXINGFUHAOJIEXIDESHIHOU,JIUXUYAOZHAODAOYUXITONGKUHENI APP DE UUID XIANGTONGDE dSYM WENJIANLAIJINXINGDUIZHANDIZHIHUANYUAN。

HUOQU dSYM WENJIANDE UUID BIJIAOJIANDAN,SUIBIANYONGYIGEGONGJUJIUNENGCHAKAN UUID,NEIMERUHEHUOQU APP JIQIDONGTAIKUDE UUID NI?


$ xcrun dwarfdump --uuid 
UUID: E73A4300-F6E5-3124-98DF-1578B8D4F96A (armv7) GYMonitorExample.app.dSYM/Contents/Resources/DWARF/GYMonitorExample
UUID: 44E27054-508E-37EF-9296-44400C5F19E1 (arm64) GYMonitorExample.app.dSYM/Contents/Resources/DWARF/GYMonitorExample

幸运飞艇停吗HUOQU APP DE UUID

DANGCHUXIANGZHIHUOQU APP DE dSYM WENJIANDE UUID HEDUIZHANFASHENGSHIDUIYINGSHEBEIDE APP UUID,SUOYIZHIJIE Google YISOUJIUYOUDAAN:http://stackoverflow.com/questions/10119700/how-to-get-mach-o-uuid-of-a-running-process


#import 
NSString *executableUUID()
{
    const uint8_t *command = (const uint8_t *)(&_mh_execute_header + 1);
    for (uint32_t idx = 0; idx < _mh_execute_header.ncmds; ++idx) {
        if (((const struct load_command *)command)->cmd == LC_UUID) {
            command += sizeof(struct load_command);
            return [NSString stringWithFormat:@"XXXX-XX-XX-XX-XXXXXX",
                    command[0], command[1], command[2], command[3],
                    command[4], command[5],
                    command[6], command[7],
                    command[8], command[9],
                    command[10], command[11], command[12], command[13], command[14], command[15]];
        } else {
            command += ((const struct load_command *)command)->cmdsize;
        }
    }
    return nil;
}

幸运飞艇停吗BASHANGSHUFANGFAFANGZAI AppDelegate ZHONGJINXINGCESHI,CESHIJIEGUOWANQUANZHENGQUE,XICHUWANGWAI。SHANGSHUDAIMADEDAGAIYISISHIHUOQU MH_EXECUTE (KEZHIXINGDEZHU image )WENJIANDE Load Command,BINGQIELIYONG For XUNHUANBIANLISUOYOUDE Load Command,ZHAODAOLEIXINGWEI LC_UUID DE Load Command,JINERHUOQU UUID。

ZAI Pod ZHONGHUOQU APP DE UUID

YINWEIBENGKUICAIJISHIZAIYIGEDULIDEKUZHONGJINXINGDE,ZAIBENGKUISHIXIANGYAOCAIJI UUID DEHUAYEYINGGAIZAIDANGQIANKUZHONGHUOQU UUID,YINWEI Pod SHIYONGLE use_frameworks ,SUOYIWENTIJIUBIANCHENGLERUHEZAIYIGEDONGTAIKUZHONGHUOQU APP DE UUID,JINGTAIKUHUIBADAIMAFUZHIDAOZHU APP ZHONG,ERDONGTAIKUSHIYIGEDULIDE Mach-O WENJIAN。BASHANGMIANDAIMAZHIJIEDIUZAI Pod ZHONGSHIYONGSHIXINGBUTONGDE,YINWEI _mh_execute_header ZAI MH_DYLIB ZHONGWUFASHIYONG。

相關圖片

相關文章