glideapps / quicktype-xcode

Xcode extension to paste JSON as Swift, Objective-C, and more
https://quicktype.io
Apache License 2.0
1.68k stars 53 forks source link

After installed from app store, can't found app in extensions menu #9

Open 0ber opened 6 years ago

0ber commented 6 years ago

image

dvdsgl commented 6 years ago

Strange. I’ll look into it.

You can try one of our developer builds: https://install.appcenter.ms/orgs/quicktype/apps/quicktype-xcode/distribution_groups/Xcode%20Testers

It’s unsigned so you’ll need to right-click to open it.

dvdsgl commented 6 years ago

What Xcode version do you have?

0ber commented 6 years ago

Version 9.2

0ber commented 6 years ago

I tried your developer build, the same result

0ber commented 6 years ago

I also use Xvim2 plugin https://github.com/XVimProject/XVim2, And for working this plugin need signing Xcode https://github.com/XVimProject/XVim2/blob/master/SIGNING_Xcode.md Maybe this is the reason

dvdsgl commented 6 years ago

The App Store version is signed... Any chance you could try on another computer? I’ll try on a new Mac tomorrow.

dvdsgl commented 6 years ago

I know this sounds silly, but have you relaunched System Preferences? It needs to reload to discover the extension, apparently.

0ber commented 6 years ago

I removed Xvim and XcodeSigner, but it doesn't help.

mikealex commented 6 years ago

I have similar issues. After installing from the Mac App Store, it does appear in my Xcode extensions and has been enabled, but the menu option doesn't appear in Xcode.

I downloaded the latest upgrade today, but still no luck.

screen shot 2018-01-21 at 12 37 31 pm screen shot 2018-01-21 at 12 40 05 pm screen shot 2018-01-21 at 12 44 43 pm screen shot 2018-01-21 at 12 44 58 pm screen shot 2018-01-21 at 12 52 46 pm
dvdsgl commented 6 years ago

Alright I’ll try to contact Apple about it.

dvdsgl commented 6 years ago

Would either of you be willing to have a screen sharing session where we try to build and debug the extension on your machine together?

dvdsgl commented 6 years ago

Does running sudo /usr/libexec/xpccachectl and rebooting your Mac work? After some research, this is a commonly suggested remedy.

mikealex commented 6 years ago

Google confirmed, xpccachectl no longer exists in High Sierra.

I'm around until 5pm EST if you'd like to do a screen share.

mikealex commented 6 years ago

BTW, brought down the git version. Build fails because it's missing quicktype.js

dvdsgl commented 6 years ago

Follow the instructions in the README to build it.

mikealex commented 6 years ago

Still no dice. I'm not a Node developer, so I may not have all the tools installed.

Mikes-rMBP:quicktype-xcode mikealex$ npm install

quicktype-xcode@1.0.0 install /Users/mikealex/X-Code/quicktype-xcode npm run build

quicktype-xcode@1.0.0 build /Users/mikealex/X-Code/quicktype-xcode script/build.sh

xcode-select: error: tool 'agvtool' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance xcode-select: error: tool 'agvtool' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! quicktype-xcode@1.0.0 build: script/build.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the quicktype-xcode@1.0.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/mikealex/.npm/_logs/2018-01-21T20_15_21_930Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! quicktype-xcode@1.0.0 install: npm run build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the quicktype-xcode@1.0.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/mikealex/.npm/_logs/2018-01-21T20_15_21_959Z-debug.log Mikes-rMBP:quicktype-xcode mikealex$

dvdsgl commented 6 years ago

Interesting. Do you have more than one Xcode installed? Try:

xcode-select --install # Install Command Line Tools if you haven't already.
sudo xcode-select --switch /Library/Developer/CommandLineTools # Enable command line tools
mikealex commented 6 years ago

Same result

mikealex commented 6 years ago

Only one Xcode installed

dvdsgl commented 6 years ago

Did the command still generate quicktype.js? It's only failing when it tries to update the Xcode project version, which is not a necessary step anyway.

mikealex commented 6 years ago

Yes, and now it builds in Xcode.

dvdsgl commented 6 years ago

Make sure you choose the quicktype-xcode target when running form Xcode, this will launch a debug instance of Xcode with a black icon.

mikealex commented 6 years ago

It ran, but still not appearing in Editor menu.

dvdsgl commented 6 years ago

So strange. Anythjng useful in the debug output?

mikealex commented 6 years ago

Ok, it's weird. If I open an existing Swift project, the menu option isn't there. I created a new Swift project, and when I open that project the menu options do appear. This happens in both the debug Xcode and the normal Xcode.

dvdsgl commented 6 years ago

Maybe there is some versioning data in the Xcode project file that determines whether it allows extensions to load? That is very weird.

dvdsgl commented 6 years ago

@ober01 does it work if you create a new project?

0ber commented 6 years ago

no, in my case it doesn't appear in extensions. Look first comment

jigar007 commented 6 years ago

Same thing happening with me, can't find "XCode Source Editor" option under Extensions

yaalisri commented 2 years ago

Does it support Xcode 12? I am using Big Sur and QuickType is not showing as an Xcode extension. Please refer to this link. Any update on whether this will be fixed anytime soon?

dvdsgl commented 2 years ago

Sorry, we are not actively working on this project. PRs are welcome to update this, though.