Comments (7)
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.
Add Swift 3.1 support // we dropped trello in favour of github projects
from swiftymocky.
- 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.
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:
- Attach binaries to support branches
- Fill issue within Sourcery, asking for help (could do anyway)
- Investigate stencil + spm
from swiftymocky.
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.
@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.
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)
- Compilation Performance Issues HOT 2
- Mock generation failure for Swift Package when using actor objects in package HOT 3
- Feature Request: View controller and view mocking support.
- Missing parenthesis optional existential type (any ProtocolName) properties
- Mock a protocol in an SPM dependency framework.
- Feature request: Allow partial mocks for testable subclasses
- Stubber with factory behavior
- Invalid redeclaration error in .generated file while using tuples with typealias
- Can't Download CLI tool
- generate command fails on xcode cloud HOT 1
- Use XCTestDynamicOverlay
- _InternalSwiftSyntaxParser is missing again HOT 2
- Issue with ShellOut dependency with SPM HOT 1
- How to add generated file with swiftlint rules in version 4.2.0 with new Mockfile format HOT 1
- There is no fallback data, if no 'Given` method provided. HOT 1
- How to include swift package file in mockfile
- cannot decode object of class (SwiftActor) for key (NS.objects) because no class named "SwiftActor" was found HOT 2
- outdated Sourcery version (1.8.0) doesn't build on macos ventura (apple silicon)
- Conflict with swift-openapi-generator
- Mocked return value is different for different cases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftymocky.