iOS9,10系统安装不了企业包的原因

最近碰到奇葩问题,企业包只在iOS9,iOS10下载安装不了报错:

图片.png

其他手机是可以下载的,
但是查看项目APP和extension都是最低支持iOS8,iOS9的,没有理由iOS10不能下载的
开始不好定位原因,因为没有日志输出
后面通过mac 控制台输出日志来看,在后来通过https://github.com/FIRHQ/LogGuru/releases工具
通过来看日志输出的,但是还是很模糊
后面通过蒲公英工具来看日志
报错日志(摘录):
、、、
itunesstored➜LaunchServices: installing placeholder for <LSApplicationProxy: 0x124e76920> xxx.xxx.xxxxx.xxxxx <(null) Not found in database>

itunesstored➜LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x124dc0bc0> xxx.xxx.xxxxx.xxxxx (Placeholder) <file:///private/var/mobile/Containers/Bundle/Application/FDF5263C-2219-4717-9DB9-CB3BBCB9CBA6/-5601841554507081690.app> withPhase:0
20:43:50 itunesstored➜LaunchServices: installPhaseFinishedForProgress: xxx.xxx.xxxxx.xxxxx.Loading - <NSProgress: 0x124da4d80> : Parent: 0x0 / Fraction completed: 1.0000 / Completed: 1 of 1 called, removing progress from cache

installd➜0x16e2d3000 +[MIContainer allContainersForIdentifier:options:error:]: 348: No bundle container found for identifier xxx.xxx.xxxxx.xxxxx

mobile_installation_proxy➜0x16e087000 LoadInfoPlist: Failed to create CFBundle from URL file:///private/var/mobile/Containers/Bundle/Application/95B91FA1-0D01-4195-A855-7B7E1A3D5D83/PGDribbble.app

LSInstallProgress: In subscribeBlock: could not find parent progress for xxx.xxx.xxxxx.xxxxx, it may have been removed

libMobileGestalt MobileGestalt.c:276: server_access_check denied access to question UniqueDeviceID for pid 222

CircleJoinRequested➜Can't read state data (p=file:///var/mobile/Library/Preferences/com.apple.security.CircleJoinRequested.plist, err=Error Domain=NSCocoaErrorDomain Code=260 "未能打开文件“com.apple.security.CircleJoinRequested.plist”,因为它不存在。" UserInfo={NSFilePath=/var/mobile/Library/Preferences/com.apple.security.CircleJoinRequested.plist, NSUnderlyingError=0x154508a60 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}})

0x16e6cb000 -[MIPluginKitPluginBundle overlaidInfoPlistWithError:]: 215: Appex bundle at /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.t4Qs2I/extracted/Payload/xxxx.app/PlugIns/XsitScreen.appex with id xxx.xxx.xxxxx.xxxxx.shareScreenExtension specifies a value (com.apple.broadcast-services-upload) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point.

iPhone installd → <Error>: 0x16e12f000 -[MIPluginKitPluginBundle overlaidInfoPlistWithError:]: 159: Appex bundle at /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KYuLig/extracted/Payload/xxx.app/PlugIns/iChatScreen.appex with id xxx.xxx.xxxx.shareScreenExtension specifies a value (com.apple.broadcast-services-upload) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point.
10:36:06 iPhone itunesstored → <Error>: 0x16e12f000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=59 "Appex bundle at /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KYuLig/extracted/Payload/xxx.app/PlugIns/iChatScreen.appex with id xxx.xxx.xxxx.shareScreenExtension specifies a value (com.apple.broadcast-services-upload) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point." UserInfo={LegacyErrorString=AppexBundleUnknownExtensionPointIdentifier, FunctionName=-[MIPluginKitPluginBundle overlaidInfoPlistWithError:], SourceFileLine=159, NSLocalizedDescription=Appex bundle at /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.KYuLig/extracted/Payload/xxx.app/PlugIns/iChatScreen.appex with id xxx.xxx.xxxx.shareScreenExtension specifies a value (com.apple.broadcast-services-upload) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point.}
10:36:06 iPhone lsd → <Warning>: LaunchServices: Setting progress = FAILED for app xxx.xxx.xxxx

in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point." UserInfo={LegacyErrorString=AppexBundleUnknownExtensionPointIdentifier, FunctionName=-[MIPluginKitPluginBundle overlaidInfoPlistWithError:]

that does not correspond to a known extension point
、、、
后面慢慢从长长日志中找出了关键点,所以一定要耐心,我差点都放弃了


图片.png

找出了com.apple.broadcast-services-upload这个错误,是录屏extension导致的,所以后面把录屏extension移除掉,把有关录屏第三方sdk移除掉,下载成功了 并项目运行成功,原来


图片.png

是支持iOS11以上,而在录屏extension设置支持iOS9没有什么效果,这也是一大坑. 写出来目的让后面碰到这种问题能快速解决,不会浪费太多时间在这
如果碰到这种情况要有录屏功能又要适配低版本怎么办呢?因为这是考虑的,做法就是添加extension时选择支持最低版本应该是选择当前extension支持最低版本,不能虚假支持更低版本,不然导致低版本安装不了。切记!!


图片.png

蒲公英借鉴:https://www.pgyer.com/doc/view/ios_install_failed
借鉴链接:https://blog.csdn.net/mingming24/article/details/49095933 blog.csdn.net/lck8989/art…
苹果官网:https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/AppExtensionKeys.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 158,117评论 4 360
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 66,963评论 1 290
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 107,897评论 0 240
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,805评论 0 203
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,208评论 3 286
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,535评论 1 216
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,797评论 2 311
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,493评论 0 197
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,215评论 1 241
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,477评论 2 244
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 31,988评论 1 258
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,325评论 2 252
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 32,971评论 3 235
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,055评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,807评论 0 194
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,544评论 2 271
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,455评论 2 266

推荐阅读更多精彩内容

  • 伴随这iOS 8 系统多达4000项API更新而来同样还有Today Extension.而对iOS而言,有了To...
    chenkai阅读 13,428评论 21 100
  • 很可能你的应用是与一个支持HTTPS传输数据的服务器交互,但是并没有使用TLS 1.2或更高。在这种情况下,你定义...
    Www刘阅读 2,958评论 0 5
  • 沙盒 iOS沙盒详细介绍iOS沙盒篇 沙盒机制介绍 iOS中的沙盒机制是一种安全体系。为了保证系统安全,iOS每个...
    ProgramDouglas阅读 1,247评论 0 0
  • 一.应用场景 先来谈谈是什么情况下,会有在模拟器上安装app的需求。 在一个大公司里,对源码的管理有严格的制度,非...
    一叶夏幕阅读 7,147评论 1 2
  • iOS扩展是指?能否列举一些热门或常见的范例? 转自:http://www.cnblogs.com/xdream8...
    JunkieBa阅读 3,628评论 0 1