<commit_before># iOS Activity Tracker Sample App for Microsoft Dynamics CRM

These instructions describe how to build and run the sample iOS Activity Tracker application.

## Register the application

Applications that access CRM business data, using the OAuth identity provider of the organization web service, must be registered in Active Directory. For an on-premises/IFD CRM deployment, AD FS 3.0 (or later) is used to register the app. With CRM Online, Microsoft Azure Active Directory is used for app registration. The result of application registration is a client ID value and a redirect URI that must be placed into the sample application's code where indicated in the next section. These values are used in the authentication process to determine whether the app has permission to access the organization's data.

For information on how to register an application, see [Walkthrough: Register a CRM app with Active Directory](https://msdn.microsoft.com/en-us/library/dn531010.aspx).

For internal app testing, you can share a single app registration across multiple apps. An app registration contains a single client ID, but can include multiple redirect URI's. For testing, you can add a redirect URI for each app you are developing. Once you are ready to publish an app to the Apple Store, the app need's its own registration.

## Build the application

To build the sample app, follow these steps. You will need CocoaPods installed to resolve the project dependencies. Follow the instructions from [CocoaPods.org](https://guides.cocoapods.org/using/getting-started.html).

0. Download the project dependencies by running `pod install`. The dependencies that will be installed are the [Microsoft ADAL](https://github.com/AzureAD/azure-activedirectory-library-for-objc) and the [Microsoft Dynamics CRM Mobile SDK Library for iOS](https://github.com/DynamicsCRM/crm-mobilesdk-library-for-ios).
1. Load the ActivityTracker.xcworkspace file, located in the ActivityTracker folder, into Xcode.<commit_msg>Added info to the build instructions.<commit_after># iOS Activity Tracker Sample App for Microsoft Dynamics CRM

These instructions describe how to build and run the sample iOS Activity Tracker application.

## Register the application

Applications that access CRM business data, using the OAuth identity provider of the organization web service, must be registered in Active Directory. For an on-premises/IFD CRM deployment, AD FS 3.0 (or later) is used to register the app. With CRM Online, Microsoft Azure Active Directory is used for app registration. The result of application registration is a client ID value and a redirect URI that must be placed into the sample application's code where indicated in the next section. These values are used in the authentication process to determine whether the app has permission to access the organization's data.

For information on how to register an application, see [Walkthrough: Register a CRM app with Active Directory](https://msdn.microsoft.com/en-us/library/dn531010.aspx).

For internal app testing, you can share a single app registration across multiple apps. An app registration contains a single client ID, but can include multiple redirect URI's. For testing, you can add a redirect URI for each app you are developing. Once you are ready to publish an app to the Apple Store, the app need's its own registration.

## Build the application

To build the sample app, follow these steps. You will need CocoaPods installed to resolve the project dependencies. Follow the instructions from [CocoaPods.org](https://guides.cocoapods.org/using/getting-started.html).

0. In a terminal window, change to the ActivityTracker directory under the project’s root folder, and then download the project dependencies by running `pod install`. The dependencies that will be installed in the Pods folder are the [Microsoft ADAL](https://github.com/AzureAD/azure-activedirectory-library-for-objc) and the [Microsoft Dynamics CRM Mobile SDK Library for iOS](https://github.com/DynamicsCRM/crm-mobilesdk-library-for-ios).
1. Load the ActivityTracker.xcworkspace file, located in the ActivityTracker folder, into Xcode.
{'fraction_non_alphanumeric': 0.052770448548812667, 'fraction_numerical': 0.004797313504437515, 'mean_word_length': 4.931721194879089, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '846523', 'n_tokens_mistral': 1007, 'n_tokens_neox': 946, 'n_words': 564}