iphone/ios adHoc 分发崩溃(仅在 adHoc 分发的情况下关闭)
我使用 Facebook API 制作了一个应用程序。我完成了它,当我使用开发代码签名在我的设备上运行我的应用程序时,完全没有问题。
因此,我尝试使用 adHoc 分发代码签名来制作它,并且构建成功了。当它通过任何其他功能时也没有问题。
但是,当我尝试向 Facebook 分享某些内容(使用 Facebook 对话框 API)时,该应用程序会关闭,尽管它在我的设备上有开发代码签名时运行良好。
我无法调试,因为这是临时版本,所以我不知道问题是什么。你能让我知道问题是什么吗? 什么情况下什么时候会出现这种情况?
I've made an app using the Facebook API. I completed it, and there's no problem at all when I run my app on my device with development code signing.
So, I tried making it with adHoc distribution code signing and building was succeeded. There's also no problem when it goes through any other functions.
But when I try to share something to Facebook (using Facebook dialog API), this app shut down even though it worked well in case of development code sign on my device.
I can't debug cause this is adHoc version, so I don't know what the problem is. Can you let me know what the problem is?
When does this happen in what case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有什么问题吗?从您的设备中删除该应用程序,然后将 ipa 与 iTunes 安装到您的设备上。然后,当您的设备仍处于连接状态时,转到 Xcode =>主办方 =>设备 =>您的设备 =>在您的设备上控制台并启动您的应用程序。然后您应该看到崩溃的原因。
What's the problem? Delete the app from your device, then install the ipa with itunes to your device. Then, while your device is still connected, go to Xcode => Organizer => Devices => your device => Console and start your app on your device. Then you should see the reason for the crash.
我通过
Xcode > 检查了设备日志;窗口>设备>查看设备日志
。对我来说,问题是我正在使用自定义字体,该字体通过 CocoaPods 集成到我的项目中。在开发期间,应用程序运行顺利,因为我的计算机可以看到字体文件的位置。但是,Xcode 不会将 pod 中的字体文件 (.ttf) 捆绑到项目中,因此我必须执行以下任一操作:
我选择了第二个,因为我可能会不小心删除对字体文件的引用之一并再次遇到问题。
I checked the Device logs via
Xcode > Window > Devices > View Device Logs
.The problem for me was that I am using a custom font which is integrated into my project via CocoaPods. During development time, the app runs smoothly because my computer can see where the font files are. However, Xcode doesn't bundle the font files (.ttf) from the pod into the project, so I had to either:
I went with the second one since I might accidentally delete one of the references to the font files and encounter the problem again.