Comments (4)
Sounds good. Until now coupling has only been via .xcodeproj file, no dependency outside of standard Cocoa. However, this sounds useful enough to go beyond that. Do you want to send a PR?
from xcodeeditor.
I can confirm this code is working - um - I'm going to simply use the code as is.
It looks like this code can also hook into the console.
MTCodeConsole *console = [MTCodeConsole consoleForKeyWindow];
[console log:mainProject.directoryPath];
[console log:mainProject.projectName];
[console log:mainProject.infoDictionary];
[console log:mainProject.workspacePath];
[console log:mainProject.projectFile];
[console log:mainProject.projectFileDir];
Thanks so much for this library. It's purring like a kitten
MTProject *mainProject = [MTProject projectForKeyWindow];
MTCodeConsole *console = [MTCodeConsole consoleForKeyWindow];
XCProject* project = [[XCProject alloc] initWithFilePath:mainProject.projectFileDir];
[console log:project.groups];
/Users/johndpope/Documents/gitWorkspace/Stencil/StencilPlugin.xcodeproj
(
"Group: displayName = Model, key=EA3D3DBA1AE57D44007BD36A",
"Group: displayName = Vendor, key=EAB992F51AF75D5500F506D9",
"Group: displayName = Additions, key=EAB55BA11AE2D456001EBD12",
"Group: displayName = (null), key=EA31BC2C1AE1AFDE00167EFD",
"Group: displayName = User Interface, key=EA3D3DAC1AE56711007BD36A",
"Group: displayName = Private, key=EA91AC771AF75EA6005B4E74",
"Group: displayName = MTWorkspace, key=835682E31D4FF0DB00F18F9B",
"Group: displayName = DZLObjcAdditions, key=EA91AC711AF75E84005B4E74",
"Group: displayName = Template Options, key=EA3D3DAF1AE56B97007BD36A",
"Group: displayName = Pods, key=2FBE1F592EEA51733F15EE09",
"Group: displayName = Frameworks, key=EA31BC371AE1AFDE00167EFD",
"Group: displayName = Products, key=EA31BC361AE1AFDE00167EFD",
"Group: displayName = Resources, key=EA3EB1B31AE3909B009553F9",
"Group: displayName = Built-in Templates, key=EAD85A971AEEA86000415E84",
"Group: displayName = Supporting Files, key=EA31BC3D1AE1AFDE00167EFD",
"Group: displayName = StencilPlugin, key=EA31BC3C1AE1AFDE00167EFD",
"Group: displayName = Helpers, key=EA23E0431AF4D89E008E4A50",
"Group: displayName = Parsing, key=EA4FB6901AE4D429001EFB21",
"Group: displayName = SDK Fakes, key=EA4FB6821AE398B2001EFB21"
)
from xcodeeditor.
from xcodeeditor.
spring cleaning github issues.
@jasperblues - thanks for your efforts here.
from xcodeeditor.
Related Issues (20)
- addframework failed in xcode7 HOT 11
- ESA.Sales.Foobar.xib: iOS xibs do not support target device type "mac" HOT 1
- Linker Error because of duplicate symbols HOT 3
- Update Compile Sources HOT 4
- Embed framework HOT 9
- xcconfig not work in project and target base configuration!
- how can i remove an existing xxx.framework(not imported from apple's libraries) from my project HOT 4
- Carthage: Dependency "XcodeEditor" has no shared framework schemes
- Add file to dynamic framework target Public/Private/Project Build Phases > Headers?
- Make scheme shared
- removeResourceWithKey and removeMemberWithKey need documentation
- XcodeEditor does not handle Emoji in build phase names well HOT 14
- [Question] Does XCodeEditor support sorting targets in alphabetical order?
- Doesn't get all the XCBuildConfiguration's in the file HOT 2
- "Project file of type file.storyboard can't become a build file." HOT 1
- Support for Copy Bundle Phases HOT 6
- Create new Target & Scheme HOT 1
- EXC_BAD_ACCESS from xce_stringFromMemberType HOT 1
- how to add some .strings files to project? HOT 3
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 xcodeeditor.