You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Xcode to list of supported 'open in' editors #4825
It seems that there might be a current limitation in that Xcode requires a project file to open and current editor options will open any folder.
The supported editors all use the command line interfaces provided to launch them by passing the path to the current repository. if XCode does have support for working in this way, it sounds like an ideal contribution to sit alongside the other editors.
I'm not sure how to handle the logic of looking for the right project file to open. The simplest answer is open *.xcodeproj but it doesn't cover every case of course.
I'm not sure how to handle the logic of looking for the right project file to open. The simplest answer is open *.xcodeproj but it doesn't cover every case of course.
Being able to open a specific file in a given editor (because it acts as an entry point to organize the source code) is beyond the scope of what's currently supported in Desktop. Visual Studio has a similar constraint, using .sln files to manage a repository containing multiple project files.
I have already completed the implementation of this feature, but have encountered a small issue.
Xcode shows an error message if the path doesn't contain a Xcode project, and will show up the error message
Could not open file (/path)
Should I check if the folder contains a Xcode project when rendering UI? (So hide the option to open in Xcode if there's no project files) Or maybe I can search for commands that capture that error or check if a specific application can open a path so we can try to present a customized dialog.
I have already completed the implementation of this feature, but have encountered a small issue.
Xcode shows an error message if the path doesn't contain a Xcode project, and will show up the error message
Could not open file (/path)
Should I check if the folder contains a Xcode project when rendering UI? (So hide the option to open in Xcode if there's no project files) Or maybe I can search for commands that capture that error or check if a specific application can open a path so we can try to present a customized dialog.
Ideally it would offer to create an Xcode project. If that's not possible, checking to see if the path includes an Xcode project and throwing an error if it doesn't would be better than the current behavior, which is somewhat confusing.
Activity
shiftkey commentedon May 30, 2018
The supported editors all use the command line interfaces provided to launch them by passing the path to the current repository. if XCode does have support for working in this way, it sounds like an ideal contribution to sit alongside the other editors.
Is this something you're able to investigate?
stevemoser commentedon May 31, 2018
I'm not sure how to handle the logic of looking for the right project file to open. The simplest answer is
open *.xcodeprojbut it doesn't cover every case of course.shiftkey commentedon Jun 15, 2018
Being able to open a specific file in a given editor (because it acts as an entry point to organize the source code) is beyond the scope of what's currently supported in Desktop. Visual Studio has a similar constraint, using
.slnfiles to manage a repository containing multiple project files.stevemoser commentedon Jul 3, 2018
Looks like
xed .oropen -a Xcode .is the ticket.https://twitter.com/_inside/status/1014186936049766400
msztech commentedon Feb 4, 2019
@shiftkey Mind if I work on this?
shiftkey commentedon Feb 4, 2019
@msztech not at all. Feel free to ask questions in here if things are unclear or if you encounter interesting issues.
msztech commentedon Feb 4, 2019
Sounds great! Thanks! Will PR soon! @shiftkey
msztech commentedon Feb 13, 2019
I have already completed the implementation of this feature, but have encountered a small issue.
Xcode shows an error message if the path doesn't contain a Xcode project, and will show up the error message
Should I check if the folder contains a Xcode project when rendering UI? (So hide the option to open in Xcode if there's no project files) Or maybe I can search for commands that capture that error or check if a specific application can open a path so we can try to present a customized dialog.
@shiftkey
msztech commentedon Mar 24, 2019
@shiftkey Pull requested ;) Please help me review the changes.
msztech commentedon Apr 20, 2019
Revised version pull requested. (Set Xcode as a default editor)
msztech commentedon Sep 3, 2019
Will submit a new PR this week with ideas described in this PR thread
sportshead commentedon Feb 29, 2020
@shiftkey This issue should be closed
Calorion commentedon Nov 13, 2020
Ideally it would offer to create an Xcode project. If that's not possible, checking to see if the path includes an Xcode project and throwing an error if it doesn't would be better than the current behavior, which is somewhat confusing.