Step 6 Create the Entitlements File
Before you can compile your application for ad hoc distribution, you need to add a special code-signing Entitlements file to your project. From Xcode's File Menu, choose New File, and then select Entitlements from the iPhone OS > Code Signing category in the window that appears (see Figure 7-37).
- Figure 7-37. Add a special code-signing Entitlements file to your Xcode project.
Name the new file Entitlements.plist, and save it in the top level of your project. With it selected in Xcode, make sure the get-task-allow Boolean is set to False (unchecked), and then resave the file if needed (see Figure 7-38).
- Figure 7-38. The get-task-allow property must be unchecked in your Entitlements.plist file.
Finally, re-open the Target Info window, and enter the Entitlements.plist filename in the Code Signing Entitlements field of the Build tab (see Figure 7-39).
& Target "BetaTestApp" Info
General Build Rules Properties Comments
Configuration: Distribution
~T) C^-r Search in Build Settings
Show: [ All Settings
Show: [ All Settings
Setting |
Value |
_q |
▼ Architectures |
za | |
Additional SDKs | ||
Architectures |
Standard (armv6) |
îl |
Base SDK |
iPhone Device 3.1 |
I \ |
Build Active Architecture Only |
□ | |
Valid Architectures |
armv6 armv7 | |
▼ Build Locations | ||
Build Products Path |
build | |
Intermediate Build Files Path |
build | |
Per-configuration Build Products Path |
build/Distribution-iphoneos | |
Per-configuration Intermediate Build Files Path |
build/BetaTestApp.build/Distribution-iphoneos | |
Precompiled Headers Cache Path |
/var/folders/jt/jtnKv4tbH6qreaRPCNFylU+ + +TI/-. | |
▼ Build Options | ||
Build Variants |
normal | |
Debug Information Format |
DWARF with dSYM File |
: |
Enable OpenMP Support |
□ I | |
Generate Profiling Code |
□ 1 | |
Precompiled Header Uses Files From Build Di... |
0 | |
Run Static Analyzer |
Id | |
Scan All Source Files for Includes |
0 | |
1 ▼Code Signing | ||
Code Signing Entitlements |
Entitlements.plist | |
▼ Code Signing Identity |
: | |
Any iPhone OS Device ; |
¡Phone Distribution: Electric Butterfly, Inc. |
: |
Code Signing Resource Rules Path | ||
Other Code Signing Flags | ||
1 • 1 |
Based On: Nothing
Based On: Nothing
Figure 7-39. In the Target Info window, enter the Entitlements.plist filename In the Code Signing Entitlements field of the Build tab.
Continue reading here: App Store Identity Badge
Was this article helpful?