本文主要是介绍【IOS】swift新手踩坑总汇,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
这里写自定义目录标题
- ESTabBarController_swift
- QMUIKit
ESTabBarController_swift
Exception NSException * "调用了 pushViewController 但实际上没 push 成功,viewController:<HuangShan.ViewControllers: 0x106832a00>; superclass: ESTabBarController_swift.ESTabBarController; title: (null); view: <UILayoutContainerView: 0x104e20670; frame = (0 0; 393 852); autoresize = W+H; layer = <CALayer: 0x600000266500>>; viewControllers(3): ( [0]<UINavigationController: 0x106825c00>,[1]<UINavigationController: 0x10582fe00>,[2]<UINavigationController: 0x105830e00> ); selectedViewController(0): <UINavigationController: 0x106825c00>” 0x0000600000c912c0
不知道怎么回事 引用了QMUIKit库就这样了
解决方法
window = UIWindow(frame: UIScreen.main.bounds)let firstVC = ViewControllers()let navController = UINavigationController(rootViewController: firstVC)window?.rootViewController = navControllerwindow?.makeKeyAndVisible()
改为
window = UIWindow(frame: UIScreen.main.bounds)let navController = ViewControllers()window?.rootViewController = navControllerwindow?.makeKeyAndVisible()
QMUIKit
Sandbox: rsync.samba(5937) deny(1) file-write-create /Users/ruyuanniu/Library/Developer/Xcode/DerivedData/HuangShan-gzfknlmvqpttdvdojgmibxjwzysp/Build/Products/Debug-iphonesimulator/HuangShan.app/Frameworks/QMUIKit.framework/.Info.plist.ogjkPx
解决方法
在项目的构建设置 > 构建选项(BuildSettings) '用户脚本沙盒(User Script Sandboxing)' 改成NO
这篇关于【IOS】swift新手踩坑总汇的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!