Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MetalRCG

macrumors newbie
Original poster
Sep 20, 2012
25
0
Winter Springs, FL
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.
 
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?

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.
 
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.
 
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)?
 

Attachments

  • Screen Shot 2013-11-20 at 9.48.16 AM.png
    Screen Shot 2013-11-20 at 9.48.16 AM.png
    25.3 KB · Views: 431
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.

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:

zu1h.jpg


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

rpfm.jpg
 
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. :)
 
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
 
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.
 
I can only find the older videos of Stanford, is there a link or any keyword to find the new tutorials for iOS 7?
 
Thanks Dejo, But when It will the IOS 7 jailbreak available??

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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.