Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Location of natalie.swift #22

Open
jai opened this issue May 5, 2015 · 4 comments
Open

Location of natalie.swift #22

jai opened this issue May 5, 2015 · 4 comments

Comments

@jai
Copy link
Contributor

jai commented May 5, 2015

Is there a particular reason that natalie.swift is placed outside PROJECT_DIR and the example project actually uses the natalie.swift located at /usr/local/bin as opposed to the included natalie.swift? If it's not on purpose let me know and I'll refactor

@krzyzanowskim
Copy link
Owner

Thank you for raise this topic. In fact my goal is to make "installer" for Natalie, called like this:

once install Natalie

$ brew install natalie

then install natalie for the project

$ cd ProjectDir
$ natalie.swift install

from now on natalie.swift is copied to the project resources and build phase is added to the project.

This is how I would love to have it.

@ldiqual
Copy link

ldiqual commented Jun 14, 2015

@krzyzanowskim I really like the homebrew approach. What I think would be even neater though is to have natalie as a pod dependency so when people check out your app code and run pod install, all the required dependencies will be fetched. As for the Run Script Phase, an option would be to add it manually (using the Pods/natalie/natalie.swift file), or to let the cocoapods modify the app project when natalie is fetched.
Having to install natalie separately (even with homebrew) is an issue to me.

@phimage
Copy link
Collaborator

phimage commented Jun 14, 2015

I see Natalie more like an external tool, like genstring, swiftlint... Your project is not really dependent on it
I create a symbolic link between my local project clone and /usr/local/bin (and use the xcode plugin)

Cocoapod is better to import framework?
you can have a private repo https://guides.cocoapods.org/making/private-cocoapods.html to do it with your own podspec if this mandatory for you

https://github.com/realm/SwiftLint use homebrew, but this is a compiled command line application

@krzyzanowskim
Copy link
Owner

It's all seems feasible, pod installation for CocoaPods seems feasible and should be done in Podspec I think.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants