Comments (3)
As far as supporting Xcode 12.2, I am seeing warnings about the targeted version of iOS. The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.2.99.
My project is targeting iOS 12.0, and I believe that this 8.0 setting is from Mockingbird, perhaps Mockingbird's Package.swift
since I am including it via Swift Package Manager.
from mockingbird.
I am trying out Mockingbird, and I too am using Xcode 12.2 / Swift 5.3.1. I am running into problems trying to do any stubbing: given is not in scope
. Adding import Mockingbird
fixed this -- I was able to call mock()
without this and didn't realize it was necessary in order to call given()
: I don't see the import step mentioned in the instructions.
I have installed Mockingbird using Swift Package Manager, setting the commit to use to be 064f866. Since v0.16.1 isn't released some of the installation instructions won't work. I manually updated the MockingbirdSupport directory, but it doesn't look like there were any changes to the support files. I updated the mockingbird
binary. I reinstalled Mockingbird in the test target. Doing these things, this test build appears to work correctly (I am able to mock, stub, and verify for a very simple example).
I do however get a warning: Module 'Mockingbird' was not compiled with library evolution support; using it means binary compatibility for 'MyXCFrameworkTests' can't be guaranteed
. Is there a reason why library evolution support is not enabled?
from mockingbird.
Hereโs some artifacts built with Swift 5.3: https://github.com/birdrides/mockingbird/actions/runs/366959884
Let me know if this works for you; will cut a patch by end of week.
from mockingbird.
Related Issues (20)
- warning: no calls to throwing functions occur within 'try'
- forwardCallsToSuper on class method
- Generator fails to create mock for the simplest PAT
- Missing or confusing documentation HOT 1
- Unable to stub closure in static function HOT 1
- Mocking URLSession with different URL parameters and responses
- Mock generator ignores class-only protocols HOT 3
- Exception on line with given on MacOS 13.2 and XCode 14.2 HOT 3
- Is mockingbird still being maintained?? HOT 2
- Unable to resolve inherited type 'AnyObject' HOT 3
- Mock doesn't work when created in setup method HOT 1
- Mock async and throwing properties
- Excluding file mechanism not working (on a custom Swift Package) HOT 3
- Mockingbird doesn't work out of the box on new projects and Xcode 15 due to sandboxing
- Always getting "Use of protocol 'CaseIterableDefaultsLast' as a type must be written 'any CaseIterableDefaultsLast'" Compiler Error
- Privacy Manifest
- Not generating any mocks results
- 'mock' is unavailable when mocking public protocols from other module HOT 2
- Error using function `any(_:of:)` when closure use generic types
- Supporting Source Files don't allow mocking of external types
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 mockingbird.