Ios 此平台不支持libMobileGestalt MobileGestalt.c:890:MGIsDeviceOneOfType
我使用的是Xcode 9,当我加载我的应用程序时,我一直遇到这个错误 此平台不支持libMobileGestalt MobileGestalt.c:890:MGIsDeviceOneOfTypeIos 此平台不支持libMobileGestalt MobileGestalt.c:890:MGIsDeviceOneOfType,ios,swift,Ios,Swift,我使用的是Xcode 9,当我加载我的应用程序时,我一直遇到这个错误 此平台不支持libMobileGestalt MobileGestalt.c:890:MGIsDeviceOneOfType 如何阻止这种情况?我正在一本旧书中研究使用ObjC的iOS开发(出于个人原因),当我从AppDelegate.m中覆盖didFinishLaunchingWithOptions时发生了这个错误,所以我通过设置全局导航控制器来解决,如下所示: -(BOOL)application:(UIApplicat
如何阻止这种情况?我正在一本旧书中研究使用ObjC的iOS开发(出于个人原因),当我从AppDelegate.m中覆盖didFinishLaunchingWithOptions时发生了这个错误,所以我通过设置全局导航控制器来解决,如下所示:
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
RootController *rootController = [[RootController alloc] init];
UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:rootController];
self.window.rootViewController = navController;
[self.window makeKeyAndVisible];
[rootController release];
[navController release];
return YES;
}
Xcode 10.0(10A255)
在iPhone和Simulator(都是iPhone 7-iOS 12)上工作过。大多数报告都说这是“Xcode 10中的新版本”,你能再检查一下Xcode版本吗?需要更多信息。您是使用真实设备进行测试还是使用模拟器?哪个iOS版本、设备型号等。