Questions tagged [nsunknownkeyexception]

This is for the specific error: NSUnknownKeyException in iOS (Swift and Objective-C)

81 questions
0
votes
0 answers

Thread 1: signal SIGABRT - when used with uibutton to open wkwebview

UPDATE 2019/07/23 16:37:00 - I've updated the main storyboard script below in the original content. After trying several things and running into new errors that had to be corrected I have come full circle back to the same error message. Updated…
D.Davis
  • 15
  • 1
  • 10
0
votes
1 answer

NSUnknownKeyExeption using firebase and NSobject

2018-12-30 15:01:23.228731+0200 iChat[51679:726127] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key username.' (lldb) Using…
SemarY
  • 49
  • 1
  • 9
0
votes
2 answers

NSUnknownKeyException even though outlets are defined

I have a custom view with a corresponding xib in a framework. In interface builder, I've set the File's Owner and the view itself to the my subclass of UIView (TotalTokenCountView). I've also setup outlets for two labels in the custom view. However,…
Jake
  • 13,097
  • 9
  • 44
  • 73
0
votes
0 answers

Thread 1: Signal SIGABRT when trying to do login with Alamofire

I am trying to make a login button with Alamofire, but I'm getting the error I said on the title, is there something wrong with my code? Thanks. @IBAction func buttonLogin(_ sender: UIButton) { //getting the username and password let…
A. Sierra
  • 1
  • 1
0
votes
0 answers

NSUnknownKeyException this class is not key value coding-compliant for the key-changing from Obj-C to Swift

I know this question has been asked a lot but the answers do not work for me. For this class: import UIKit class ProfileViewController: UIViewController { @IBOutlet weak var bioTextView: UITextView! override func viewDidLoad() { …
AlexK
  • 336
  • 8
  • 21
  • 41
0
votes
0 answers

Core Data database NSUnknownKeyException map location error

I've created an application in xcode that gets the location of a place from a user longclick on a map and inserte into a database. i keep getting this error Travel Map Book[17935:3752754] *** Terminating app due to uncaught exception…
Dike Jude
  • 199
  • 3
  • 9
0
votes
1 answer

Enabling the refreshing option to TableViewController throw me a NSUnknownKeyException

It is not a duplicate because NSUnknownKeyException can come from a lot of different reason, and the link between refreshing and NSUnknownKeyException is not addressed in the "duplicate" of my question. I have a small app, it worked perfectly until…
2095377
  • 47
  • 2
  • 14
0
votes
0 answers

Getting an NSUnknownKeyException error when running my app

I created a textfield and a button to take the value in the textfield and multiply by 5. When using the simulator, I get this error. I also see an AppDelegate.swift file error. Please help me, I'm getting frustrated here and it's…
Dike Jude
  • 199
  • 3
  • 9
0
votes
1 answer

NSUnknownKeyException when ViewController has a view awaken from Xib

I just want to Jump from a ViewController to another using the code btn_routh.addTarget(self, action: #selector(self.goToPoiDetail), for: .touchUpInside) @objc open func goToPoiDetail() { self.present(PoiDetailViewController(),…
周雪静
  • 153
  • 1
  • 3
  • 10
0
votes
3 answers

class is not key value coding-compliant for a nonexistent IBAction

I have created as swift project in Xcode, and i added Button to the storyboard. The IBAction of that button is named "WhenButtonPresed", but when I run the App it gets crashed and i got the below posted error despite i do not have any IBAction…
Amrmsmb
  • 1
  • 27
  • 104
  • 226
0
votes
2 answers

Objective-C: Set boolean value in core data

In my data model, in an entity, I have an attribute that is a boolean. In the xcmodeldatad file, it is listed as: need sync Boolean. In the NSmanagedobject file it is as follows: .h file: @property (nonatomic, strong) NSNumber *needsync;//bool .m…
zztop
  • 701
  • 1
  • 7
  • 20
0
votes
1 answer

This class is not key value coding-compliant for the key connectionView: JSQMessagesViewController

I'm attempting to call/load an instance of JSQMessagesViewController I'm reusing from a previous/different project and I'm getting the following error message: "This class is not key value coding-compliant for the key connectionView." I believe…
0
votes
1 answer

Thread 1: signal SIGABRT Login Button Causes App to Crash

Currently trying to finish up making the login and registration form for my app. Registration works like how I want it to, but after working on the login screen I get the Thread 1: signal SIGABRT message on my AppDelegate. AppDelegate File So a…
pacman
  • 1
  • 2
0
votes
1 answer

Key value coding compliancy error on IBAction

Disclaimer: Ignore the fact that a production app using this may or may not pass review. I'm just trying to get this concept to work. Here's the code I'm trying to execute, all I'm trying to do (for now) is initialize four constants and it has…
willbattel
  • 1,040
  • 1
  • 10
  • 37