xcode 解除分配视图控制器警告
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39576314/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:16:40 来源:igfitidea点击:
Dealloc a viewcontroller warning
提问by TheZozoOwner
I am getting this warning which is very annoying. Problem occurs when I tried to allocate new viewController from another viewController. Has anybody seen this warning before? What can I do to make it disappear? It important for me to fix it.
我收到了这个非常烦人的警告。当我尝试从另一个 viewController 分配新的 viewController 时出现问题。有没有人见过这个警告?我该怎么做才能让它消失?对我来说修复它很重要。
2016-09-19 16:55:09.216523 App[5204:1274804] [Common] _BSMachError: port e26f; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
2016-09-19 16:55:09.217554 App[5204:1274804] [Common] _BSMachError: port e26f; (os/kern) invalid name (0xf) "Unable to deallocate send right"
回答by Daniel Lu
DispatchQueue.main.async(execute: {
// put your code to do allocate new viewController from
// another viewController here to ensure running in main thread
})