[英]Facebook SDK not running on iPhone Simulator, only on device
I have a strange issue trying to run the Facebook iOS SDK DemoApp (from facebook website). 尝试运行Facebook iOS SDK DemoApp(来自facebook网站)时遇到一个奇怪的问题。
On the device the app is working perfectly, but on the simulator a grey screen appears after login and permission requests. 在设备上,该应用程序运行正常,但在模拟器上,登录和获得权限请求后出现灰屏。 It doesn't even load fbDidLogin() function.
它甚至不加载fbDidLogin()函数。
Anybody else having this problem? 还有其他人有这个问题吗?
Fixed. 固定。 In my case, I was using the same APP_ID in several XCode projects.
就我而言,我在多个XCode项目中使用了相同的APP_ID。 I deleted the apps in iPhone Simulator, rebuilt the Facebook Demo App and worked.
我删除了iPhone Simulator中的应用程序,重建了Facebook Demo App并开始工作。 I think it was confusing for which project to log in or something.
我认为对于哪个项目要登录还是有些困惑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.