runtime 获取设备上所有App的bundle id

来源:互联网 发布:mac安装win8教程 编辑:程序博客网 时间:2024/06/05 06:18
引入 include <objc/runtime.h>

使用下面代码获取设备上安装应用的bundle id

Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);

(    " com.apple.Passbook",    " com.apple.GameController",    " com.apple.MailCompositionService",    " com.apple.calculator",    " com.apple.SharedWebCredentialViewService",    " com.apple.ios.StoreKitUIService",    " com.apple.MobileStore",    " com.apple.tips",    " com.apple.camera",    " com.apple.quicklook.quicklookd",    " com.apple.webapp",    " com.apple.CompassCalibrationViewService",    " com.apple.iad.iAdOptOut",    " com.apple.MusicUIService",    " com.apple.WebContentFilter.remoteUI.WebContentAnalysisUI",    " com.apple.mobilesms.notification",    " com.apple.mobilesms.compose",    " com.apple.Fitness",    " com.apple.videos",    " com.apple.social.SLGoogleAuth",    " com.apple.mobileslideshow",    " com.apple.Health",    " com.apple.purplebuddy",    " com.apple.AccountAuthenticationDialog",    " com.apple.AdSheetPhone",    " com.apple.Diagnostics",    " com.apple.Maps",    " com.apple.PrintKit.Print-Center",    " com.apple.iBooks",    " com.apple.mobilecal",    " com.apple.MobileSMS",    " com.apple.uikit.PrintStatus",    " com.apple.CloudKit.ShareBear",    " com.apple.Music",    " com.apple.podcasts",    " com.apple.compass",    " com.apple.fieldtest",    " com.apple.HealthPrivacyService",    " com.apple.FacebookAccountMigrationDialog",    " com.apple.iosdiagnostics",    " com.apple.AskPermissionUI",    " com.apple.AppStore",    " com.apple.Bridge",    " com.apple.mobilesafari",    " com.apple.weather",    " com.apple.gamecenter",    " com.apple.appleaccount.AACredentialRecoveryDialog",    " com.apple.PhotosViewService",    " com.apple.facetime",    " com.apple.VoiceMemos",    " com.apple.mobilenotes",    " com.apple.Preferences",    " com.apple.mobilephone",    " com.apple.share",    " com.apple.reminders",    " com.apple.mobiletimer",    " com.apple.TencentWeiboAccountMigrationDialog",    " com.apple.MobileAddressBook",    " com.apple.CoreAuthUI",    " com.apple.datadetectors.DDActionsService",    " com.apple.PassbookUIService",    " com.apple.TrustMe",    " com.apple.family",    " com.apple.webapp1",    " com.apple.appleseed.FeedbackAssistant",    " com.apple.InCallService",    " com.apple.WebSheet",    " com.apple.mobilemail",    " com.apple.stocks",    " com.apple.gamecenter.GameCenterUIService",    " com.apple.PreBoard",    " com.apple.SiriViewService",    " com.apple.DemoApp",    " com.apple.WebViewService",    " com.booltinteam.tinynote",    " com.chunyu.SymptomChecker",    " com.netease.videoHD",    " me.imtx.TomatoTimer",    " com.codality.NotationalFlow",    " com.dajie.djapp",    " com.evernote.iPhone.Evernote",    " com.yongche.iYongche",    " ch.noidentity.Next",    " com.realmacsoftware.clear",    " com.jianshu.Hugo",    " com.taobao.tmall",    " com.apple.itunesu",    " com.kapeli.dashios",    " de.floriankugler.objcio",    " com.shiningtrip.wochacha4",    " com.apple.itunesconnect.mobile",    " me.imtx.NewLime",    " com.codeorgana.brushstroke",    " com.tencent.sosomap",    " com.huxiu",    " com.taobao.taobao4iphone",    " com.gpl.dailycost",    " com.dajie.PositionInvitation",    " com.apple.Keynote",    " com.netease.mailmaster",    " com.xiami.spark",    " com.xiaojukeji.didi",    " com.kingsoft.powerwordBeta",    " cn.geili.IShopping2",    " com.vstudio.camera360",    " com.autohome.quote",    " com.amazon.Lassen",    " com.tencent.mqq",    " com.autonavi.amap",    " com.tencent.ioshlddz",    " com.stackexchange.stackexchange",    " com.brixd.Nice-Wallpaper",    " com.lede.trainticket",    " com.acqualia.soulver-iPhone",    " com.netease.cloudmusic",    " com.bluerhino.client",    " cn.dxy.aspirinpro",    " com.tiantian.-684--",    " com.leanpub.Leanpub",    " com.duokan.reader",    " com.apple.Pages",    " com.ideashower.ReadItLaterPro",    " com.cmbchina.MPBBank",    " com.apple.bird.SharedPackageExtensions",    " com.culturedcode.ThingsTouch",    " com.flexibits.fantastical2.iphone",    " cn.12306.rails12306",    " com.chinaunicom.mobilebusiness",    " com.openet.gtgj",    " com.burbn.instagram",    " com.sina.weibo",    " com.khanov.Symbols",    " fm.overcast.overcast",    " com.eicodesign.weibopro",    " de.dennisreimann.iOctocat2",    " com.apple.Numbers",    " com.cmbchina.cmblife",    " eusoft.eudic.pro",    " com.youdao.bigbangEnglish",    " cn.com.admaster.SurveyPrize",    " com.apple.mobileme.fmip1",    " me.chriscsc.LongScreen",    " com.dayonelog.dayoneiphone",    " com.moke.moke-2",    " com.dajie.sjmq",    " au.com.shiftyjelly.podcasts",    " com.funcity.taxi",    " io.manong.DeveloperDaily",    " com.taofang.iphone",    " com.ifttt.ifttt",    " com.ordinaryfactory.analogfilm",    " com.xinniangshuo.iphone",    " com.mchina.hbh",    " com.reederapp.rkit2.ios",    " com.gtja.yhtkh",    " com.quora.app.mobile",    " com.itouchchina.chinametro",    " com.hooks.hooks",    " com.6wunderkinder.wunderlistmobile",    " com.auramarker.zine",    " com.tencent.xin",    " com.tapbots.Tweetbot3",    " com.squaremountains.PeekCalendar",    " com.baidu.map",    " com.autohome",    " com.360buy.jdmobile",    " com.meituan.imeituan",    " com.ninjinkun.webviewprogress.DemoApp",    " com.tangyumeng.WeakDemo",    " com.vipshop.iphone",    " com.Fingertip",    " com.openet.gtgj (Placeholder)",    " com.apple.MobileReplayer",    " com.qunar.iphoneclient8",    " com.brixd.niceapps",    " com.zhihu.ios",    " com.mukewang.mukewang",    " com.sf-express.waybilltracking",    " cn.rafood.rubychina",    " com.letv.iphone.client",    " com.lofocus.doubandushu",    " com.douban.read.iphone",    " com.souyidai.investment",    " com.baidu.tieba",    " com.aibang.bus",    " com.dianping.dpscope",    " com.xueqiu",    " com.jiemian.news",    " com.fingertip")




0 0
原创粉丝点击