freechallenge.blogg.se

Port install for mac
Port install for mac






port install for mac
  1. #PORT INSTALL FOR MAC FOR MAC OS#
  2. #PORT INSTALL FOR MAC MAC OS X#
  3. #PORT INSTALL FOR MAC DOWNLOAD#
  4. #PORT INSTALL FOR MAC MAC#

I am posting these steps as short as possible and assuming that you know about Mac and Xcode projects. These are the complete steps that I usually follow. (You should no longer open the xcodeproj file.) xcworkspace Xcode project file and start coding. "Pod installation complete! There are X dependencies from the Podfile Once completed, there will be a message that says Then install pods into your project by typing in terminal: pod installĭepending how many libraries you added to your podfile for your project, the time to complete this varies. When you are done editing the podfile, save it and close Xcode. Uncomment user_frameworks! if you're using Swift

port install for mac

(This line is an example of adding the AFNetworking library to your project.) For example, in the podfile, type pod 'AFNetworking', '0.9.1' Here is where you add your project's dependencies. Initially there will be some default commands in there. Then open your project's podfile by typing in terminal: open -a Xcode Podfile xcodeproj file resides) and type: pod init Then in the terminal, cd to your Xcode project root directory (where your. Once done, it will output "Setup Complete", and you can create your Xcode project and save it. Alternatively, you can try adding "-verbose" to the command like so: pod setup -verbose

#PORT INSTALL FOR MAC DOWNLOAD#

You can track of the download by opening Activity and go to the Network tab and search for "git-remote-https". The size is very big (370.0 MB in December 2016). Type in the terminal: pod setupĪnd wait it will download the master repository. Next, you need to setup the CocoaPods master repository. Read them and if no error found, it means the CocoaPods installation is done. sudo gem install activesupport -v 4.2.6Īfter installation, there will be a lot of messages. If there is an error "activesupport requires Ruby version >= 2.xx", then install latest activesupport first by typing in the terminal. Or try on Mac OS X v10.11 (El Capitan), type: sudo gem install -n /usr/local/bin cocoapods The Gem will get installed in Ruby inside the System library. (Thanks to reddit user TigerWolf for the suggestion.Open terminal and type: sudo gem install cocoapods

  • You might also want to consider installing and using zsh since it has some very nice features (e.g.
  • Very useful if you are working on a long command.
  • Assuming you have set vi mode for bash, hit Escape+v to edit the current command line you are writing in vim.
  • This comes in handy for keeping track of what your shell script is doing while you are away from the computer.
  • Make the computer speak (literally) by typing say.
  • You can narrow it down to a process or a particular file, by using the -p or -f arguments, respectively.
  • Use opensnoop to see which files are being modified live.
  • In fact, you can open a file the same way opening it in finder would work by typing open.
  • You can open the curent directory in Finder by typing open.
  • pbpaste pastes what is in the clipboard to stdout.
  • Using the clipboard: pbcopy copies what is given to it by stdin into the clipboard.
  • #PORT INSTALL FOR MAC MAC OS X#

    This one is not really a set-up step as much as it is a reminder of some very useful Terminal commands that are Mac OS X specific (as far as I know): sudo port install wget nmap watch pwgen wireshark sudo grep man googlecl coreutils.Optionally, install the following useful ports:.sudo port select -set python python27 (or python31 if you prefer Python 3.1.).Select MacPorts' Python as the default:.sudo port install python27 python31 py27-pip p圓1-pip py27-ipython p圓1-ipython.sudo port install macvim git-core mercurial.Install the following ports to get MacVim, Mercurial, and Git:.To make sure all the rest of the ports are installed with bash completion support, edit /opt/local/etc/macports/nf and add a single line containing:.Install MacPorts by downloading the required package fromĪfter MacPorts is installed run the following: This article has MacPorts commands but the Homebrew equivalents should be Many programmers seem to prefer Homebrew, so if you have not triedĮither, you might want to try both and pick the one you prefer. I personally use MacPorts, though admittedly I have never tried

    #PORT INSTALL FOR MAC FOR MAC OS#

    There are two well-known package managers for Mac OS X: Homebrew and Getting a package manager is going to make your life as a programmer muchĮasier.








    Port install for mac