草庐IT

fatal_handler

全部标签

swift - SceneKit—— fatal error : unexpectedly found nil while unwrapping an Optional value when getting child node

所以我试图在我的SceneKit/Swift项目中使用3D对象(.dae1.4,使用Cinema4Dr13导出)。我留下了提供的代码并进行了更改:letscene=SCNScene(named:"art.scnassets/ship.dae")!适合我的:letscene=SCNScene(named:"art.scnassets/pyramid.dae")!我确实也将文件导入到它应该位于的项目中(在art.scnassets中)。我可以像默认飞船一样预览文件,所以这应该是正确的。我也改了:letship=scene.rootNode.childNodeWithName("ship",

swift - 线程 10 : Fatal error: Unexpectedly found nil while unwrapping an Optional value

我正在尝试进行服务调用以获取用户详细信息,但出现此错误:线程10:fatalerror:在展开可选值时意外发现nil从这段代码:leturlString="http://myURL.com/getInfo/getAccountTransactions/{accountPublicKey}"print(urlString)letrequestUrl=URL(string:urlString)letrequestURL=URLRequest(url:requestUrl!)当我将代码包装在一个守卫中时,让代码不会被执行,因为它发现nil,我不确定为什么,因为URL字符串永远不会是nill,

uitableview - fetchedResultsController核心数据 fatal error : unexpectedly found nil while unwrapping an Optional value

我知道有无数的问题都出现了同样的错误,但似乎没有一个解决方案有效。我想制作一个博客阅读器应用程序,用于从CoreData保存和获取数据。我能够将JSON结果保存到CoreData中,但是当我尝试检索它以在tableView中显示时,它崩溃并显示fatalerror:unexpectedlyfoundnilwhileunwrappinganOptionalvalueonlineletentity=NSEntityDescription.entityForName("博客",inManagedObjectContext:self.managedObjectContext!)这是我的代码:i

swift - fatal error : can't unsafeBitCast between types of different sizes (using gamekit)

使用此处的GameKit多人游戏功能(EasyGameCenter):https://github.com/DaRkD0G/Easy-Game-Center-Swift当两个玩家连接时,我在这条线上崩溃了letplayerIDs=match.players.map{$0.playerID}as![String]在控制台中使用这个fatalerror:can'tunsafeBitCastbetweentypesofdifferentsizes有什么想法吗?这里是完整的功能,方便引用:@available(iOS8.0,*)privatefunclookupPlayers(){guardl

ios - swift 3 : reverseGeocodeLocation does not call its completion handler

这是我的代码ifloc.latitude!=0.0&&loc.longitude!=0.0{letloca=CLLocation(latitude:loc.latitude,longitude:loc.longitude)geoCoder.reverseGeocodeLocation(loca){(placemarks,error)in//thisisthelastlinethatisbeingcalledvarplacemark:CLPlacemark!placemark=placemarks?[0]city=(placemark.addressDictionary?["City"]

ios - swift fatal error : 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=3840 "Garbage at end."

我的swift程序一直有这个错误,我正在使用PHP和MySQL作为数据库。我要将数据从数据库显示到TableView。之前是可以的,但是在模拟器上运行了几次之后,我一直遇到同样的错误classHome:UIViewController,UITableViewDelegate,UITableViewDataSource{@IBOutletweakvarbtnaddclass:UIButton!@IBOutletvartableView:UITableView!varvalues:NSArray=[]funcget(){leturl=NSURL(string:"http://localho

ios - swift fatal error : unexpectedly found nil while unwrapping an Optional value uiimage

我在将UIImage分配给UIImageView的属性图像时出错funcconnectionDidFinishLoading(connection:NSURLConnection!){varerr:NSErrorvarjsonResult:NSDictionary=NSJSONSerialization.JSONObjectWithData(data,options:NSJSONReadingOptions.MutableContainers,error:nil)asNSDictionaryprintln("\(jsonResult)")ifjsonResult.count>0{let

ios - swift 警告 : Application delegate received call to -application:performFetchWithCompletionHandler: but the completion handler was never called

我在下面的模拟器中调用这个函数来模拟后台获取。然后我在日志中收到这个警告:SwiftWarning:Applicationdelegatereceivedcallto-application:performFetchWithCompletionHandler:butthecompletionhandlerwasnevercalled.我看到其他StackIverflow回答说我只需要添加completionhandler()。我试过了,它说我需要添加一个参数,这就是我迷路的地方。funcapplication(_application:UIApplication,performFetc

ios - Xcode 7.0 beta 中的 Dyld fatal

请帮帮我。我使用Xcode7.0和我的应用程序在iOS模拟器中工作,但是当我在设备(iPhone5s)中编译和运行时出现以下消息:dyld`dyldfatalerror:0x120039088:brk#0x3您可以下载我的项目:https://www.dropbox.com/s/9kcpme97trs9y27/%D0%90%D1%80%D1%85%D0%B8%D0%B2.zip?dl=0 最佳答案 当我尝试在我的设备(iPhone6)上运行时,我遇到了同样的错误,清理项目然后再次尝试为我做了。您也可以尝试建议的解决方案here如果这

ios - fatal error : unexpectedly found nil while unwrapping an Optional value (lldb)

overridefuncprepareForSegue(segue:UIStoryboardSegue,sender:AnyObject!){ifsegue.identifier=="showLocalMenuDetail"{ifletindexPath=self.tableView.indexPathForSelectedRow(){self.slideMenuController()?.closeLeft()letdestinationController=segue.destinationViewControllerasDetailViewControllerdestinatio