GithubHelp home page GithubHelp logo

Comments (4)

Flash3001 avatar Flash3001 commented on September 12, 2024

Hey @bwalpoleuk, most likely your library was built using a different version of Xcode.

You can check that by opening the YOURLIBRARY-Swift.h file inside the framework and looking at the header, it says which version of Swift was used to compile. Then you can check your installed version by typing swift --version on your terminal (Swift 4.2.1 as it is the one that comes with Xcode 10.1).

If that is the case you have 2 options:
1 - Recompile your library using Xcode 10.1 and rebuild the binding.
2 - downgrade Xcode and the matching Swift packages on your Xamarin project.

Side note: You can remove all your Swift4 packages and replace with the https://www.nuget.org/packages/Xamarin.Swift/ as one of the benefits is that it does this exact check for you at compile time so you know beforehand if library and Xcode doesn't match.

from xamarin.swift.

bwalpoleuk avatar bwalpoleuk commented on September 12, 2024

@Flash3001 It appears to have been built using Swift 5

// Generated by Apple Swift version 5.0 (swiftlang-1001.0.69.5 clang-1001.0.46.3)

Unfortunately its a 3rd party library so re-compiling it isn't an option.

from xamarin.swift.

Flash3001 avatar Flash3001 commented on September 12, 2024

It is even better, Swift 5 brings a lot of good changes. You can update your Xcode to 10.2 (or 10.2.1) and install the new Xamarin.Swift package (single package) - please be sure to test on iOS 11, if you only test on iOS 12.2 you can miss some issues.

from xamarin.swift.

bwalpoleuk avatar bwalpoleuk commented on September 12, 2024

Great! That fixed it, removing all the Swift 4 packages and installing the new single package https://www.nuget.org/packages/Xamarin.Swift/

from xamarin.swift.

Related Issues (20)

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.