当我从主视图控制器重定向到另一个视图控制器时
我明白了
Error:
延迟加载 NSBundle MobileCoreServices.framework,
加载MobileCoreServices.framework,
systemgroup.com.apple.configurationprofiles 的系统组容器
路径是
/用户/开发/库/开发人员/CoreSimulator/Devices/083C0102-C85F-463A-96F4-CA1B9AC7919D/数据/容器/共享/SystemGroup/
systemgroup.com.apple.configurationprofiles
我的代码是...
AppDelegate.m
if (![[NSUserDefaults standardUserDefaults] boolForKey:@"HasLaunchedOnce"]) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"HasLaunchedOnce"];
[[NSUserDefaults standardUserDefaults] synchronize];
NSLog(@"Launched first time");
} else {
NSLog(@"Already launched");
[self getData];
}
viewDidLoad
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HasLaunchedOnce"]) {
dispatch_async(dispatch_get_main_queue(), ^{
LoginPageViewController *lpvc = [self.storyboard instantiateViewControllerWithIdentifier:@"LPVC"];
[self.navigationController pushViewController:lpvc animated:NO];
});
} else {
// My code...
}
您收到的消息来自 Xcode 9。
Xcode 8 中的等效消息是:
[MC] systemgroup.com.apple.configurationprofiles 路径的系统组容器为 /Users/develop/Library/Developer/CoreSimulator/Devices/083C0102-C85F-463A-96F4-CA1B9AC7919D/data/Containers/Shared/SystemGroup/systemgroup.com .apple.configurationprofiles
请注意[MC]
:
这是一条系统消息。可以安全地忽略此消息。
要隐藏此类消息,请按照以下解决方案操作https://stackoverflow.com/a/42140442/1033581 https://stackoverflow.com/a/42140442/1033581:
- 在“产品”>“方案”>“编辑方案...”>“运行”下,将 OS_ACTIVITY_MODE 环境变量设置为 ${DEBUG_ACTIVITY_MODE},如下所示:
- 转到项目构建设置,然后单击 + 添加名为 DEBUG_ACTIVITY_MODE 的用户定义设置。展开此设置并单击“调试”旁边的 + 添加特定于平台的值。选择下拉列表并将其更改为“任何 iOS Simulator SDK”。然后将其值设置为“默认”,如下所示:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)