Comments (10)
Hey! Took all day, but I figured it out... it was the .mockingbird-ignore
file. This project is a bit massive, so what I did was ignore everything but a particular folder I am looking to test. That's an odd error, but I am assuming it's because it was trying to mock some things it wasn't capable of somewhere in here. Thanks for your time and help!
- Travis
from mockingbird.
Based on your installation, mocks will generate in the pre-compile build phase for LoginTests
. If you run (or build) your unit testing bundle you should see the file MockingbirdMocks/LoginExampleMocks.generated.swift
get generated.
from mockingbird.
Closing this issue. Please re-open it or join the Slack if needed.
from mockingbird.
I am having the same issue with the transcript:
Showing All Messages
[WARN] Unable to decode the cached target data at /Users/user/Files/iOS/Mobile-iOS/Mobile.xcodeproj/MockingbirdCache/Mobile.lock
Any recommendation?
from mockingbird.
Debugging the generator leads me to find this issue:
Showing All Messages
/Users/user/Library/Developer/Xcode/DerivedData/TDA-cgbasagkjrisyeazvvapcienjukt/Build/Intermediates.noindex/TDA.build/Mock-iphonesimulator/TDATests.build/Script-64285976CAF908518AF02F05.sh: line 5: 734 Illegal instruction: 4 mockingbird generate --targets 'TDA' --outputs "${SRCROOT}/MockingbirdMocks/TDAMocks.generated.swift" --support "${SRCROOT}/MockingbirdSupport"
UPDATE: not quite sure why I am getting this error ...
Fatal error: Loading sourcekitd.framework/Versions/A/sourcekitd failed: file /Users/ryan/Bird/Projects/mockingbird/.build/checkouts/SourceKitten/Source/SourceKittenFramework/library_wrapper.swift, line 39
from mockingbird.
@user-mobil What dependency manager are you using? Are you building the CLI from source, or using one of the pre-built artifacts?
from mockingbird.
Cocoa pods
$ cd Pods/MockingbirdFramework
$ make install-prebuilt
It also successfully installs on my own test target.
$ mockingbird install \
--target BirdTests \
--sources Bird BirdManagers
edit: also, the demo project works as intended
from mockingbird.
It’s odd that the demo project would work but not your main project. Have you tried xcode-select
per this thread? What version of macOS are you running?
from mockingbird.
Catalina, and yes! I have updated it to the proper .app, since i have it under a different name. It still is not working as intended.
from mockingbird.
Try building and installing the CLI from source instead:
$ cd Pods/MockingbirdFramework
$ make setup-project
$ make install
If that doesn’t work, please consider joining the Slack channel as I’m not able to reproduce this on my end. However, I suspect it’s due to having multiple Xcode toolchains installed.
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.