Code Monkey home page Code Monkey logo

Comments (7)

krzysztofzablocki avatar krzysztofzablocki commented on May 10, 2024 3

for now Sourcery just has new releases for Swift versions, for swift templates we will be adding both 9.0 and 9.1 version of the bundled framework for now if we can make it work. Those problems will be gone once Swift ABI stability is done

from swiftymocky.

amichnia avatar amichnia commented on May 10, 2024

Add Swift 3.1 support // we dropped trello in favour of github projects

from swiftymocky.

Przemyslaw-Wosko avatar Przemyslaw-Wosko commented on May 10, 2024
  • I got binary of sourcery v0.8,
  • set command line tools to Xcode 8.3.3
  • added Paramter implementation, that works under Swift 3.1
  • mocks were corectly genreated

now we need to plan, how we want to keep support for 3.1
@amichnia any thoughts ?

from swiftymocky.

amichnia avatar amichnia commented on May 10, 2024

Similar story with Swift 4.0 and 4.0.2 - after updating to Xcode 9.1 it stopped building. Had to rebuild sourcery manually from sources. Not sure why building it with pods do not ensure valid version / same as project I don't know.

Possible solutions:

  1. Attach binaries to support branches
  2. Fill issue within Sourcery, asking for help (could do anyway)
  3. Investigate stencil + spm

from swiftymocky.

krzysztofzablocki avatar krzysztofzablocki commented on May 10, 2024

Sourcery is distributed as an application, there is no code that gets compiled when you pod install since the tool is more preprocessor than a code dependency. Thats why we need to update Sourcery versions as Swift isn't stable yet...

from swiftymocky.

amichnia avatar amichnia commented on May 10, 2024

@krzysztofzablocki - thank you very much for the info! We are currently thinking of how to handle that issues. The biggest challenge is that we want to make SwiftyMocky as easy to install and setup as possible, so while building Sourcery from sources works as a charm, it could be bottle neck for some of our users.

There are different ideas now, I thought about adding subspecs with "legacy" Swift support (and already prebuilt Sourcery apps) - is that ok with you? Or do you plan to prepare some kind of support for other swift versions in Sourcery itself? We would really appreciate some hint there :)

from swiftymocky.

amichnia avatar amichnia commented on May 10, 2024

I'm closing this issue for now. Current solution is more like workaround, we used our wiki repo, to maintain prebuilt sourcery binaries (sourcery 0.9.0).

Example script (best would be adding it to post actions in cocoapods):

Usage

sh get_sourcery.sh 4.0.2

get_sourcery.sh

[[ $# > 0 ]] && VERSION="$1" || VERSION="4.0.2"
[[ $# > 1 ]] && OUTPUT="$2" || OUTPUT="./Pods/Sourcery/bin"

echo "CLONE SOURCERY FOR $VERSION INTO $OUTPUT"
rm -r -f "$OUTPUT"
git clone -b "swift/$VERSION" --single-branch --depth 1 https://github.com/MakeAWishFoundation/SwiftyMocky.wiki.git "$OUTPUT"

Closing for now, but we should go back to this topic in 2.0.

from swiftymocky.

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.