XCode 找不到崩溃日志
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5729606/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
XCode not finding crash logs
提问by Eino Gourdin
I have a problem with XCode organiser
, which is not showing any new iPhone app crash log anymore.
我有一个问题XCode organiser
,它不再显示任何新的 iPhone 应用程序崩溃日志。
I checked in ~/Library/Logs/CrashReporter/MobileDevice
, the files have not been copied there either. Nor are they even if i synchronize the mobile with iTunes.
我签入了~/Library/Logs/CrashReporter/MobileDevice
,文件也没有复制到那里。即使我将手机与 iTunes 同步,它们也不是。
I reproduce the problem with 2 devices (iphone and ipod), however if I connect them on other computers, the logs are visible. So it seems the problem is with this XCode/Mac OS.
我用 2 个设备(iphone 和 ipod)重现了这个问题,但是如果我在其他计算机上连接它们,日志是可见的。所以问题似乎出在这个XCode/Mac OS 上。
Any ideas ? Has anyone come across the same problem ?
有任何想法吗 ?有没有人遇到过同样的问题?
Thanks,
谢谢,
采纳答案by Eino Gourdin
Allright, I found it. I had to reinstall iTunes and the "Mobile Device Service", as shown in here, and now crash logs are visible again.
好的,我找到了。我不得不重新安装iTunes和“移动设备服务”,如在这里,现在的崩溃日志又是可见的。
Edit: as the page fell, here are the steps from the archive.orgpage. Note that those steps worked on Mac Os X 10.6, but may be different on current versions.
编辑:随着页面掉落,以下是来自archive.org页面的步骤。请注意,这些步骤适用于 Mac Os X 10.6,但在当前版本上可能有所不同。
If the issue persists, follow these steps to remove and reinstall the Apple Mobile Device Service on Mac OS X. You'll need to authenticate with an administrator account and password to complete these steps.
- Disconnect your device from your Mac.
- In the Finder, locate iTunes in the Applications folder and drag it to the Trash.
- Move the iTunes icon to the Trash.
- Choose Go> Go to Folder.
- Enter
/System/Library/Extensions
and click Go.- Locate the file
AppleMobileDevice.text
and drag it to the Trash.- Choose Go> Go to Folder.
- Enter
/Library/Receipts/
and click Go.- Locate the file
AppleMobileDeviceSupport.pkg
and drag it to the Trash. If prompted, authenticate with the administrator password.Note: This file may not be present in Mac OS X v10.6 Snow Leopard; skip to the next step if this is the case.
- Restart the computer.
- Choose Finder > Empty Trash and restart the computer.
- Download and install the current version of iTunes.
- Connect your device to the Mac again and open iTunes
如果问题仍然存在,请按照以下步骤在 Mac OS X 上删除并重新安装 Apple 移动设备服务。您需要使用管理员帐户和密码进行身份验证才能完成这些步骤。
- 断开设备与 Mac 的连接。
- 在 Finder 中,在 Applications 文件夹中找到 iTunes,然后将其拖到废纸篓。
- 将 iTunes 图标移至废纸篓。
- 选择“前往”> “前往文件夹”。
- 输入
/System/Library/Extensions
并单击开始。- 找到该文件
AppleMobileDevice.text
并将其拖至废纸篓。- 选择“前往”> “前往文件夹”。
- 输入
/Library/Receipts/
并单击开始。- 找到该文件
AppleMobileDeviceSupport.pkg
并将其拖至废纸篓。如果出现提示,请使用管理员密码进行身份验证。注意:Mac OS X v10.6 Snow Leopard 中可能不存在此文件;如果是这种情况,请跳到下一步。
- 重新启动计算机。
- 选择 Finder > 清空垃圾箱并重新启动计算机。
- 下载并安装当前版本的 iTunes。
- 再次将您的设备连接到 Mac 并打开 iTunes
回答by Raptor
New device / crash logs will only appear when the iPhone is sync with the computer via iTunes.
新设备/崩溃日志仅在 iPhone 通过 iTunes 与计算机同步时才会出现。
Hopefully this will help others.
希望这会帮助其他人。