Error map
Type does not conform to protocol error: Type 'User' does not conform to protocol 'Decodable'
iOS · layer 1, On your device
Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (12)
Swift: Cannot convert value of type 'X' to expected argument type 'Y'
The value’s type doesn’t match what the function or property expects.
Swift DecodingError: keyNotFound / typeMismatch / valueNotFound / dataCorrupted
JSONDecoder couldn’t map the JSON to your Codable type — a key is missing, a value has a different type or is null, or the data i…
error: 'nil' requires a contextual type
Swift can't infer the type of a bare `nil`.
DecodingError.dataCorrupted: Cannot initialize Status from invalid String value "pending_review"
The server sent an enum value your app doesn't know.
fatal: protocol error: bad pack header
Git received garbage instead of a pack, from a proxy or broken server.
error: Missing return in a function expected to return 'Int'
A code path in your function ends without returning a value.
error: Cannot find 'viewModel' in scope
The name isn't visible where you use it.
error: Missing argument for parameter 'id' in call
A call doesn't match the function's signature.
error: cannot use instance member 'x' as a default parameter
Default parameter values can't reference `self`.
warning: result of call to 'foo()' is unused
A function returns a value you ignore.
Expected date string to be ISO8601-formatted. codingPath: [CodingKeys(stringValue: "createdAt")]
The date string doesn't match the decoder's strategy.
error: argument of '#selector' refers to instance method 'tap()' that is not exposed to Objective-C
A Swift method used as a selector needs `@objc`.
Two steps away (32)
AttributeError: 'X' object has no attribute 'y'
You accessed an attribute or method that doesn’t exist on that object type.
java.lang.ClassCastException: class A cannot be cast to class B
An object was cast to a type it isn’t.
TS7016: Could not find a declaration file for module 'x'. 'x.js' implicitly has an 'any' type.
The JavaScript package has no TypeScript types bundled and no @types package installed.
SyntaxError: Unexpected token < in JSON at position 0
`JSON.parse()` / `response.json()` received something that isn’t JSON — very often an HTML error page.
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text passed to json.loads() isn’t JSON — at char 0 it’s usually empty or HTML.
API Error: Malformed JSON in request body (entity.parse.failed / JSON parse error)
The server couldn’t parse the request body as JSON, so it rejected the request before looking at any field.
Swift: Type of expression is ambiguous without a type annotation (more context)
The compiler can’t infer which type you mean — often because of a typo or a wrong argument elsewhere in the expression.
error: Value of optional type 'String?' must be unwrapped to a value of type 'String'
You used an optional where a non-optional value is required.
error: Switch must be exhaustive / add missing case: '.pending'
A `switch` doesn't cover every enum case.
Swift: Fatal error: Index out of range
Code accessed an array index that doesn’t exist — empty arrays, off-by-one loops, or data changing while a table reloads.
Swift: Could not cast value of type 'X' to 'Y'
A force cast (as!) failed because the object isn’t the expected type.
Swift: 'X' is only available in iOS 16.0 or newer
You used an API that requires a newer iOS than your deployment target.
Git: Permission denied (publickey). fatal: Could not read from remote repository.
SSH authentication to GitHub/GitLab/Bitbucket failed — no key, wrong key, or the key isn’t added to your account.
Host key verification failed. fatal: Could not read from remote repository.
SSH doesn’t trust the server’s host key — first connection in a non-interactive environment, or the key changed.
kex_exchange_identification: Connection closed by remote host
The SSH connection was closed before the handshake — server overload, rate limiting, or a proxy/firewall interfering.
error: Use of unresolved identifier 'ProfileView'
Older compilers' wording for "cannot find in scope".
error: ambiguous use of 'init(content:)'
Overloads match the call equally.
error: 'init' is inaccessible due to 'internal' protection level
A type's initializer isn't visible to the caller's module.
Swift: No such module 'X' (module not found)
Xcode can’t find a Swift package, pod or framework you import.
Swift: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
A long expression (often in a SwiftUI body) has too many possible type combinations for the compiler — or hides a type error.
Swift: Escaping closure captures mutating 'self' parameter
A mutating method of a struct tries to capture self in an escaping closure, which Swift forbids.
error: gpg.ssh.allowedSignersFile needs to be configured and exist for ssh signature verification
Git can sign with SSH, but verifying needs an allowed-signers file.
ITMS-91065: Missing signature - Your app includes "Frameworks/X.framework", which includes X, an SDK that was identified in the documentation as a commonly used third-party SDK
A listed SDK must ship with a valid signature.
Swift: Reference to property 'x' in closure requires explicit use of 'self' to make capture semantics explicit
In an escaping closure inside a class, Swift requires self. to make the capture (and potential retain cycle) visible.
error: Cannot assign to value: 'count' is a 'let' constant
You tried to change something declared with `let`.
error: 'self' captured by a closure before all members were initialized
A closure uses `self` before all stored properties are set.
Publishing changes from within view updates is not allowed, this will cause undefined behavior.
A published value changed during view rendering.
Dart: type 'Null' is not a subtype of type 'String' in type cast
A value that was `null` at runtime was cast or used as a non-nullable type, most often when parsing JSON.
Dart: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast
JSON decoded to a Map but your code expected a List (or the other way round).
Dart: FormatException: Unexpected character (at character 1) <!DOCTYPE html> — jsonDecode of an HTML page
`jsonDecode` received something that is not JSON, commonly an HTML error page, an empty string, or a plain-text message.
-[UIViewController foo]: unrecognized selector sent to instance 0x600001
A message was sent to an object that doesn't implement it.
-[Foo bar]: message sent to deallocated instance 0x600000
An object was used after being freed.