如何将 Facebook 应用程序下载到 iPhone 模拟器
我正在尝试测试单点登录,因此我想将 Facebook 应用程序下载到 iPhone 模拟器中。
在哪里可以下载 iPhone 版 Facebook 应用程序以及如何将其放置在模拟器上?
I am trying to test the single sign on, so I wanted to download the Facebook application to the iPhone simulator.
Where can I download the Facebook application for iPhone and how can I place it on the simulator?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非您是该应用程序的开发人员,更重要的是,您拥有从头开始构建的源代码,否则您无法通过 App Store 下载应用程序并在模拟器中运行它。除了可能违反 Apple 的条款和条件之外,为设备构建的应用程序是为 ARM 处理器构建的,而为模拟器构建的应用程序实际上是 Mac 应用程序并为 i386 平台构建。
我认为您必须通过 iTunes 将 Facebook 应用程序下载到您的设备,然后为 iOS 设备构建应用程序并通过 Xcode 在您的设备上运行它。当然,您需要开发人员证书。我相信,这是您能够使用 Facebook 应用程序测试 SSO 的唯一方法。
Unless you are the developer of that app, and more to the point, you have the source code to build from scratch, you cannot take an app downloaded through the App Store and run it in the simulator. Aside from likely being against Apple's terms and conditions, apps built for devices are built for ARM processors, while apps built for the simulator are actually Mac apps and built for the i386 platform.
I think you'll have to download the Facebook app to your device via iTunes, then build your app for an iOS device and run it on your device via Xcode. You'll need a developer certificate, of course. That's the only way you'll be able to test SSO with the Facebook app, I believe.
现在iOS 6已经发布,您可以直接在模拟器中使用Facebook进行身份验证。 Facebook 开发者网站上有示例:https:// /developers.facebook.com/docs/facebook-login/ios/v2.0
Now that iOS 6 is released, you can authenticate with Facebook in the simulator directly. Example of how it can be done is on the Facebook developers site: https://developers.facebook.com/docs/facebook-login/ios/v2.0