Giter Club home page Giter Club logo

Comments (10)

user-mobil avatar user-mobil commented on August 14, 2024 2

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.

andrewchang-bird avatar andrewchang-bird commented on August 14, 2024

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.

andrewchang-bird avatar andrewchang-bird commented on August 14, 2024

Closing this issue. Please re-open it or join the Slack if needed.

from mockingbird.

user-mobil avatar user-mobil commented on August 14, 2024

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.

user-mobil avatar user-mobil commented on August 14, 2024

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

@andrewchang-bird

from mockingbird.

andrewchang-bird avatar andrewchang-bird commented on August 14, 2024

@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.

user-mobil avatar user-mobil commented on August 14, 2024

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.

andrewchang-bird avatar andrewchang-bird commented on August 14, 2024

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.

user-mobil avatar user-mobil commented on August 14, 2024

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.

andrewchang-bird avatar andrewchang-bird commented on August 14, 2024

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)

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.