Skip to Content
iOS 7 Programming Cookbook
book

iOS 7 Programming Cookbook

by Vandad Nahavandipoor
October 2013
Intermediate to advanced
1053 pages
28h 7m
English
O'Reilly Media, Inc.
Content preview from iOS 7 Programming Cookbook

8.1. Enabling Security and Protection for Your Apps

Problem

You want to store values in the keychain and enable secure file storage for your app.

Solution

Create a provision profile for your app that has file protection enabled.

Discussion

Provision profiles, as discussed earlier in Recipe 8.0, contain entitlements that dictate to iOS how your app utilizes the security functionalities in the operating system. On iOS Simulator, apps do not get codesigned and, therefore, these concepts will not make sense, but for debugging your app on a device or submitting your app to the App Store, you need to ensure that your app is signed with the correct provision profile, for both the Debug and the Release schemes.

I will show you the steps required to create a valid provision profile for your development, as well as Ad Hoc and the App Store. Follow these steps to create a valid development provision profile (with debugging enabled) for the apps that we are going to be working on in this chapter of the book. We start by creating an App ID:

Note

I am assuming that you have already created valid development and distribution certificates for yourself.

  1. Navigate to the iOS Dev Center and sign in with your username and password.

  2. After you are signed in, find the iOS Developer Program section and choose Certificates, Identifiers & Profiles.

  3. On the lefthand side of the screen, find and navigate to the App IDs section of the portal and press the plus button (+) to create a new App ID.

  4. In the Name section, enter ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

iOS 4 Programming Cookbook

iOS 4 Programming Cookbook

Vandad Nahavandipoor
iOS 6 Programming Cookbook

iOS 6 Programming Cookbook

Vandad Nahavandipoor

Publisher Resources

ISBN: 9781449372446Errata Page