iPhone 应用程序崩溃且没有日志(仅具有分发配置文件)
我的应用程序由于某种原因崩溃了,但我不知道为什么。
应用程序启动后大约 3 秒后就会崩溃。
控制台显示:
<代码> 启动远程程序时出错:无法获取进程 4091 的任务。
正在调试的程序未运行。
但它在调试配置文件或开发人员配置方面没有问题。 (模拟器也没有问题。)
崩溃仅发生在设备中的分发或临时配置时。
调试器还可以使用开发人员配置文件,但不能使用临时(或分发)配置文件。
我已经尝试了很多我能做的事情。
- 删除了我的设备中的旧配置文件,并获取新的。
- 关闭设备并再次打开。
- 删除了分销认证并获得了新的分销认证。并再次收到另一份规定。
他们没有工作。
有人有什么想法吗?
谢谢。
My app crashes for some reason but I can't figure out why.
It just crashes after about 3 seconds after application is launched.
The console says:
Error launching remote program: failed to get the task for process 4091.
The program being debugged is not being run.
But it does not have problem with debug profile or developer provisioning.
( It also does not have problem with simulator. )
The crash only happens with distribution or ad-hoc provisioning in device.
The debugger also works with developer profile but not with ad-hoc(or distribution) profile.
I have tried many things I can do.
- Removed old provision files in my device, and get new ones.
- Turned off the device and on again.
- Removed distribution certification and got new one. And received another provision again.
They did not work.
Does anybody have any idea?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚解决了这个问题。我删除了手机中同一应用程序的所有先前版本。而且效果很好!
也许有某种碰撞。
I just solved the problem. I removed all previous versions of the same application in my phone. And it works fine!
Maybe there's some kind of collision.
当您安装了临时版本并尝试运行调试版本时,通常会发生这种情况,反之亦然。
您无法在调试模式下运行临时版本,即直接从 xcode 运行。
如果您运行临时/分发配置文件,该应用程序将很快退出,但它会在您的手机中安装该应用程序。下次您通过点击手机中的应用程序图标来运行该应用程序时,它将运行临时版本。但是您无法调试从 xcode 运行的 ad hoc 版本。
This normally happens when you have an ad hoc version installed and you try to run a debug version or vice versa.
You cannot run an ad hoc version in debug mode, i.e. directly from xcode.
In case you run the ad hoc/distribution profile, the app will exit soon afterward, but it install the app in your phone. Next time you run the app by tapping the app icon in your phone, it will run the ad hoc version. But you cannot debug the ad hoc version running from xcode.