New to xCode

Discussion in 'iOS Programming' started by MetalRCG, Nov 20, 2013.

  1. MetalRCG macrumors newbie

    Joined:
    Sep 20, 2012
    Location:
    Winter Springs, FL
    #1
    I just started watching the Stanford 2013 iOS 7 course videos on iTunes U and I'm excited to start learning how apps are built. I have xCode 5 installed and I'm running the latest version of Mavericks. In the second lecture, he starts going over a simple game in xcode and how to use it. I'm following the instructor to the letter and I'm trying to compile my project. However, I'm getting a code signing error and I'm confused since he's not getting the same thing. I googled the issue and it seems like I have to spend $99 to just compile an iOS program. I'm not trying to create anything to sell in the app store; its just for fun and as a hobby. Is there a way I can get around having to dish out the money if I just want to learn? I'm no longer in college so the student route is not really an option.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Compiling programs in Xcode is free. But, you need to be a paid developer in order to deploy an app to an iOS device. You can run the app in the simulator for free, also. Your only other option is via jailbreaking, which isn't available for iOS 7 yet.
     
  3. MetalRCG thread starter macrumors newbie

    Joined:
    Sep 20, 2012
    Location:
    Winter Springs, FL
    #3
    I'm not able to compile at all. When I click the play (compile) button it gives me the code signing error and then asks me to join the developer program.
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    The Play button issues the Run command (Product > Run, ⌘-R). To compile, you use the Build command (Product > Build, ⌘-B).

    Have you selected an option from the iOS Simulator section or have you selected your iOS Device (which would contain the name of that device if it's connected)?
     

    Attached Files:

  5. Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #5
    On the top left of your project window is a popup that lets you select the build scheme and the target device for running your app.

    If you click on the right hand side of that popup, you should see a list of available devices on which you can run your app. The top items in that list are attached iOS devices. Those won't work if you haven't paid your $99 and configured those devices for development. Below, however, will be a list of different simulators. That's what you want. Pick one of the appropriate simulators.

    Here is where you should click on the project window:

    [​IMG]

    And the list of devices you should see, including the available simulators:

    [​IMG]
     
  6. MetalRCG thread starter macrumors newbie

    Joined:
    Sep 20, 2012
    Location:
    Winter Springs, FL
    #6
    Thanks for the info dejo and Duncan C. I'll try that this evening and post a reply. That might be what it is. My iPhone was connected at the time I created the project so maybe it defaulted to my iPhone rather than the simulator. Once I get my bearings on this, I'll probably pay the $99 and get the proper certificate. I'm just trying before I buy I suppose. :)
     
  7. MetalRCG thread starter macrumors newbie

    Joined:
    Sep 20, 2012
    Location:
    Winter Springs, FL
    #7
    Thanks!

    Thanks guys. :) When I tried what you said it worked perfectly. I'm not sure how it wasn't defaulted to the iOS simulator in the first place. I might have had my iPhone connected at the time so maybe it defaulted to that. :D
     
  8. 1458279 Suspended

    1458279

    Joined:
    May 1, 2010
    Location:
    California
    #8
    There's no reason to hurry up on the paid developer program, most anything can be done without the device, esp if you are in the early learning stages.

    One other note about the cardplaying game in the StanfordU. I ran into an issue around the 3rd video where the cards are being set in the random card part.

    When you get there, let me know and I can tell you what I learned.

    I also have the source code from two others (1 professor, 1 student) and I can email them to you if you want.
     
  9. DGPMaluco macrumors regular

    Joined:
    Nov 16, 2012
    #9
    I can only find the older videos of Stanford, is there a link or any keyword to find the new tutorials for iOS 7?
     
  10. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #10
  11. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #12
    I don't think Dejo is the one who creates apps for jail breaking iOS. This is certainly not the place to ask about it - most of us develop apps to distribute on the App Store, so we'd be risking our ability to do that by assisting others with a technique that Apple doesn't like.

    I'm actually working on an app which communicates with iOS... It has required reverse engineering some of the communication protocols iOS devices use... I'm beginning to see how jail breaking it might be possible, but that's not my goal.
     
  12. DannyBres macrumors 65816

    DannyBres

    Joined:
    Oct 30, 2007
    Location:
    UK
    #13
    You think you are finding exploits and bugs in the code that will allow you to perform code injection?

    What are you reverse engineering? Surelt there are documented protocols that you can use for comms, http, CoreBluetooth etc.
     

Share This Page