Error map
Cannot find 'x' in scope error: Cannot find 'viewModel' in scope
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: 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: No such module 'X' (module not found)
Xcode can’t find a Swift package, pod or framework you import.
Networking: dhcpd: DHCPDISCOVER from aa:bb:cc:dd:ee:ff via eth0: network 192.168.1.0/24: no free leases
The DHCP server has no unused addresses left in the scope.
Swift: Could not cast value of type 'X' to 'Y'
A force cast (as!) failed because the object isn’t the expected type.
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.
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: Escaping closure captures mutating 'self' parameter
A mutating method of a struct tries to capture self in an escaping closure, which Swift forbids.
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.
Swift: 'X' is only available in iOS 16.0 or newer
You used an API that requires a newer iOS than your deployment target.
error: 'nil' requires a contextual type
Swift can't infer the type of a bare `nil`.
error: 'init' is inaccessible due to 'internal' protection level
A type's initializer isn't visible to the caller's module.
Two steps away (36)
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.
error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?)
The compiler doesn’t know the type — missing using, missing NuGet package/project reference, or a target framework mismatch.
error CS0103: The name 'x' does not exist in the current context
The identifier isn’t declared in scope — typo, variable declared in another block, missing using static, or a Razor/partial class…
error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found
The member you call doesn’t exist on that type — typo, wrong type, missing using for an extension method, or an API removed in a…
CocoaPods could not find compatible versions for pod
pod install can’t satisfy the version constraints — outdated spec repo, a higher deployment target required, or two pods needing…
Signing for "App" requires a development team. Select a development team in the Signing & Capabilities editor
No Apple developer team is selected for the target, so Xcode can’t sign the app.
Undefined symbol(s) for architecture arm64 — linker command failed with exit code 1
The linker can’t find the implementation of a symbol your code uses — a missing framework/library, a file not in the target, or a…
Networking: Windows has detected an IP address conflict / Duplicate address detected by 00:aa:bb:cc:dd:ee
Two devices on the same network are using the same IP address, so traffic reaches the wrong one or neither.
Networking: `arp -n` shows (incomplete) / Destination Host Unreachable — no ARP reply from the next hop
The machine asked "who has this IP?" and nobody on the local network answered.
Networking: Port forwarding configured but the port stays closed — carrier-grade NAT (CGNAT) or double NAT
Your router forwards the port correctly, but another NAT in front of it (your ISP or a second router) blocks inbound connections.
Fatal error: Unexpectedly found nil while unwrapping an Optional value
Swift force-unwrapped (`!`) an optional that was nil, crashing the app.
Illegal instruction (core dumped) (SIGILL)
The program used a CPU instruction your processor doesn’t support — typically AVX/AVX2 in prebuilt binaries (TensorFlow, MongoDB…
The application was unable to start correctly (0xc0000142)
A DLL the program loads failed to initialise — often after an update, with corrupt runtimes, or when a desktop heap/session limit…
warning CS8618: Non-nullable property 'X' must contain a non-null value when exiting constructor. Consider declaring the property as nullable
With nullable reference types enabled, a non-nullable reference property isn’t initialised by the constructor.
Go: declared and not used: x / "fmt" imported and not used
Go refuses to compile code with unused local variables or unused imports.
Rust: error[E0308]: mismatched types — expected `X`, found `Y`
A value’s type doesn’t match what the context expects — common with &str vs String, Option/Result vs plain values, and integer ty…
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection
Code accessed a List/collection position that doesn’t exist (IndexOutOfRangeException for arrays).
.NET: Stack overflow. / Process is terminated due to StackOverflowException
Infinite or very deep recursion exhausted the thread’s stack; .NET can’t catch it and terminates the process.
Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
The app accessed memory it shouldn’t — a dangling pointer, released object, unsafe pointer misuse, a data race, or infinite recur…
SwiftUI: Publishing changes from background threads is not allowed; make sure to publish values from the main thread
An ObservableObject’s @Published property was updated from a background thread.
Swift 6: Main actor-isolated property 'x' can not be referenced from a nonisolated context / Sending 'x' risks causing data races
Strict concurrency checking found code that accesses main-actor state from another isolation domain, or passes non-Sendable value…
error: Cannot assign to value: 'count' is a 'let' constant
You tried to change something declared with `let`.
error: Actor-isolated property 'items' can not be referenced from a non-isolated context
You accessed actor state from outside the actor without `await`.
error: 'self' captured by a closure before all members were initialized
A closure uses `self` before all stored properties are set.
error: cannot use instance member 'x' as a default parameter
Default parameter values can't reference `self`.
warning: The iOS deployment target is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.0
A Pod targets an old iOS version that current Xcode no longer supports.
'NavigationView' was deprecated in iOS 16.0: use NavigationStack and NavigationSplitView instead
NavigationView is replaced by NavigationStack.
'onChange(of:perform:)' was deprecated in iOS 17.0: Use onChange with a two or zero parameter action closure instead.
The one-parameter onChange closure is deprecated.
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: Missing return in a function expected to return 'Int'
A code path in your function ends without returning a value.
error: Switch must be exhaustive / add missing case: '.pending'
A `switch` doesn't cover every enum case.
fatal: your current branch 'main' does not have any commits yet
Commands needing history ran in a brand-new repo.
error: Use of unresolved identifier 'ProfileView'
Older compilers' wording for "cannot find in scope".
warning: Capture of 'self' with non-sendable type 'ViewModel' in a `@Sendable` closure
Swift 6 concurrency checking flags data that crosses threads without being Sendable.
Map another error
Popular: ERR_HTTP2_PROTOCOL_ERROR5004004031064ORA-00933Critical errorTypeError