Xcode and Ruby

Hi.
I am learning to program right now and I started with Objective-C. Although I am still working on it, I recently got word of a Language called Ruby. I wanted to try it out because it is a interpatid language no,t compiled.
The problem there is nothing like Xcode for it where you can write code run, test and distribute it.
I was hoping if I coul acssess Ruby from Xcode (it said on the Ruby website that c and  c++ and some other languages could acssess it).
Also it is prity complicated to download (at least for me. I am not so used to using Terminal yet) so if you could give me some tips or give me a good link that would be nice too.
Thanks a lot.

Unless you want to use Cocoa with a custom user interface via the Interface Builder, there isn't a particular reason to use Xcode.
As mentioned, TextWrangler can be used with the version(s) of Ruby that are installed with the OS, and there is also RubyCocoa (which is also already installed).
For a compiled Ruby that is integrated into Xcode, the MacRuby project started at Apple, moved to open source, and has since been withering on the vine when most of the contributers moved over to RubyMotion, but it still works with OS X 10.6 Snow Leopard through OS X 10.8 Mountain Lion.

Similar Messages

  • Python and Ruby option is missing from XCode

    I just installed xcode 3.2 and noticed I don't have the python, ruby or Java option when I try to create a new project.
    This happened when I uninstalled 3.1 and installed 3.2
    Any idea what happened? How do I get them back? I'm running Mac OS X 10.6.
    TIA,
    Fred

    Apple stopped including Cocoa project templates for Python and Ruby in Xcode 3.2. An engineer said on Apple's Xcode mailing list that the templates included with Xcode were constantly out of date. They encourage developers to download the templates directly from the PyObjC and Ruby Cocoa websites.
    Apple yanked the Java project templates from the New Project Assistant. To access them in Xcode 3.2, you must open the Organizer by choosing Window > Organizer. Click the + button at the bottom of the Organizer and choose New From Template > Java Templates.

  • Perl and Ruby

    I was running OmniDiskSweeper to see what was taking up space on my iMac. I saw "Perl" and "Ruby". I'm wondering what they are, and do I need them?
    Thank you,
    Romelle

    Perl and Ruby come installed with Leopard 10.5; each has a different purpose and
    could be used by users and developers. Usually they use little space and don't need
    to be removed if looking for big space wasters on the computer.
    +Warning: OS X expects and sometimes relies on frameworks and software shipped+
    +with the system. It would be a very bad idea to remove the system Ruby (or Perl.)+
    You can't just drag items from the System to Trash; some will mess up the OS X if
    they are removed. There should be Developer pages about Perl and Ruby; the
    versions installed as part of OS X 10.5, are probably best left alone...!
    Sometimes, these obscure sounding things may have a connection to something you
    do, or have done, in your computer. If you use X11 (for open office, etc) some of these
    items may be helpful or required as support items. If you installed X11, you'd have to
    use Terminal to uninstall it; same as with Ruby. A small input error in Terminal, and the
    OS X may no longer work; so a re-install of OS X would be required. People who are
    developers, may replace an older Perl or Ruby, with a newer one, for a project; the OS
    looks for these to be there as part of its working system. Whether you do is secondary.
    Ruby is a programming and scripting language. An open source utility, of a sort.
    This kind of thing can be used with Xcode and Terminal, to customize the OS.
    Perl is used by the system, too; and anything you find from the original OS X install
    should be left alone... it helps scripting and other functions for the OS and the user.
    There are several different background things essential to OS X functions.
    • *An Introduction to Perl for Mac OS X:*
    http://www.mactech.com/articles/mactech/Vol.18/18.09/PerlforMacOSX/index.html
    • *An Introduction to Ruby for Mac OS X:*
    http://www.io.com/~jimm/writing/IntrotoRuby.html
    Some of these kinds of items would require careful consideration before removal;
    and for some users, who use and need them, there are newer versions. To remove
    Ruby, there is a command-line (terminal) level of access to handle it.
    Since parts of OS X are very integrated, one has to be careful if removing stuff.
    Software can use these items; so support for them is included with OS X 10.5.
    You may be able to search a Wiki site to get more detailed information on each.
    {However, as a matter of course, since they were installed with the original computer
    software, they should not be a concern in what may be a need to remove folders &
    files created by the user. A few dozen music files, and/or images can occupy much
    more hard disk drive space than a few support software files.}
    Have you archived music, photo, movie, and other files to an off-computer device?
    Large libraries of images and music can be moved from the computer and then
    the original files can be deleted; just be sure to double-check files in the new location
    before trashing them off the computer's internal hard disk drive.
    So, I'd not mess with anything in the OS X that was not user installed.
    And to have a complete bootable backup clone on externally enclosed
    hard disk drive, before attempting to change items in the computer' OS
    where you have originals without a backup, is really asking for troubles.
    But that's just my opinion:
    Full speed ahead and swat the mosquitoes.
    Good luck & happy computing!

  • How can i create link between ipad(xcode) and webserver?

    Hi, I'm a new to iPad development and i need help,
    i'm not good with english but i try to explain my question:
    how can i create link between ipad(xcode) and webserver?
    (the webserver ".NET" with driver odbc is connected with DB Oracle)
    so, how can my ipad application access to the Oracle DB?
    Create a webservice (.NET) to be place between iPad and DB, is this correct?
    how can i do it?
    which are libraries to include in the xcode's framework?
    thx

    I think the following URL will be your best answer:
    http://stackoverflow.com/questions/3510468/connecting-iphone-to-an-odbc-database

  • Upgrading to xcode and can't connect to the network

    Hi! I use a C++ library in my application which connects to the network (I suppose it uses sockets). I've been using it for months and I was using xcode 3.2.4. Now, I just had the great idea of upgrading to xcode 3.2.5, and I found out my application was crashing with the error:
    If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first. 3.2.5
    Ok, couldn't solve it, so went back to 3.2.4, as suggested somewhere. The application is not crashing anymore, but now the library can't connect anymore to the network. Tried to rebuild it (I didn't write the library but I have the sources) and use the new library, but nothing. Still the library can't connect to the network. I tried with every simulator.
    Any idea what there could be wrong and how I may be able to solve this? Can I somehow delete manually everything related to xcode and the simulator and try to start all over again?
    Thanks!

    I've been able to temporarily solve this problem by removing the entire Development directory and installing again xcode 3.2.4. Even with xcode 3.2.4 however, the same happened, and I had to do this procedure again. Now it seems to be working correctly, but it seems something very strange has happened. Hasn't anyone experienced anything similar?
    Thanks!

  • Why can't I exit Xcode and shut down my computer?

    Hello,
    I have just installed Xcode and I don't think I like it.
    This time I CAN'T Exit Xcode and shut the computer
    down, I can't do nothing. Even if I hold down the
    off/on button nothing will happen, I guess I have to wait
    until the battery runs out! However, any suggestions?

    try to use "Force Quit":
    The choose "XCode" from the list of items to quit:

  • How to create fxplug transition for xcode and quatrz composer

    how to create fxplug transition for xcode and quatrz composer?

    Hi Mohan,
    You have to create and configure your system in the system administration tab in the portal.
    Usually, it looks like the following:
    System from template: JDBC System
    Connector properties
       Connection URL: jdbc:sap:sqlserver://<serverlocation>;DatabaseName=<database name>
       Driver class name: com.sap.portals.jdbc.sqlserver.SQLServerDriver
    User management properties
       User mapping type: admin, user
    Set the system with an alias.
    Go to user administration tab and map the user with VCRole to the configured system
    (the default for MSSQL is usauly user: sa and pw: admin)
    Save your changes and logon to VC with this user.
    The alias name should appear in your list of systems.
    Hope I helped,
    Shay

  • I am new to xCode and SDK Disks. My Interface Builder will not work and 'quit's unexpecteldy'. What can I do? I really want to create an applicaiton. Thanks

    Hi, I am a new user to xCode and just recently downloaded a SDK Disk image and also an older version of xCode from the Apple Developer site. I opened the 'Interface Builder' for the first time and it worked. Next, when I tried to open it again (with and without the xCode 'Mainmenu.xib' attachment file from xCode) it kept showing the message "it quit unexpectedly".
    I need to create an application for a project I am working on. If anyone who can resolve my problem of why the Interface Builder is not working, that will be great.
    If you need additional details (like which versions etc.) please ask, for I am desperate to find an adequate solution to this problem.
    Thanks.

    If you need additional details (like which versions etc.) please ask, for I am desperate to find an adequate solution to this problem.
    Without intending any disrespect, if you had suspected these would be questions and if you're in a hurry for an answer, then why did you exclude the information?  And yes, knowing the Mac OS X version (preferably Mac OS X 10.5.8 or 10.6.7) , as well as the Xcode version might shed some light on this.  Might.  And I'll presume there's a specific reason you downloaded what I will assume is an Xcode3 version.
    Was this an existing Xcode project, or did you start with a new project here?  If it's an existing project, it could well have a corruption or an incompatibility.
    Initially, I'd probably start with a new project, and load in newly-copied source files.  On the off chance the project is corrupted.
    Failing that, I'd deinstall Xcode using the documented procedures, and would then reload it.  If there was an old version of Xcode around on the system, sometimes wonky stuff can happen with an installation.
    And FWIW, the Apple Developer Forums and the Apple mailing lists tend to see far more developer-related traffic than do these particular forums.  (There's an Xcode users' mailing list around which sees regular traffic, too.)

  • Xcode and older Java projects

    Help!
    Recently I've tried to re-run some older Java Xcode projects and have received this error message:
    "Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation."
    I can get around the problem by copying the old code into a newly created project; however, when I tried to follow the instruction in the error message and consult the Xcode documentation, I could find no information on how to do this. I have tried searching the user docs for all of the terms in the above message with no useful results. Selecting "Upgrade all targets to native" from the Project menu produces a warning that this is not supported in Java.
    I must be missing something really obvious. Can anybody tell me what is going on?
    Thanks, dcl

    Thanks for the quick reply, Karl.
    I should have mentioned that I'm pretty much a beginner with Xcode and Java (actually, with software in general). I get the impression that you don't think that Xcode is a very good way to develop Java. Why is that?
    For my level of programming it works just fine (usually). If I start with a new project there is no problem; however, I can't go back and work on older projects because of the problem I mentioned in the original email.
    Any clues as to what is going on?

  • Hello I am on a macbook pro (retina IOS 9) i have installed xcodes and command line tools but codeblocks does not compile, terminal gives this message /Users/MacPc/Desktop/Untitled1: Permission denied      any one has a solution

    Hello I am on a macbook pro (retina IOS 9) i have installed xcodes and command line tools but codeblocks does not compile, terminal gives this message /Users/MacPc/Desktop/Untitled1: Permission denied      any one has a solution?? please...

    Back up all data before proceeding.
    This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • How do I completely uninstall Xcode and Developer Tools?

    **Sorry if this isn't the place to ask this, but I really didn't find a section dedicated to this, so I'm asking it here.**
    I installed Xcode and the Mac developer tools from Apple's developer site page and I'm not going to use it (for the time being anyway). I dragged and dropped all of the files from the download into the trash and emptied it. Then, I went to Terminal, and typed in the following:
    sudo /Developer/Library/uninstall-devtools –mode=all
    It gave me a prompt to enter my password before continuing, entered my password, and then that was it! Question is, though, is this really it? Did I really get rid of Xcode and all of the developer stuff that came in the Mac Developer Tools download?

    The only thing that I could find in utilities that started with "X" was something called "X11". Also, I had Xcode 3.1.2 installed, and at first I tried typing this command in Terminal:
    $ sudo <Xcode>/Library/uninstall-devtools --mode=all
    I got this from the "About Xcode 3.1.2" document from Apple's developer site, but it wouldn't work. Then I tried the code that I posted in my first post, and I guess it worked. I actually entered the code
    sudo /Developer/Library/uninstall-devtools –mode=all
    a few times (for closure) and the same thing happened every time: password to continue and, that's it! So I guess it worked. I actually got that code from a blog after googling "how to uninstall xcode 3.1.2 and developer tools"!

  • Xcode and C/C++

    I recently upgraded my Leopard to SL. I then installed Xcode 3.2.1, but I'm no longer able to create regular C/C++ projects. Can anyone help me?

    I'm assuming that by "them" you mean the Carbon project templates. You have to install Xcode 3.1, at least temporarily. You can have Xcode 3.1 and 3.2 installed on the same computer.
    After you install Xcode 3.1, copy the Carbon application templates to the location of user project templates. The Carbon templates are in the following directory:
    XcodeInstallLocation/Library/Xcode/Project Templates/Application
    Where XcodeInstallLocation is the directory where you installed Xcode 3.1. Copy the templates to the following directory:
    /Library/Application Support/Developer/Shared/Xcode/Project Templates/Carbon
    You will have to manually create some of the folders in that path, at least the Project Templates and Carbon folders. After copying the Carbon project templates, restart Xcode and create a new project. Under User Templates, there should be a Carbon entry. Select it and you should be able to choose the Carbon application projects. At this point, you can uninstall Xcode 3.1.

  • Cheapest option for someone new to mac wanting to use xcode and try develop

    Hi
    Apologies if this is in wrong location but couldnt find a general section
    I havent used mac before, looking to find cheapest option to get in to the mac World and try my hand with xcode / develop the likes of an app for iphone for fun
    Had found a imac5 1 but when I researched further it would appear that I might not be able to use this for latest version of xcode and therefore wouldnt suit my need. Shame as I think I could have got it for €300
    Am I correct - in that its not suitable?
    Any suggestions on what else would be suitable or where I could start?
    I couldnt afford to spend €1,000 or more on a new mac whether it was desktop or laptop etc.
    I want to get something thats useable (not from the dark ages) but realise that I may have to go back at least a few years thus the reason I was looking at the imac5,1
    Thanks for your time. Any help advise etc would be appreciated.

    The latest XCode requires OSX Lion. That requires:
    Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of RAM
    Mac OS X 10.6.6 or later with the Mac App Store installed
    At least 4GB of additional disk space to accommodate the download, but more is obviously recommended
    Thus, assuming that whan you said imac5 you were referring to an iMac with an Power PC G5 processor you are right i that that is not compatible.
    There are some Mac with an Intel Core sSolo and just Intel Core Duo processor that will not work with the latest XCode.
    I would look for a Mac Mini 2007 or later since those meed the XCode requirements

  • Do I need xCode and developer tools?

    Hi,
    Do I need Xcode and the developer tools? I'm not a software developer and don't see a time when I will be. I did a quick check and the Developer file on my HD is taking up roughly 6 GB of space. If I don't need them, I'd love to free up that space for other things (i.e. movies, music, photos, etc.). If I don't need them, what is the best way of going about getting rid of them?
    Thanks

    You dont need them at all if you're not a developer or do not use any of the utilities for troubleshooting or any other purpose. To uninstall the developer tools, open the Terminal and enter the following command:
    sudo /Developer/Library/uninstall-devtools -mode=all
    Supply your password, and you should be all set once the script is done running.

  • Apple's jade and ruby?

    Hi,
    Would like to know about apple's Jade framework, and ruby transaction server..the info on net available doesnt pertain to any of these technologies.
    can anyone tell me what is these, and where can i find info about the same
    Thanks
    Aths

    Hi Steven,
    Have you checked the Project settings? It may be that the 'Assets' tab may have EXS instruments being collected in your project... or Impulse responses.
    I have found this to be a culprit in slowing things down in the past. It seems to have to rescan the EXS instruments after every save when it's set like this. (was like this in 7 too).
    The project settings seem to default to this when you do a 'Save As' ie. It collects all the assets etc.

Maybe you are looking for

  • Windows LIve Messager Problems On N97

    Hi Everyone I wonder if anyone can help me. I have a Nokia N97 on the three network. I went to use Windows Live Messenger last week and it errored so I thought I would reinstall WLM again. I uninstalled the one on my handset and went to Planet 3 to d

  • Images not loaded from WEB-INF/lib/images.jar

    The images are found in root/images/*.gif, but not when jarred up and placed in the lib folder. I've looked everywhere for a solution but all I've seen is suggestions of other places to put the folder, or to add it to the classpath. The jar is being

  • Using Crystal Reports 2008 SP3 with the Brother 9500PC, 9700PC, and P9800PC

    We have using Crystal Reports with the Brother Label printers for years until we were forced to use Crystal 2008.  The label printers have worked in the past and we usually create a label template in the printer driver and this configuration is store

  • Insanely Simple Navigation Not Working

    Working w/the Core book, which is not much help on exception cases. Here are my files: WEB.XML      <!-- Faces Servlet -->      <servlet>           <servlet-name>Faces Servlet</servlet-name>           <servlet-class>javax.faces.webapp.FacesServlet</s

  • I can not move files to the trash.

    I can not move files to the trash. When I drag the file to the trash it does not move, but it does appear in the trash and when I empty it, the file is erased. When I go back to my files, the file I just deleted is still there. I keep getting the "st