Programming Search⌘K

Swift errors and diagnostics, page 13 of 20

The error codes and warnings of Swift, with the message that each one prints and what causes it. This page has 3,841 cards.

Addressof only works with borrowable in-memory rvalues; use 'withUnsafePointer' or 'withUnsafeBytes' unless you're implementing 'withUnsafePointer' or 'withUnsafeBytes'. non_borrowed_indirect_addressof

Code
non_borrowed_indirect_addressof
Severity
error
Message
addressof only works with borrowable in-memory rvalues; use 'withUnsafePointer' or 'withUnsafeBytes' unless you're implementing 'withUnsafePointer' or 'withUnsafeBytes'

Source: github.com. JSON record. This entry is a card. Help write this page.

Conditional initialization or destruction of non-'Copyable' types is not supported; this variable must be consistently in an initialized or uninitialized state through every code path. noncopyable_dynamic_lifetime_unsupported

Code
noncopyable_dynamic_lifetime_unsupported
Severity
error
Message
conditional initialization or destruction of non-'Copyable' types is not supported; this variable must be consistently in an initialized or uninitialized state through every code path

Source: github.com. JSON record. This entry is a card. Help write this page.

… does not match the declaration in the header because it uses parameter #… for the error, not parameter #…; a selector part called 'error:' can control which parameter to use. objc_implementation_mismatched_error_convention_index

Code
objc_implementation_mismatched_error_convention_index
Severity
error
Message
{} does not match the declaration in the header because it uses parameter #{} for the error, not parameter #{}; a selector part called 'error:' can control which parameter to use

Source: github.com. JSON record. This entry is a card. Help write this page.

… does not match the declaration in the header because it uses a different Objective-C error convention; please file a bug report with a sample project, as the compiler should be able to describe the mismatch. objc_implementation_mismatched_error_convention_other

Code
objc_implementation_mismatched_error_convention_other
Severity
error
Message
{} does not match the declaration in the header because it uses a different Objective-C error convention; please file a bug report with a sample project, as the compiler should be able to describe the mismatch

Source: github.com. JSON record. This entry is a card. Help write this page.