Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 此平台不支持libMobileGestalt MobileGestalt.c:890:MGIsDeviceOneOfType_Ios_Swift - Fatal编程技术网

Ios 此平台不支持libMobileGestalt MobileGestalt.c:890:MGIsDeviceOneOfType

Ios 此平台不支持libMobileGestalt MobileGestalt.c:890:MGIsDeviceOneOfType,ios,swift,Ios,Swift,我使用的是Xcode 9,当我加载我的应用程序时,我一直遇到这个错误 此平台不支持libMobileGestalt MobileGestalt.c:890:MGIsDeviceOneOfType 如何阻止这种情况?我正在一本旧书中研究使用ObjC的iOS开发(出于个人原因),当我从AppDelegate.m中覆盖didFinishLaunchingWithOptions时发生了这个错误,所以我通过设置全局导航控制器来解决,如下所示: -(BOOL)application:(UIApplicat

我使用的是Xcode 9,当我加载我的应用程序时,我一直遇到这个错误

此平台不支持libMobileGestalt MobileGestalt.c:890:MGIsDeviceOneOfType


如何阻止这种情况?

我正在一本旧书中研究使用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版本、设备型号等。