Ios 警告:segue之后无法加载任何Objective-C类信息

Ios 警告:segue之后无法加载任何Objective-C类信息,ios,swift,xcode7,Ios,Swift,Xcode7,我试图在我的ios应用程序中使用自定义segue,当我执行segue时,它总是返回“警告:无法加载任何Objective-C类信息。这将显著降低可用类型信息的质量。”以及“EXC_BAD_ACCESS(code=2,address=0x7fff504faff8)”,这似乎是某种内存警告,但我不知道为什么 这是自定义的segue代码,它似乎在一个空白的项目中工作,但在我的项目中不工作,我似乎无法找出上面的错误意味着什么 以前有人见过这种错误吗?(我在这里的搜索没有返回任何与我看到的内容相同的内容)

我试图在我的ios应用程序中使用自定义segue,当我执行segue时,它总是返回“警告:无法加载任何Objective-C类信息。这将显著降低可用类型信息的质量。”以及“EXC_BAD_ACCESS(code=2,address=0x7fff504faff8)”,这似乎是某种内存警告,但我不知道为什么

这是自定义的segue代码,它似乎在一个空白的项目中工作,但在我的项目中不工作,我似乎无法找出上面的错误意味着什么

以前有人见过这种错误吗?(我在这里的搜索没有返回任何与我看到的内容相同的内容)-我还包括了下面的堆栈跟踪的一部分

private func animateGrowScale() {
    let toViewController = destinationViewController
    let fromViewController = sourceViewController

    let containerView = fromViewController.view.superview
    let originalCenter = fromViewController.view.center

    toViewController.view.transform = CGAffineTransformMakeScale(0.05, 0.05)
    toViewController.view.center = originalCenter

    containerView?.addSubview(toViewController.view)

    UIView.animateWithDuration(0.5, delay: 0.0, options: UIViewAnimationOptions.CurveEaseInOut, animations: {
        toViewController.view.transform = CGAffineTransformMakeScale(1.0, 1.0)
        }, completion: { finished in
            let fromVC = self.sourceViewController
            let toVC = self.destinationViewController
            fromVC.presentViewController(toVC, animated: false, completion: nil)
    })
}
堆栈跟踪:

    * thread #1: tid = 0x1f0b0b, 0x000000011142e23e libobjc.A.dylib`objc::DenseMapBase<objc::DenseMap<DisguisedPtr<objc_object>, unsigned long, true, objc::DenseMapInfo<DisguisedPtr<objc_object> > >, DisguisedPtr<objc_object>, unsigned long, objc::DenseMapInfo<DisguisedPtr<objc_object> >, true>::find(DisguisedPtr<objc_object> const&) + 4, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x7fff504faff8)
frame #0: 0x000000011142e23e libobjc.A.dylib`objc::DenseMapBase<objc::DenseMap<DisguisedPtr<objc_object>, unsigned long, true, objc::DenseMapInfo<DisguisedPtr<objc_object> > >, DisguisedPtr<objc_object>, unsigned long, objc::DenseMapInfo<DisguisedPtr<objc_object> >, true>::find(DisguisedPtr<objc_object> const&) + 4
frame #1: 0x000000011142c71d libobjc.A.dylib`objc_object::sidetable_tryRetain() + 75
frame #2: 0x000000011142bb75 libobjc.A.dylib`weak_read_no_lock + 99
frame #3: 0x000000011142c4c6 libobjc.A.dylib`objc_loadWeakRetained + 104
frame #4: 0x000000011142c4f2 libobjc.A.dylib`objc_loadWeak + 15
frame #5: 0x000000010fdb575e QuartzCore`CALayerGetContext + 47
frame #6: 0x000000010ff98461 UIKit`__windowForView + 103
frame #7: 0x0000000110089308 UIKit`-[UIViewController nextResponder] + 1002
frame #8: 0x000000011010323c UIKit`-[UIResponder _containedInAbsoluteResponderChain] + 24
frame #9: 0x0000000110103254 UIKit`-[UIResponder _containedInAbsoluteResponderChain] + 48
frame #10: 0x0000000110103254 UIKit`-[UIResponder _containedInAbsoluteResponderChain] + 48
frame #11: 0x000000010ffa77b3 UIKit`-[UIView(Internal) _containedInAbsoluteResponderChain] + 60
frame #12: 0x000000010ffa77b3 UIKit`-[UIView(Internal) _containedInAbsoluteResponderChain] + 60
frame #13: 0x000000010ffa77b3 UIKit`-[UIView(Internal) _containedInAbsoluteResponderChain] + 60
*thread#1:tid=0x1f0b0b,0x000000011142e23e libobjc.A.dylib`objc::DenseMapBase::find(const&)+4,queue='com.apple.main thread',stop reason=EXC\u BAD\u ACCESS(代码=2,地址=0x7fff504faff8)
帧#0:0x000000011142e23e libobjc.A.dylib`objc::DenseMapBase::find(const&)+4
帧#1:0x000000011142c71d libobjc.A.dylib`objc#u object::sidetable_tryRetain()+75
帧#2:0x000000011142B b75 libobjc.A.dylib`weak#u read_no_lock+99
帧#3:0x000000011142c4c6 libobjc.A.dylib`objc#u loadWeakRetained+104
帧#4:0x000000011142c4f2 libobjc.A.dylib`objc#u loadWeak+15
帧#5:0x000000010fdb575e QuartzCore`CALayerGetContext+47
帧#6:0x000000010ff98461 UIKit`u窗口视图+103
帧#7:0x0000000110089308 UIKit`-[UIViewController nextResponder]+1002
帧#8:0x0000000110100323C UIKit`-[UIResponder\u包含绝对响应CAIN]+24
帧#9:0x00000001101003254 UIKit`-[UIResponder\u包含绝对响应CAIN]+48
帧#10:0x0000000110103254 UIKit`-[UIResponder\u包含绝对响应CAIN]+48
帧#11:0x000000010ffa77b3 UIKit`-[UIView(内部)_包含绝对响应CAIN]+60
帧#12:0x000000010ffa77b3 UIKit`-[UIView(内部)_包含绝对响应CAIN]+60
帧#13:0x000000010ffa77b3 UIKit`-[UIView(内部)_包含绝对响应CAIN]+60

在哪里设置
sourceViewController
destinationViewController
?链接我的主故事板中的两个控制器,然后在firstviewcontroller中覆盖我的PrepareForegue,如下所示:
覆盖func PrepareForegue(segue:UIStoryboardSegue,sender:AnyObject?{如果segue是CustomSegue{(segue as!CustomSegue).animationType=.GrowScale}}
我刚刚在重温一个旧项目时遇到了类似的问题,它现在崩溃了,出现了一个无限循环,与您在那里的最后6行相同,当显示摄影机视图的图像选择器时。@LastNightTrain我遇到了相同的问题,使用图像选择器,您解决了问题吗?@aircraft v抱歉,我现在只模糊地记得这一点,我瘦了k这可能与图像选取器的显示方式有关,抱歉,我不能说得更具体了!(猜测是我将显示从本地VC移开,并可能从window/rootVC进行显示)。HTH,祝你好运!