Comments (16)
I think it was because I made a draft release. Try again now or download the latest release 👍
from swiftmockgeneratorforxcode.
Ok, you can download the new version here. Let me know if it works for you and I'll make a release.
from swiftmockgeneratorforxcode.
@seanhenry will absolutely test. link is 404'ing for me right now though.
from swiftmockgeneratorforxcode.
Hey @seanhenry, just downloaded the draft release and as far as I can see right now it works like a charm. I'll keep this issue open until I have double check in next week. If that's okay with you. Thanks for your time and effort!
from swiftmockgeneratorforxcode.
Any update on this?
from swiftmockgeneratorforxcode.
Hi @MattAydin
Thanks for raising this issue and sorry for the late reply. I haven't updated to Big Sur yet but Xcode plugins can disappear sometimes especially if you have multiple Xcode apps installed. When this happens to me I follow the steps in the Troubleshooting section of the readme to refresh the plugins. Let me know if that doesn't work.
from swiftmockgeneratorforxcode.
@seanhenry Also having an issue with this. Did full uninstall/reinstall and not seeing it in editor menu.
Plugin shown when executing pluginkit -m -p com.apple.dt.Xcode.extension.source-editor -A -D -vvv
+ codes.seanhenry.MockGeneratorApp.XcodePlugin(0.25)
Path = /Applications/Swift Mock Generator for Xcode.app/Contents/PlugIns/Mock Generator.appex
UUID = BABBE269-D921-4AC2-BFA7-B9DB13BA47A6
Timestamp = 2020-10-28 17:54:34 +0000
SDK = com.apple.dt.Xcode.extension.source-editor
Parent Bundle = /Applications/Swift Mock Generator for Xcode.app
Display Name = Mock Generator
Short Name = Mock Generator
Parent Name = Swift Mock Generator for Xcode
(1 plug-in)
from swiftmockgeneratorforxcode.
Hey @seanhenry, thanks for your reply. I have already followed the steps stated in the troubleshooting section. Still no luck unfortunately. I am using Xcode version 12.1. Also as @dannypier states above, I have the same response when running that command as well.
from swiftmockgeneratorforxcode.
Ok, just to make sure we're on the same page:
- Go to System Preferences -> Extensions -> Xcode Source Editor and make sure the plugin is visible and checked.
- Run the following command in Terminal to refresh the plugins - double check the path the Xcode is correct on your machine. If you have multiple versions of Xcode installed then you must point to Xcode 12.1.
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f /Applications/Xcode.app
If you have already tried the above and it's still not working then you may have to search through the console logs:
- Open Console.app (
/Applications/Utilities/Console.app
) - Go to
system.log
underReports
on the left - Search for
mock
and see if there are any logs relating to the plugin
Unfortunately I can't reproduce the problem (on Mojave with Xcode 12.1) and I can't upgrade to the beta right now. But post any clue in the logs that you might find and I might be able to figure this out.
from swiftmockgeneratorforxcode.
Thanks for the response @seanhenry. Followed your steps, plugin is visible and checked. No messages in logs. Would post clues here if I had them but the system log doesn't show anything related to mock.
from swiftmockgeneratorforxcode.
On my end it's the same unfortunately. Double checked with the steps you provided above, and also checked the Console.app for any logs related to the plugin. None..
Is there any other way for us to help you find a solution to this issue?
from swiftmockgeneratorforxcode.
Ah, looking at the release notes for Xcode 12:
For compatibility with new security features in macOS 11, Xcode extensions must be built using Xcode 12 and must embed XcodeKit.framework. An Xcode extension rebuilt with these tools remains compatible with older versions of Xcode and macOS. (51822755)
I'll make a new build shortly and I'll post it here first since I can't test it without Big Sur. If this fixes it for you both, I'll create a release
from swiftmockgeneratorforxcode.
also confirming that the latest release fixed me up. thanks for cowboying this fix out @seanhenry!
from swiftmockgeneratorforxcode.
May have spoke a smidge too soon. Mock generator now appears in the edit menu again, but upon any generator receive a The file "<Project Name>" could not be found
message.
from swiftmockgeneratorforxcode.
Just verified. I just successfully generated a spy on Big Sur using Xcode 12.1. I hope your issue is resolved as well @dannypier. @seanhenry, whenever you feel like it, you can close this issue.
from swiftmockgeneratorforxcode.
It looks like it's working on Big Sur now. @dannypier feel free to open an issue if you are still getting that error.
from swiftmockgeneratorforxcode.
Related Issues (20)
- Installation? HOT 1
- Using this with Objective C HOT 1
- Typo in permission error message
- Generated code does not follow the enclosing class access control HOT 1
- ObjectToTest ???? HOT 2
- Can't find Mock Generator on Big Sur HOT 1
- import AST errors HOT 2
- Stubs are not generated when the member variable end in a '$'
- Optional properties have a force-unwrapped stub
- Installation via Homebrew
- Stopped working under Big Sur and Xcode 12.4 HOT 1
- Extensions not supported HOT 1
- Indentation follows Xcode ctrl-i
- Naming Conventions
- Generate async mocks HOT 6
- Cannot compile because of missing private framework `SwiftToolkit`
- Optional function parameter break generator
- Handle generic completion handlers in mocked function
- Can I enter it in the function?
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 swiftmockgeneratorforxcode.