简体   繁体   English

Facebook SDK未在iPhone Simulator上运行,仅在设备上运行

[英]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.

相关问题 Facebook登录可在iPhone模拟器上使用,但不能在iPhone设备上使用 - facebook login works on iphone simulator but not on iphone device Facebook IOS SDK登录在模拟器上有效,而不在设备上有效 - Facebook IOS SDK Login works on simulator, not on device 应用程序仅在iPhone设备上崩溃而不在模拟器中崩溃 - App crash only on iPhone Device and not in Simulator iOS实际设备上的Appium出现SDK Iphone Simulator错误 - Appium on ios actual device gives sdk iphone simulator error Facebook SDK正在我的IOS设备上编译,但没有我的模拟器 - Facebook sdk is compiling on my IOS device, but no my simulator iOS上的Facebook sdk在模拟器中显示个人资料图片,但不在设备上显示 - Facebook sdk on iOS shows profile pic in simulator but not device Facebook iOS SDK在设备上不起作用(需要有效的重定向URI),但在模拟器中 - Facebook iOS SDK is not working on device (requires valid redirect URI) but in simulator Swift Admob控制台显示模拟器设备ID,但在iPhone上运行时却没有? - Swift Admob console displays simulator device ID but not when running on iPhone? iphone模拟器和设备包 - iphone Simulator and device bundle 应用程序仅在iPhone设备上崩溃,而不在模拟器中崩溃-Xamarin绑定项目 - App crash only on iPhone Device and not in Simulator - Xamarin Binding project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM