应用程序在启动时死机,但不崩溃报告 [英] App dies on startup but not crash report

查看:215
本文介绍了应用程序在启动时死机,但不崩溃报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为某些用户提供了我的应用程式的特别版本。其中两个有应用程序死在启动时,一个用户没有问题。我也可以安装ad hoc没有问题...但这是我的情况。一个用户从Xcode组织者控制台发送了下面的信息。他们没有找到任何崩溃日志。我不知道下面的信息做什么。一个突出的是Permission denied。



我将配置和myapp.app文件放在保管箱文件夹中。然后,用户从同一位置检索文件。我对下拉框中的.app文件运行codesign并获取有效的输出:

  codesign -vvvv myapp.app 
myapp.app:在磁盘上有效
myapp.app:满足其指定的要求

任何人都有一些想法我如何能弄清楚为什么应用程序不工作为这个用户?



这里是一个用户的控制台输出。他们找不到任何相关联的崩溃日志:

 统计资料
totalMLSITDBPostProcessing = 5.31s
commands = 0.01
misc = 0.45s
icuSort = 4.41s(MLS_icu_data = 0.23s,MLS_icu_sec_data = 0.13,dropIdx = 0.04,normalization = 0.13,update_orders = 1.31,tStatsICUOther1 = 0.02,createIndex = 2.50)
Sun Dec 13 12:35:04未知com.apple.launchd [1]<错误> ;:(UIKitApplication:com.cygen.myapp [0x8cb6])posix_spawn(/ var / mobile / Applications / 4B036396-3294-4E0A- BBCC-4118E72846D4 / myapp.app / myapp,...):权限被拒绝
Sun Dec 13 12:35:04未知com.apple.launchd [1]<警告> ;:(UIKitApplication:com.cygen .myapp [0x8cb6])退出退出代码:1
Sun Dec 13 12:35:04未知SpringBoard [24]<警告>无法产生myapp。无法获取pid 179的任务名称端口:(os / kern)失败
Sun Dec 13 12:35:04未知com.apple.launchd [1]<警告> ;:(UIKitApplication:com.cygen .myapp [0x8cb6])调用重新启动:将在2147483647秒开始
Sun Dec 13 12:35:04未知SpringBoard [24]<警告>:应用程序'myapp'退出异常退出状态1
Sun Dec 13 12:35:10未知的springboardservicesrelay [155]<警告>:无法解析长度为0的属性列表数据:
Sun Dec 13 12:35:13未知com.apple.launchd [1] ;错误> ;:(UIKitApplication:com.cygen.myapp [0x3ce5])posix_spawn(/ var / mobile / Applications / 4B036396-3294-4E0A-BBCC-4118E72846D4 / myapp.app / myapp,...):权限被拒
Sun Dec 13 12:35:13未知com.apple.launchd [1]<警告> ;:(UIKitApplication:com.cygen.myapp [0x3ce5])退出退出代码:1
Sun Dec 13 12:35:13 unknown SpringBoard [24]<警告>:无法产生myapp。无法获取pid 182的任务名端口权限:(os / kern)失败
Sun Dec 13 12:35:13未知com.apple.launchd [1]<警告> ;:(UIKitApplication:com.cygen .myapp [0x3ce5])调用重新启动:将在2147483647秒开始
Sun Dec 13 12:35:13未知SpringBoard [24]<警告>:应用程序'myapp'退出异常退出状态1
c>


解决方案

Ad-hoc分发是非常棘手的。如果你错过了一件事,整个链条就会失败。这是我能想到的,从我的头顶,基于它的工作至少一个用户的事实:


  1. 您确定移动自组织配置证书包含看到失败的用户的UDID吗?

  2. 这些用户的设备上是否有旧证书? (即是否在安装新的证书之前删除了现有的证书?)设置 - >常规 - >配置文件

  3. 您确定代码签名的.app包包含这些用户的UDID,里面的文件名为embedded.mobileprovisioning? ( ProvisionedDevices 键)

  4. 移动设置证书是否过期?


  5. 在安装之前,用户是否已重命名应用程序包?

  6. 构建?


I've given an ad hoc version of my app to some users. Two of them have the app die on start up while one user has no issues. I can also install the ad hoc without issue...but that is always the case for me. One user sent the info below from the Xcode Organizer Console. They didn't find any crash logs. I don't know what to make of the info below. The one thing that stands out is "Permission denied".

I place the provisioning and myapp.app files in a dropbox folder. The user then retrieves the files from the same location. I've run codesign against the .app file in the dropbox and get valid output:

codesign -vvvv myapp.app
myapp.app: valid on disk
myapp.app: satisfies its Designated Requirement

Any one have some ideas how I can figure out why the app doesn't work for this user?

Here is the Console output from one user. They couldn't find any associated crash logs:

Stats
totalMLSITDBPostProcessing=5.31s
commands=0.01
misc=0.45s
icuSort=4.41s (MLS_icu_data=0.23s, MLS_icu_sec_data=0.13, dropIdx=0.04, normalize=0.13, update_orders=1.31, tStatsICUOther1=0.02, createIndex=2.50)
Sun Dec 13 12:35:04 unknown com.apple.launchd[1] <Error>: (UIKitApplication:com.cygen.myapp[0x8cb6]) posix_spawn("/var/mobile/Applications/4B036396-3294-4E0A-BBCC-4118E72846D4/myapp.app/myapp", ...): Permission denied
Sun Dec 13 12:35:04 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.cygen.myapp[0x8cb6]) Exited with exit code: 1
Sun Dec 13 12:35:04 unknown SpringBoard[24] <Warning>: Failed to spawn myapp. Unable to obtain a task name port right for pid 179: (os/kern) failure
Sun Dec 13 12:35:04 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.cygen.myapp[0x8cb6]) Throttling respawn: Will start in 2147483647 seconds
Sun Dec 13 12:35:04 unknown SpringBoard[24] <Warning>: Application 'myapp' exited abnormally with exit status 1
Sun Dec 13 12:35:10 unknown springboardservicesrelay[155] <Warning>: Unable to parse property list data of length: 0
Sun Dec 13 12:35:13 unknown com.apple.launchd[1] <Error>: (UIKitApplication:com.cygen.myapp[0x3ce5]) posix_spawn("/var/mobile/Applications/4B036396-3294-4E0A-BBCC-4118E72846D4/myapp.app/myapp", ...): Permission denied
Sun Dec 13 12:35:13 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.cygen.myapp[0x3ce5]) Exited with exit code: 1
Sun Dec 13 12:35:13 unknown SpringBoard[24] <Warning>: Failed to spawn myapp. Unable to obtain a task name port right for pid 182: (os/kern) failure
Sun Dec 13 12:35:13 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.cygen.myapp[0x3ce5]) Throttling respawn: Will start in 2147483647 seconds
Sun Dec 13 12:35:13 unknown SpringBoard[24] <Warning>: Application 'myapp' exited abnormally with exit status 1

解决方案

Ad-hoc distribution is notoriously tricky. If you've missed one thing, the whole chain fails. Here's what I can think of, off the top of my head, based on the fact that it works for at least one of your users:

  1. Are you certain that the mobile ad-hoc provisioning certificate contains the UDID for the users who are seeing it fail?
  2. Do those users have an old certificate on their device? (i.e. did you delete the existing certificate before installing a new one? Settings->General->Profiles)
  3. Are you certain the code-signed .app bundle contains the UDIDs for those users, inside the file named embedded.mobileprovisioning? (Under the ProvisionedDevices key)
  4. Is the mobile provisioning certificate expired?
  5. Is your developer code-sign certificate expired?
  6. Was the application package renamed by the user before installation?
  7. Did you try doing a clean before doing the distribution build?

这篇关于应用程序在启动时死机,但不崩溃报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆