Skip to content

[NSFileCoordinator coordinateWritingItemAtURL:options:error:byAccessor:] #22

Description

@nickasd

The generated code generates two errors: Value of optional type 'URL?' must be unwrapped to a value of type 'URL' and after correcting that one Cannot convert value of type 'Error?' to expected argument type 'NSError?'.
http://swiftify.me/pgqw8n

Activity

  1. tomattoz commented on Jul 28, 2020

    @tomattoz
    Collaborator

    Value of optional type 'URL?' must be unwrapped to a value of type 'URL'
    This caused by the same name of variable and argument newURL.
    See fixed example: http://swiftify.me/128oqm.
    Anyway I've created a bug: https://swiftify.atlassian.net/browse/SWC-1042.

    Cannot convert value of type 'Error?' to expected argument type 'NSError?'
    The same as in #21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions