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.
- Code
no_input_files_for_mt- Severity
- error
- Message
no swift input files for multi-threaded compilation
- Code
no_insert_position- Severity
- error
- Message
cannot find inserting position
- Code
no_less_than_overload_for_int- Severity
- error
- Message
no overload of '<' for Int
- Code
no_llvm_target- Severity
- error
- Message
error loading LLVM target for triple '{}': {}
- Code
no_longer_open- Severity
- error
- Message
{} is no longer open for subclassing
- Code
no_MaxBuiltinFloatType_found- Severity
- error
- Message
standard library error: _MaxBuiltinFloatType is not properly defined
- Code
no_member_of_module- Severity
- error
- Message
module {} has no member named {}
- Code
no_metadata_on_non_generic_param- Severity
- error
- Message
'@_noMetadata' must appear on a generic parameter
- Code
no_module_type- Severity
- error
- Message
no type named {} in module {}
- Code
no_objc_tagged_pointer_not_class_protocol- Severity
- error
- Message
'@unsafe_no_objc_tagged_pointer' can only be applied to class protocols
- Code
no_opaque_return_type_of- Severity
- error
- Message
unable to resolve type for _opaqueReturnTypeOf attribute
- Code
no_overloads_have_result_type_conformance- Severity
- error
- Message
no '{}' overloads produce result type that conforms to {}
- Code
no_overloads_match_exactly_in_call- Severity
- error
- Message
no exact matches in {} to {} {}
- Code
no_parent_switch- Severity
- error
- Message
cannot find enclosing switch statement
- Code
no_remaining_cases- Severity
- error
- Message
no remaining cases to expand
- Code
no_swift_sources_with_embedded- Severity
- error
- Message
embedded swift cannot be enabled in a compiler built without Swift sources
- Code
no_throw_in_do_with_catch- Severity
- warning
- Message
'catch' block is unreachable because no errors are thrown in 'do' block
The compiler puts it in the diagnostic group UnnecessaryEffectMarker.
- Code
no_throw_in_try- Severity
- warning
- Message
no calls to throwing functions occur within 'try' expression
The compiler puts it in the diagnostic group UnnecessaryUnsafe.
- Code
no_unsafe_in_unsafe- Severity
- warning
- Message
no unsafe operations occur within 'unsafe' expression
The compiler puts it in the diagnostic group UnnecessaryUnsafe.
- Code
no_unsafe_in_unsafe_for- Severity
- warning
- Message
no unsafe operations occur within 'unsafe' for-in loop
- Code
noimplicitcopy_attr_not_allowed_on_moveonlytype- Severity
- error
- Message
'@_noImplicitCopy' has no effect when applied to a non-'Copyable' type
- Code
noimplicitcopy_attr_valid_only_on_local_let_params- Severity
- error
- Message
'@_noImplicitCopy' attribute can only be applied to local lets and params
- Code
noimplicitcopy_used_on_generic_or_existential- Severity
- error
- Message
'@_noImplicitCopy' can not be used on a generic or existential typed binding or a nominal type containing such typed things
- Code
nominal_type_not_attribute- Severity
- error
- Message
{} cannot be used as an attribute
- Code
non_associative_adjacent_operators- Severity
- error
- Message
adjacent operators are in non-associative precedence group {}
- Code
non_bitwise_copyable_c_type_nontrivial- Severity
- error
- Message
type with unrepresentable fields cannot derive conformance to 'BitwiseCopyable'
- Code
non_bitwise_copyable_type_class- Severity
- error
- Message
class cannot conform to 'BitwiseCopyable'
- Code
non_bitwise_copyable_type_cxx_nontrivial- Severity
- error
- Message
non-trivial C++ type cannot conform to 'BitwiseCopyable'
- Code
non_bitwise_copyable_type_indirect_enum- Severity
- error
- Message
indirect enum cannot conform to 'BitwiseCopyable'
- Code
non_bitwise_copyable_type_indirect_enum_element- Severity
- error
- Message
enum with indirect case cannot conform to 'BitwiseCopyable'
- Code
non_bitwise_copyable_type_member- Severity
- error
- Message
{} of 'BitwiseCopyable'-conforming {} has non-bitwise-copyable type {}
- Code
non_bitwise_copyable_type_sensitive- Severity
- error
- Message
a '@sensitive' type cannot conform to 'BitwiseCopyable'
- Code
non_bitwise_copyable_type_suppressed- Severity
- error
- Message
cannot both conform to and suppress conformance to 'BitwiseCopyable'
- 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'
- Code
non_class_cannot_conform_to_class_protocol- Severity
- error
- Message
non-class type {} cannot conform to class protocol {}
- Code
non_concurrent_type_member- Severity
- error
- Message
{} of 'Sendable'-conforming {} {} non-Sendable type {}
- Code
non_ephemeral_non_pointer_type- Severity
- error
- Message
'@_nonEphemeral' only applies to pointer types
- Code
non_exhaustive_switch- Severity
- error
- Message
switch must be exhaustive
- Code
non_exhaustive_switch_unknown_only- Severity
- error
- Message
switch covers known cases, but {} may have additional unknown values{}
- Code
non_final_class_cannot_conform_to_self_same_type- Severity
- error
- Message
non-final class {} cannot safely conform to protocol {}, which requires that {} {} {}
- Code
non_inferrable_opaque_generic_parameter- Severity
- error
- Message
opaque generic parameter {} appears in position that cannot be inferred from a function call
The compiler puts it in the diagnostic group NominalTypes.
- Code
non_nominal_extension- Severity
- error
- Message
non-nominal type {} cannot be extended
- Code
non_nominal_type_eraser- Severity
- error
- Message
type eraser must be a class, struct, or enum
- Code
non_physical_addressof- Severity
- error
- Message
addressof only works with purely physical lvalues; use 'withUnsafePointer' or 'withUnsafeBytes' unless you're implementing 'withUnsafePointer' or 'withUnsafeBytes'
- Code
non_pic_without_embedded- Severity
- error
- Message
position-independent code can only be disabled with embedded Swift.
The compiler puts it in the diagnostic group NonSendableExitingActor.
- Code
non_sendable_arg_exits_actor- Severity
- error
- Message
non-Sendable type {} cannot exit {} context in call to nonisolated {}
- Code
non_sendable_arg_into_actor- Severity
- error
- Message
non-Sendable type {} cannot be sent into {} context in call to {}
The compiler puts it in the diagnostic group SendableClosureCaptures.
- Code
non_sendable_capture- Severity
- error
- Message
capture of {} with non-Sendable type {} in a '@Sendable' {}
- Code
non_sendable_from_deinit- Severity
- error
- Message
cannot access {} with a non-Sendable type {} from nonisolated deinit
- Code
non_sendable_isolated_capture- Severity
- error
- Message
capture of {} with non-Sendable type {} in an isolated {}
- Code
non_sendable_keypath_capture- Severity
- error
- Message
cannot form key path that captures non-Sendable type {}
The compiler puts it in the diagnostic group SendableMetatypes.
- Code
non_sendable_metatype_capture- Severity
- error
- Message
capture of non-Sendable type {} in an isolated {}
The compiler puts it in the diagnostic group SendableMetatypes.
- Code
non_sendable_metatype_type- Severity
- error
- Message
type {} does not conform to the 'SendableMetatype' protocol
The compiler puts it in the diagnostic group NonSendableObjCInterop.
- Code
non_sendable_param_in_objc- Severity
- error
- Message
non-Sendable parameter type {} of {} '@objc' {} cannot cross actor boundary
The compiler puts it in the diagnostic group NonSendableInAsyncConformanceOrOverride.
- Code
non_sendable_param_in_override- Severity
- error
- Message
non-Sendable parameter type {} cannot be sent from caller of superclass {} into {} override
The compiler puts it in the diagnostic group NonSendableInAsyncConformanceOrOverride.
- Code
non_sendable_param_in_witness- Severity
- error
- Message
non-Sendable parameter type {} cannot be sent from caller of protocol requirement {} into {} implementation
The compiler puts it in the diagnostic group NonSendableExitingActor.
- Code
non_sendable_property_exits_actor- Severity
- error
- Message
non-Sendable type {} of {} cannot exit {} context
The compiler puts it in the diagnostic group NonSendableObjCInterop.
- Code
non_sendable_property_in_objc- Severity
- error
- Message
non-Sendable type {} returned by {} '@objc' {} cannot cross actor boundary
The compiler puts it in the diagnostic group NonSendableInAsyncConformanceOrOverride.
- Code
non_sendable_property_in_override- Severity
- error
- Message
non-Sendable type {} cannot be returned from {} override to caller of superclass {}
The compiler puts it in the diagnostic group NonSendableInAsyncConformanceOrOverride.
- Code
non_sendable_property_in_witness- Severity
- error
- Message
non-Sendable type {} cannot be returned from {} implementation to caller of protocol requirement {}
- Code
non_sendable_property_into_actor- Severity
- error
- Message
non-Sendable type {} of nonisolated {} cannot be sent to {} context
The compiler puts it in the diagnostic group NonSendableExitingActor.
- Code
non_sendable_result_exits_actor- Severity
- error
- Message
non-Sendable result type {} cannot exit {} context in call to nonisolated {}
The compiler puts it in the diagnostic group NonSendableObjCInterop.
- Code
non_sendable_result_in_objc- Severity
- error
- Message
non-Sendable type {} returned by {} '@objc' {} cannot cross actor boundary
The compiler puts it in the diagnostic group NonSendableInAsyncConformanceOrOverride.
- Code
non_sendable_result_in_override- Severity
- error
- Message
non-Sendable type {} cannot be returned from {} override to caller of superclass {}
The compiler puts it in the diagnostic group NonSendableInAsyncConformanceOrOverride.
- Code
non_sendable_result_in_witness- Severity
- error
- Message
non-Sendable type {} cannot be returned from {} implementation to caller of protocol requirement {}
- Code
non_sendable_result_into_actor- Severity
- error
- Message
non-Sendable result type {} cannot be sent from {} context in call to {}
- Code
non_sendable_type- Severity
- error
- Message
type {} does not conform to the 'Sendable' protocol
- Code
non_sendable_type_suppressed- Severity
- error
- Message
cannot both conform to and suppress conformance to 'Sendable'
- Code
noncopyable_cannot_have_read_set_accessor- Severity
- error
- Message
non-'Copyable' {} cannot provide a read and set accessor
- Code
noncopyable_cast- Severity
- error
- Message
non-'Copyable' types cannot be conditionally cast
- Code
noncopyable_cast_pattern_binding_while_borrowed- Severity
- error
- Message
cannot bind the payload of a non-'Copyable' value with a cast pattern while the value is borrowed
- 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
- Code
noncopyable_effectful_getter- Severity
- error
- Message
{} of non-'Copyable' type cannot be 'async' or 'throws'
- Code
noncopyable_enums_do_not_support_indirect- Severity
- error
- Message
non-'Copyable' enum {} cannot be marked indirect or have indirect cases yet
- Code
noncopyable_objc_enum- Severity
- error
- Message
non-'Copyable' enums cannot be marked '@objc'
- Code
noncopyable_parameter_requires_ownership- Severity
- error
- Message
parameter of non-'Copyable' type {} must specify ownership
- Code
noncopyable_parameter_subscript_unsupported- Severity
- error
- Message
subscripts cannot have non-'Copyable' parameters yet
- Code
noncopyable_shared_case_block_unimplemented- Severity
- error
- Message
matching a non-'Copyable' value using a case label that has multiple patterns is not implemented
- Code
nondeinitable_storage- Severity
- error
- Message
{} {} cannot have non-'Deinitable' type {}
- Code
nonescapable_foreign_reference_type- Severity
- error
- Message
{} cannot be both a foreign reference type and non-'Escapable'; foreign reference types are imported as Swift classes, which are always escapable
- Code
nonexhaustive_attr_on_frozen_type- Severity
- error
- Message
cannot use '@nonexhaustive' together with '@frozen'
- Code
nonexhaustive_attr_on_internal_type- Severity
- error
- Message
'@nonexhaustive' attribute can only be applied to public or package declarations, but {} is {}
- Code
nonexistent_power_operator- Severity
- error
- Message
no operator '**' is defined; did you mean 'pow(_:_:)'?
- Code
nonfinal_operator_in_class- Severity
- error
- Message
operator {} declared in non-final class {} must be 'final'
- Code
nonisolated_actor_sync_init- Severity
- error
- Message
'nonisolated' on an actor's synchronous initializer is invalid
- Code
nonisolated_closure_parameter_parentheses- Severity
- error
- Message
the parameter list of a 'nonisolated' closure requires parentheses
- Code
nonisolated_distributed_actor_storage- Severity
- error
- Message
'nonisolated' can not be applied to distributed actor stored properties
- Code
nonisolated_local_var- Severity
- error
- Message
'nonisolated' can not be applied to local variables
- Code
nonisolated_mutable_storage- Severity
- error
- Message
'nonisolated' cannot be applied to mutable stored properties
- Code
nonisolated_non_sendable- Severity
- error
- Message
'nonisolated' can not be applied to variable with non-'Sendable' type {}
- Code
nonisolated_nonsending_expected_lparen- Severity
- error
- Message
expected '(' following 'nonisolated'
- Code
nonisolated_nonsending_expected_rparen- Severity
- error
- Message
expected ')' after 'nonisolated' modifier
- Code
nonisolated_nonsending_incompatible_with_global_isolation- Severity
- error
- Message
cannot use {} because function type is isolated to a global actor {}
- Code
nonisolated_nonsending_incompatible_with_isolated_any- Severity
- error
- Message
cannot use {} together with '@isolated(any)'
- Code
nonisolated_nonsending_incompatible_with_isolated_param- Severity
- error
- Message
cannot use {} together with an isolated parameter
- Code
nonisolated_nonsending_incorrect_modifier- Severity
- error
- Message
expected 'nonsending' in modifier
- Code
nonisolated_nonsending_only_on_async- Severity
- error
- Message
cannot use {} on non-async function type
- Code
nonisolated_nonsending_only_on_function_types- Severity
- error
- Message
{} may only be used on function types
- Code
nonisolated_nonsending_repeated- Severity
- error
- Message
parameter may have at most one 'nonisolated(nonsending)' specifier
- Code
nonisolated_unsafe_sendable_actor_constant- Severity
- warning
- Message
'nonisolated(unsafe)' is unnecessary for a constant actor-isolated property with 'Sendable' type {}, consider removing it
- Code
nonisolated_unsafe_sendable_constant- Severity
- warning
- Message
'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type {}, consider removing it
- Code
nonisolated_unsafe_uneffective_on_funcs- Severity
- warning
- Message
'nonisolated(unsafe)' has no effect on {}, consider using 'nonisolated'
- Code
nonliteral_enum_case_raw_value- Severity
- error
- Message
raw value for enum case must be a literal
- Code
nonliteral_int_expr_enum_case_raw_value- Severity
- error
- Message
raw value for enum case must be an integer literal expression
- Code
nonliteral_integer_expr_generic_value- Severity
- error
- Message
generic value must be an integer literal expression
- Code
nonliteral_integer_generic_value- Severity
- error
- Message
generic value must be an integer literal
The compiler puts it in the diagnostic group ClangDeclarationImport.
- Code
nonmutating_without_const- Severity
- warning
- Message
attribute 'nonmutating' has no effect on non-const method
The compiler puts it in the diagnostic group ClangDeclarationImport.
- Code
nonmutating_without_mutable_fields- Severity
- warning
- Message
attribute 'nonmutating' has no effect without any mutable fields
- Code
nonobjc_not_allowed- Severity
- error
- Message
declaration is {}, and cannot be marked '@nonobjc'
- Code
nonoptional_compare_to_nil- Severity
- warning
- Message
comparing non-optional value of type {} to '{}' always returns {}
- Code
nonoverride_and_override_attr- Severity
- error
- Message
'override' cannot be combined with '@_nonoverride'
- Code
nonoverride_wrong_decl_context- Severity
- error
- Message
'@_nonoverride' can only be specified on class or protocol members
- Code
nonsendable_instance_method- Severity
- error
- Message
instance method of non-Sendable type {} cannot be marked as '@Sendable'
- Code
nonstatic_operator_in_extension- Severity
- error
- Message
operator {} declared in extension{} must be 'static'
- Code
nonstatic_operator_in_nominal- Severity
- error
- Message
operator {} declared in type {} must be 'static'
- Code
nontrivial_string_to_rawpointer_conversion- Severity
- warning
- Message
forming {} to an inout variable of type String exposes the internal representation rather than the string contents.
- Code
nontrivial_to_rawpointer_conversion- Severity
- warning
- Message
forming {} to a variable of type {}; this is likely incorrect because {} may contain an object reference.
- Code
not_a_generic_macro- Severity
- error
- Message
cannot specialize a non-generic external macro {}
- Code
not_a_generic_type- Severity
- error
- Message
cannot specialize non-generic type {}
- Code
not_constant_evaluable- Severity
- error
- Message
not constant evaluable
- Code
not_implemented- Severity
- error
- Message
INTERNAL ERROR: feature not implemented: {}
- Code
not_inheriting_convenience_inits- Severity
- error
- Message
{} no longer inherits convenience inits from its superclass
- Code
not_objc_function_async- Severity
- error
- Message
'async' {} cannot be represented in Objective-C
- Code
nscoding_unstable_mangled_name- Severity
- error
- Message
{} class {} has an unstable name when archiving via 'NSCoding'
- Code
nscopying_doesnt_conform- Severity
- error
- Message
'@NSCopying' is only valid with types that conform to the NSCopying protocol
- Code
nscopying_only_mutable- Severity
- error
- Message
'@NSCopying' requires property to be mutable
- Code
nscopying_only_on_class_properties- Severity
- error
- Message
'@NSCopying' may only be used on properties in classes
- Code
nscopying_only_stored_property- Severity
- error
- Message
'@NSCopying' is only valid on stored properties
- Code
number_cant_start_decl_name- Severity
- error
- Message
{} name can only start with a letter or underscore, not a number
- Code
numeric_literal_numeric_member- Severity
- error
- Message
expected named member of numeric literal
- Code
objc_addressor- Severity
- error
- Message
addressors are not allowed to be marked '@objc'
- Code
objc_ambiguous_async_convention- Severity
- error
- Message
{} overrides or implements protocol requirements for Objective-C declarations with incompatible async conventions
- Code
objc_ambiguous_error_convention- Severity
- error
- Message
{} overrides or implements protocol requirements for Objective-C declarations with incompatible error argument conventions
- Code
objc_ambiguous_inference- Severity
- error
- Message
ambiguous inference of Objective-C name for {} ({} vs {})
- Code
objc_borrow_mutate_accessor- Severity
- error
- Message
borrow and mutate accessors are not allowed to be marked '@objc'
- Code
objc_borrowing_accessor- Severity
- error
- Message
'borrow' and 'yielding borrow' accessors are not supported in Objective-C
- Code
objc_cannot_infer_name_raw_identifier- Severity
- error
- Message
cannot infer '@objc' {} name because the Swift name is not a valid Objective-C identifier; specify the name in '@objc' explicitly
- Code
objc_class_method_not_permitted- Severity
- error
- Message
{} defines Objective-C class method {}, which is not permitted by Swift
- Code
objc_convention_invalid- Severity
- error
- Message
{} is not representable in Objective-C, so it cannot be used with '@convention({})'
- Code
objc_coroutine_accessor- Severity
- error
- Message
'read' and 'modify' accessors are not allowed to be marked '@objc'
- Code
objc_enum_case_multi- Severity
- error
- Message
'@objc' enum case declaration defines multiple enum cases with the same Objective-C name
- Code
objc_enum_case_req_name- Severity
- error
- Message
attribute has no effect; cases within an '@objc' enum are already exposed to Objective-C
- Code
objc_enum_case_req_objc_enum- Severity
- error
- Message
'@objc' enum case is not allowed outside of an '@objc' enum
- Code
objc_enum_generic- Severity
- error
- Message
{} cannot be {} because it is generic
- Code
objc_enum_no_raw_type- Severity
- error
- Message
{} enum must declare an integer raw type
- Code
objc_enum_raw_type_not_integer- Severity
- error
- Message
{} enum raw type {} must be an integer type expressible in {}
- Code
objc_extension_not_class- Severity
- error
- Message
'@objc' can only be applied to an extension of a class
- Code
objc_for_generic_class- Severity
- error
- Message
generic subclasses of '@objc' classes cannot have an explicit '@objc' because they are not directly visible from Objective-C
- Code
objc_for_resilient_class- Severity
- error
- Message
explicit '@objc' on subclass of {} requires {} {}
- Code
objc_generic_extension_using_type_parameter- Severity
- error
- Message
extension of a generic Objective-C class cannot access the class's generic parameters at runtime
- Code
objc_generics_cannot_conditionally_conform- Severity
- error
- Message
type {} cannot conditionally conform to protocol {} because the type uses the Objective-C generics model
- Code
objc_getter_for_nonobjc_property- Severity
- error
- Message
'@objc' getter for non-'@objc' property
- Code
objc_getter_for_nonobjc_subscript- Severity
- error
- Message
'@objc' getter for non-'@objc' subscript
- Code
objc_implementation_availability_mismatch_only_available_in- Severity
- error
- Message
{} does not match the declaration in the header because it {} only available in {}{}
- Code
objc_implementation_availability_mismatch_unavailable- Severity
- error
- Message
{} does not match the declaration in the header because it {} unavailable{}
- Code
objc_implementation_candidate_has_error_convention- Severity
- error
- Message
{} does not match the declaration in the header because it throws an error
- Code
objc_implementation_candidate_lacks_error_convention- Severity
- error
- Message
{} does not match the declaration in the header because it does not throw an error
- Code
objc_implementation_cannot_have_generics- Severity
- error
- Message
'@objc @implementation' cannot be used to implement {}
- Code
objc_implementation_class_or_instance_mismatch- Severity
- error
- Message
{} does not match {} declared in header
- Code
objc_implementation_early_spelling_deprecated- Severity
- warning
- Message
'@_objcImplementation' is deprecated; use '@implementation' instead
- Code
objc_implementation_extension_restricted- Severity
- error
- Message
'@objc @implementation' extension cannot implement {} because it {}
- Code
objc_implementation_init_must_be_convenience- Severity
- error
- Message
{} is not valid in an '@objc @implementation' extension because Objective-C subclasses must be able to override {} initializers
- Code
objc_implementation_member_requires_vtable- Severity
- error
- Message
{} is not valid in an '@objc @implementation' extension because it is an overridable Swift-only {}
- 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
- Code
objc_implementation_mismatched_error_convention_kind- Severity
- error
- Message
{} does not match the declaration in the header because it indicates an error by {}, rather than by {}
- 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
- Code
objc_implementation_mismatched_error_convention_ownership- Severity
- error
- Message
{} does not match the declaration in the header because it {} the error parameter
- Code
objc_implementation_mismatched_error_convention_void_param- Severity
- error
- Message
{} does not match the declaration in the header because it {} rather than {}
- Code
objc_implementation_missing_impls- Severity
- error
- Message
extension for {} does not provide all required implementations
- Code
objc_implementation_missing_inherited_init- Severity
- warning
- Message
'@objc @implementation' extension does not implement {} inherited from its superclass; invoking it from Objective-C will trap at runtime
- Code
objc_implementation_multiple_matching_candidates- Severity
- error
- Message
found multiple implementations that could match {} with selector {}
- Code
objc_implementation_multiple_matching_requirements- Severity
- error
- Message
{} could match several different members declared in the header
- Code
objc_implementation_must_be_settable- Severity
- error
- Message
{} should be settable to match the settable {} declared by the header
- Code
objc_implementation_ownership_mismatch- Severity
- error
- Message
{} has a parameter ownership modifier that does not match the declaration in the header
- Code
objc_implementation_required_attr_mismatch- Severity
- error
- Message
{} should{} be 'required' to match {} declared by the header
- Code
objc_implementation_sendability_mismatch- Severity
- error
- Message
sendability of function types in {} of type {} does not match type {} declared by the header
- Code
objc_implementation_two_impls- Severity
- error
- Message
duplicate implementation of imported {}
- Code
objc_implementation_type_mismatch- Severity
- error
- Message
{} of type {} does not match type {} declared by the header
- Code
objc_implementation_will_become_nonobjc- Severity
- warning
- Message
{} will no longer be implicitly '@objc' after adopting '@objc @implementation'; add '@objc' to keep the current behavior
- Code
objc_implementation_will_become_objc- Severity
- warning
- Message
{} will become implicitly '@objc' after adopting '@objc @implementation'; add '{}' to keep the current behavior
- Code
objc_implementation_wrong_category- Severity
- error
- Message
{} should be implemented in extension for {}, not {}
- Code
objc_implementation_wrong_decl_kind- Severity
- error
- Message
{} does not match the {} declared by the header
- Code
objc_implementation_wrong_objc_name- Severity
- error
- Message
selector {} for {} not found in header; did you mean {}?
- Code
objc_implementation_wrong_swift_name- Severity
- error
- Message
selector {} used in header by {} with a different name; did you mean {}?
- Code
objc_in_extension_context- Severity
- error
- Message
members of constrained extensions cannot be declared '@objc'
- Code
objc_in_generic_extension- Severity
- error
- Message
extensions of {} cannot contain '@objc' members
- Code
objc_in_objc_runtime_visible- Severity
- error
- Message
{} cannot be {} because class {} is only visible via the Objective-C runtime
- Code
objc_in_resilient_extension- Severity
- error
- Message
'@objc' {} in extension of subclass of {} requires {} {}
- Code
objc_init_accessor- Severity
- error
- Message
init accessors cannot be marked '@objc'
- Code
objc_interop_disabled- Severity
- error
- Message
Objective-C interoperability is disabled
- Code
objc_invalid_on_failing_init- Severity
- error
- Message
a failable and throwing initializer cannot be {} because 'nil' indicates failure to Objective-C
- Code
objc_invalid_on_foreign_class- Severity
- error
- Message
method cannot be {} because Core Foundation types are not classes in Objective-C
- Code
objc_invalid_on_func_inout- Severity
- error
- Message
{} cannot be {} because inout parameters cannot be represented in {}
- Code
objc_invalid_on_func_param_type- Severity
- error
- Message
{} cannot be {} because the type of the parameter {} cannot be represented in {}
- Code
objc_invalid_on_func_result_type- Severity
- error
- Message
{} cannot be {} because its result type cannot be represented in {}
- Code
objc_invalid_on_func_single_param_type- Severity
- error
- Message
{} cannot be {} because the type of the parameter cannot be represented in {}
- Code
objc_invalid_on_func_variadic- Severity
- error
- Message
{} cannot be {} because it has a variadic parameter
… cannot be …. objc_invalid_on_static_subscript
- Code
objc_invalid_on_static_subscript- Severity
- error
- Message
{} cannot be {}
- Code
objc_invalid_on_subscript- Severity
- error
- Message
subscript cannot be {} because its type cannot be represented in Objective-C