-
Notifications
You must be signed in to change notification settings - Fork 121
AppCode plugin and Xcode version #44
Comments
Hm. Need to see what's going one there, but when I saw it last time, there's was not a lot API we can use related to AppCode settings. |
Parsing ~/Library/Preferences/appcode30/options/other.xml works:
I might be able to do a patch though I'm not sure how to integrate with the plugin and all that |
@grav Nice one. 👍
|
Just got my Java on and recreated the simple bash one-liner above in Java for the plugin: https://gist.github.com/grav/d8f44d1a2ad527e764dc (XPathFactory, sheesh ...) |
Alright, I did a pull request with your suggestions, with the big disclaimer that I didn't test it, since I haven't tried compiling the plugin for AppCode yet! |
Okay, now I found out how to link to the correct jars to get the script to compile. I'm still not sure how to build the plugin jar so that I can test it in AppCode. Can you help me out there? Edit: just for my own reference, this is how I compile:
|
Well. The plugin was made long time ago Also - just to mention - use fallback, to old logic of searching xcode-select, in case if something will be different in AppCode configuration |
It's may be even faster by using this example: |
Thanks for the pointers, I'll look into it! |
@grav How it's going? need a help? Will have some time to check this out :) Should I wait for you to finish? |
@PaulTaykalo Didn't get down to looking at the tutorials yet. I did do a pull request with code that now actually compiles, but it is still untested. It would be great if you could test out the PR. I won't have the time before next week. |
Okay, I managed to set everything up and build the plugin in IntelliJ 13. However, I get a weird exception in AppCode when it starts up (or maybe it's when I do Ctrl+x the first time only, in any case, the reaction comes quite late):
I've updated the pull request with the updated .iml and changelog: #63 Maybe I'll look into it again later this week, but ping me if you have any clues :-) Edit: when I build the plugin, I get a 100 MB big plugin with all the AppCode libs for some reason, so I haven't pushed the updated plugin. |
Well, 100 MB plugin is quite a lot :) |
Well, we also need to handle 3.1 and later installations |
AppCode 3 does not rely on xcode-select, instead you choose the desired Xcode version in the Preferences.
But I believe the dyci plugin still relies on xcode-select. Is it possible to make the AppCode version of the plugin aware of the AppCode setting instead of using code-select?
The text was updated successfully, but these errors were encountered: