Programming Search⌘K

Swift errors and diagnostics, page 10 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.

Ignoring '…'; this option has been obsoleted by module selectors (add '-disable-module-selectors-in-module-interface' to restore original behavior). ignoring_option_obsolete_module_selectors

The compiler puts it in the diagnostic group OptionObsoletedByModuleSelectors.

Code
ignoring_option_obsolete_module_selectors
Severity
warning
Message
ignoring '{}'; this option has been obsoleted by module selectors (add '-disable-module-selectors-in-module-interface' to restore original behavior)

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

Safely use '@_implementationOnly' without library evolution by setting '-enable-experimental-feature CheckImplementationOnly' for …. implementation_only_requires_library_evolution

The compiler puts it in the diagnostic group ImplementationOnlyDeprecated.

Code
implementation_only_requires_library_evolution
Severity
warning
Message
safely use '@_implementationOnly' without library evolution by setting '-enable-experimental-feature CheckImplementationOnly' for {}

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

Module … is in package '…' but was built from a non-package interface; modules of the same package can only be loaded if built from source or package interface: …. in_package_module_not_compiled_from_source_or_package_interface

Code
in_package_module_not_compiled_from_source_or_package_interface
Severity
error
Message
module {} is in package '{}' but was built from a non-package interface; modules of the same package can only be loaded if built from source or package interface: {}

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

Module … is in package … but was loaded from SDK; modules of the same package should be built locally from source only: …. in_package_module_not_compiled_locally

The compiler puts it in the diagnostic group PackageModuleLoadedFromSDK.

Code
in_package_module_not_compiled_locally
Severity
warning
Message
module {} is in package {} but was loaded from SDK; modules of the same package should be built locally from source only: {}

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

'@dynamicCallable' requires … to have either a valid 'dynamicallyCall(withArguments:)' method or 'dynamicallyCall(withKeywordArguments:)' method. invalid_dynamic_callable_type

The compiler puts it in the diagnostic group DynamicCallable.

Code
invalid_dynamic_callable_type
Severity
error
Message
'@dynamicCallable' requires {} to have either a valid 'dynamicallyCall(withArguments:)' method or 'dynamicallyCall(withKeywordArguments:)' method

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