- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用的是 Xcode 9,当我加载应用程序时,我不断收到此错误
libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform.
如何阻止它?
最佳答案
我正在通过一本旧书学习使用 ObjC 进行 iOS 开发(出于个人原因),当我从 AppDelegate.m 重写 didFinishLaunchingWithOptions 时,发生了这个错误,所以我通过设置全局导航 Controller 来解决,如下所示:
-(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 和模拟器(iPhone 7 - iOS 12)
关于ios - libMobileGestalt MobileGestalt.c :890: MGIsDeviceOneOfType is not supported on this platform,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52655901/
我正在尝试在我的内部应用程序上获取蓝牙 MAC 地址,但直到现在仍然无法正常工作。 首先我使用了libMobileGestalt私有(private)库,但是获取不到信息。 我正在使用以下代码,但得到
在提交更新之前,我一直在测试......来自 iOS4,并且遇到了以下问题...... 1)从我的应用程序创建 PDF。 2) 似乎不一致,因为在大多数情况下我可以毫无问题地创建新的 PDF。 3)
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 3 年前。 Improve th
我正在使用 UIWebView XCode 8.3 版。 当我启动应用程序时,我的控制台继续向我显示此错误,但我不明白它的含义。在我的 UIViewController 中没有代码,所以我不明白为什么
关闭。这个问题需要details or clarity .它目前不接受答案。 想改进这个问题吗? 通过 editing this post 添加细节并澄清问题. 关闭 2 年前。 Improve t
当我尝试 Hook MGCopyAnswer 时,我遇到了崩溃。我正在 iOS 8.3、arm64 二进制文件中的越狱 iPhone 5s 上尝试此操作。 #import extern "C" CF
当我尝试 Hook MGCopyAnswer 时,我遇到了崩溃。我正在 iOS 8.3、arm64 二进制文件中的越狱 iPhone 5s 上尝试此操作。 #import extern "C" CF
我在 Xcode 控制台 View 上收到以下消息 libMobileGestalt MobileGestaltSupport.m:153: pid 231 (myproject) 确实没有 frZQ
每当我运行应用程序时,我都会在 Xcode 控制台中看到此消息: libMobileGestalt MobileGestaltSupport.m:153:pid 1668 (APP_NAME) 没有
我是一名优秀的程序员,十分优秀!