Skip to content

Cross-Reference for DatawithUnsafeBytes method #357

Description

@malaikapenn

Summary

I ran into an issue with my project where two libraries had methods called DatawithUnsafeBytes. See here for the full issue: swiftlang/swift#81509 (comment). I fixed this by removing the DatawithUnsafeBytes method from ZIPFoundation since it was only used for Swift 4. Is this something you could remove?

Steps to Reproduce

Create a project with both ZIPFoundation and another library that uses that method, such as SwiftProtobuf.

Expected Results

The project is able to be compiled with both libraries.

Actual Results

The compiler crashes during archiving with the following error:
Cross-reference to module 'Foundation'
... Data
... withUnsafeBytes
... with type <τ_0_0> (Data) -> ((UnsafeRawBufferPointer) throws -> τ_0_0) throws -> τ_0_0

Regression & Version

I tried versions 0.9.11, 0.9.15 and 0.9.19

Related Link

swiftlang/swift#81509 (comment)

No activity

Activity on this issue will appear here.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions