Join Todd Perkins for an in-depth discussion in this video Preparing an app to be published, part of Xcode 7 Essential Training.
- View Offline
- Before you can submit your apps to Apple, you'll need to prepare them, for submission. I'm going to select my project in the project navigator, and then, I'm going to make sure that my target is selected in the top bar, in the editor, so under targets I'm choosing, publishing, here, it should be in the default target anyway. if you select your project instead here, you're going to see these settings, so we want to see the target settings, not the project settings. Under our target settings, in the identity section, you'll see, bundle identifier, this is the unique ID for your application.
We talked about this, early in the course. So at this time, this is where you want to add your unique ID. Now, if you've seen the other courses, about creating IOS, or OS X applications, remember that this ID needs to be unique, and it needs to match the ID that you created, in iTunes Connect, and your provisioning profiles. We set a version, and a build number. These need to match what you've set up in iTunes Connect, and your profiles.
Under team it says, none right now. So you need to connect, your developer account, with, Xcode. Now, I've already connected mine, so when I click, team, I see my team name. If you don't have a team, you can click, the add an account button. So here I'm asked to enter, my Apple ID, and my password, remember, that this needs to be connected to a developer account. So you need to be a paid developer to publish your application to an App store.
So you'd sign in here, with your Apple ID, and password and click add, then you would see, this developer account under Apple IDs, in this menu. If you want to join the program, you can actually simply click the, join a program button. And, the program window appears, in your default browser. So here I'm at the enroll link, and I can scroll down and choose to enroll if I want to. You also have information about what's included, and how it works.
I'll go back to Xcode. So we'll cancel out of this menu; so I'll x out of that. So again, you'll need to set up your team, and once you've set it up, you can click that, from the drop down menu here. Then you have deployment info. This is currently unique to iOS, because, I'm in an iOS application. So I can set my deployment info here, the supported devices, status bar style, et cetera, and I can set the app icons, and launch images, and some advanced options below, here.
You can also set the capabilities, what features does your app have? Does if use iCloud? Does it use push notifications? Et cetera. And then, under build settings, you may or may not have to edit this depending on how, xCode is set up for you. Most likely, you won't have to make any edits. But if you do need to modify, these settings, this is where you can optionally connect, your application to your provisioning profiles. So under build settings, what you're looking for, is code signing.
And under code signing identity, you'll see debug and release. You'll likely only need to change release. And if it says iOS developer, you might not even have to change that at all. But if you have provisioning profiles, you can click on this, and then choose from the drop downs, and select, the appropriate provisioning profile. So, under release, it should say any iOS, SDK, or the appropriate OS X, SDK here, and then you want to change under, where it says iOS developer. Xcode is pretty good at choosing your profiles, if you've downloaded them to your computer, and you've installed in Xcode, but just in case, you may want to this manually.
So these are the main Xcode settings. In the other, iOS and OS X courses, you'll learn how to set icons for your application, and other settings that are requirements, to publishing your application to the App store.
This Xcode tutorial helps new iOS and OS X developers install Xcode and start writing and editing code. Author Todd Perkins also reviews the version control and storyboard features, as well as the basics of Interface Builder, Xcode's intuitive UI design tool. Plus, learn how to compile and debug apps, test apps in the iOS Simulator, and send your app to Apple to be published in one of its app stores.
- What is Xcode?
- File handling in Xcode
- Exploring the code editor
- Creating snippets
- Adding Git version control to your project
- Making interface connections to the code
- Using Interface Builder
- Creating an iPhone or iPad storyboard
- Compiling code with the LLVM compiler
- Sharing resources in a workspace
- Catching common errors with Analyze and Fix-It
- Using the iOS Simulator
- Preparing an app to be published