Coder Social home page Coder Social logo

building fails on Big Sur about pasteboard HOT 14 CLOSED

thomvil avatar thomvil commented on July 21, 2024 2
building fails on Big Sur

from pasteboard.

Comments (14)

berkus avatar berkus commented on July 21, 2024

Reporting the same. Can't build silicon as a result.

from pasteboard.

segeljakt avatar segeljakt commented on July 21, 2024

Hmm, strange, I am getting the opposite:

22:09:32 cargo check
    Updating crates.io index
    Checking pasteboard v0.1.1 (/Users/Klas/Workspace/rust/pasteboard)
error[E0308]: mismatched types
  --> src/lib.rs:63:12
   |
63 |         if pasteboard.canReadObjectForClasses_options(class_array, options) {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `i8`

error[E0308]: mismatched types
  --> src/lib.rs:66:59
   |
66 |             NSData::writeToFile_atomically_(object, path, false);
   |                                                           ^^^^^ expected `i8`, found `bool`

Which version of Big Sur are you on? I am on 11.0.1.

I can add a configuration flag so it works for each version.

from pasteboard.

berkus avatar berkus commented on July 21, 2024

@segeljakt I'm on 11.1 Beta (20C5061b)

let me double check the exact errors I received

from pasteboard.

berkus avatar berkus commented on July 21, 2024
   Compiling pasteboard v0.1.1
error[E0308]: mismatched types
  --> /Users/berkus/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.1/src/lib.rs:63:80
   |
63 |         if pasteboard.canReadObjectForClasses_options(class_array, options) != 0 {
   |                                                                                ^ expected `bool`, found integer

error[E0308]: mismatched types
  --> /Users/berkus/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.1/src/lib.rs:66:59
   |
66 |             NSData::writeToFile_atomically_(object, path, 0);
   |                                                           ^ expected `bool`, found integer

error: aborting due to 2 previous errors

and

➤ rustc --version
rustc 1.50.0-nightly (0f6f2d681 2020-12-06)

from pasteboard.

berkus avatar berkus commented on July 21, 2024

I suspect it could be depending on the version of some objc crate? What provides NSData and canReadObjectForClasses_options here?

from pasteboard.

berkus avatar berkus commented on July 21, 2024

Hello?

from pasteboard.

segeljakt avatar segeljakt commented on July 21, 2024

Hey, sorry I forgot to respond. I'll see if I can add a condition so it compiles differently depending on the OS version

from pasteboard.

berkus avatar berkus commented on July 21, 2024

🙇

from pasteboard.

segeljakt avatar segeljakt commented on July 21, 2024

Can you try and see if #2 compiles on your machine? It adds a conditional compilation which triggers if the OS version is 11.1.x or higher.

from pasteboard.

berkus avatar berkus commented on July 21, 2024

Yep, works, commented in #2

from pasteboard.

segeljakt avatar segeljakt commented on July 21, 2024

Thank you, then I will close this

from pasteboard.

berkus avatar berkus commented on July 21, 2024

Hi!

It would be awesome to have a release published so I can bump the dependencies in silicon.

Thanks!

from pasteboard.

segeljakt avatar segeljakt commented on July 21, 2024

Hi, it should be up now 🎅

from pasteboard.

berkus avatar berkus commented on July 21, 2024

Yay, thanks!

from pasteboard.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.