Ios 为企业分发导出应用程序时的0权限

Ios 为企业分发导出应用程序时的0权限,ios,xcode,ipa,enterprise-distribution,Ios,Xcode,Ipa,Enterprise Distribution,在尝试导出两个iOS应用程序进行企业分发时,我遇到了一个问题,组织者显示了我的应用程序的“0权限”,而没有选择配置文件 创建.IPA文件时,这不会导致任何错误。但是,在我将.ipa和.plist放置到我的站点后,应用程序将无法成功安装。当我尝试安装时,当“加载…”时,它开始在应用程序图标上显示进度指示器,但随后它消失,我收到一条通用消息: 无法下载应用程序-“我的应用程序名称”此时无法安装 具有重试选项 我的其他几个应用程序没有这个问题,它们在organizer中显示了4项权利和资源调配配置文

在尝试导出两个iOS应用程序进行企业分发时,我遇到了一个问题,组织者显示了我的应用程序的“0权限”,而没有选择配置文件

创建.IPA文件时,这不会导致任何错误。但是,在我将.ipa和.plist放置到我的站点后,应用程序将无法成功安装。当我尝试安装时,当“加载…”时,它开始在应用程序图标上显示进度指示器,但随后它消失,我收到一条通用消息:

无法下载应用程序-“我的应用程序名称”此时无法安装

具有重试选项

我的其他几个应用程序没有这个问题,它们在organizer中显示了4项权利和资源调配配置文件。生产配置文件是一个“公司通配符”,因此它的结构是
com.mycompanyname.*
I已确认工作代码和非工作代码的应用程序ID遵循完全相同的结构。在我选择用于资源调配的开发团队后,工作应用程序似乎会自动拾取配置文件,如以下其中一个工作应用程序所示:

即使我在目标的构建设置中特别选择了我的生产分发配置文件,在尝试分发我的应用程序时也不包括配置文件

为了解决这个问题,我尝试了这里答案中列出的所有步骤,以及一些未被接受的答案中的一些变通方法:。供参考,无需点击

  • 修正1:我没有在清单中包含图像,所以我知道它们没有错
  • 修正2:这个有问题的应用程序只有几个月的历史,我正在一台从发布之日起就拥有iOS 8的设备上进行测试
  • 修复3:我已确认我的资源调配配置文件处于活动状态
  • 修正4:我没有在控制台中得到
    验证阶段失败的
    错误
  • 其他:尝试从步骤@thomas的答案手动创建my.ipa
  • 其他:我没有在控制台中获得重复bundleID错误
  • 其他:我已经试着在我的目标的“常规”选项卡上将我的“团队”设置为我的实际开发帐户和“无”
我绞尽脑汁想弄明白为什么我的权利没有在组织者中首先出现,所以任何建议都是非常受欢迎的。下面我列出了当我的设备无法安装我的应用程序时,我认为是来自设备控制台的相关日志(有些编辑):

Jan 19 10:37:47我的设备名称SpringBoard[48]:为安装应用程序而终止com.companyName.AppName
Jan 19 10:37:47我的设备名称iTunestored[82]:LaunchServices:为现有占位符com.companyName.AppName(占位符)安装应用程序
Jan 19 10:37:47我的设备名称iTunestored[82]:LaunchServices:创建应用程序的安装进度:com.companyName.AppName(占位符),阶段:1
Jan 19 10:37:47我的设备名称lsd[74]:LaunchServices:更新父设备的installPhase:父设备:0x0/完成分数:0.5100/完成:51/100比1
Jan 19 10:37:47我的设备名称已安装[40]:0x100484000-[MIClientConnection\u doBackgroundInstallationForPath:with options:completion::安装/var/mobile/Media/Downloads/4200584489248642015/-6824318255463645847”类型iTunestored请求的客户(pid 82)
Jan 19 10:37:47我的设备名称已安装D[40]:0x100484000+[MIInstallable InstallableSatural:packageFormat:userOptions:错误:]:52:无法在处检查程序包file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted (错误域=NSposiXerorDomain代码=2“_iterateDirectoryfor”file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted/Payload 未返回此类文件或目录“UserInfo=0x15d61c6b0”{SourceFileLine=413,NSLocalizedDescription=\u的迭代目录file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted/Payload 未返回此类文件或目录,FunctionName=-[MIFileManager UrlsForestMsindirectoryAtUrl:error:})
Jan 19 10:37:47我的设备名称iTunestored[82]:0x10231c000 uu mobileininstallationinstallforlaunchservices u block invoke240:返回的错误域=MIInstallerErrorDomain=6“无法检查位于file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted“UserInfo=0x12ee51240{NSLocalizedDescription=无法检查位于的包file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted,LegacyErrorString=PackageInspectionFailed,FunctionName=+[MIInstallable installablesAtURL:packageFormat:userOptions:error:],SourceFileLine=52,NUnderlyingError=0x12ef3e6f0”_迭代目录file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted/Payload 没有返回这样的文件或目录“}
Jan 19 10:37:47我的设备名称iTunestored[82]:错误:MobileInstallationInstallForLaunchServices返回了零
Jan 19 10:37:47我的设备名称lsd[74]:LaunchServices:安装app com.companyName.AppName失败
Jan 19 10:37:47我的设备名称iTunestored[82]:LaunchServices:installPhaseFinishedForProgress:com.companyName.AppName.Installing-:父项:0x0/已完成分数:0.0000/已完成:调用100中的0,正在从缓存中删除进度

我找到了解决问题的方法,那就是为所有应用程序创建显式应用程序ID。我不知道在生产应用程序中使用通配符应用程序ID是否有新问题,但当我创建显式ID(以及每个显式ID的配置文件)时,我不再遇到这个问题

仍然不确定为什么我的一些应用程序会选择通配符配置文件,而其他应用程序不会选择通配符配置文件,但至少有一个解决方案可用。

很像SSL c
Jan 19 10:37:47 My-Device-Name SpringBoard[48] <Warning>: Killing com.companyName.AppName for app installation
Jan 19 10:37:47 My-Device-Name itunesstored[82] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x12ed94f40> com.companyName.AppName (Placeholder)
Jan 19 10:37:47 My-Device-Name itunesstored[82] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x12ed94f40> com.companyName.AppName (Placeholder) withPhase:1
Jan 19 10:37:47 My-Device-Name lsd[74] <Warning>: LaunchServices: Updating installPhase for parent <NSProgress: 0x1345516b0> : Parent: 0x0 / Fraction completed: 0.5100 / Completed: 51 of 100   to 1
Jan 19 10:37:47 My-Device-Name installd[40] <Notice>: 0x100484000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/Downloads/4200584489248642015/-6824318255463645847" type Customer requested by itunesstored (pid 82)
Jan 19 10:37:47 My-Device-Name installd[40] <Error>: 0x100484000 +[MIInstallable installablesAtURL:packageFormat:userOptions:error:]: 52: Failed to inspect package at file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted (Error Domain=NSPOSIXErrorDomain Code=2 "_IterateDirectory for file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted/Payload returned No such file or directory" UserInfo=0x15d61c6b0 {SourceFileLine=413, NSLocalizedDescription=_IterateDirectory for file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted/Payload returned No such file or directory, FunctionName=-[MIFileManager urlsForItemsInDirectoryAtURL:error:]})
Jan 19 10:37:47 My-Device-Name itunesstored[82] <Error>: 0x10231c000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=6 "Failed to inspect package at file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted" UserInfo=0x12ee51240 {NSLocalizedDescription=Failed to inspect package at file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted, LegacyErrorString=PackageInspectionFailed, FunctionName=+[MIInstallable installablesAtURL:packageFormat:userOptions:error:], SourceFileLine=52, NSUnderlyingError=0x12ef3e6f0 "_IterateDirectory for file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7eIGCb/extracted/Payload returned No such file or directory"}
Jan 19 10:37:47 My-Device-Name itunesstored[82] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jan 19 10:37:47 My-Device-Name lsd[74] <Warning>: LaunchServices: installation failed for app com.companyName.AppName
Jan 19 10:37:47 My-Device-Name itunesstored[82] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.companyName.AppName.Installing - <NSProgress: 0x13004e800> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100   called, removing progress from cache