2015-05-21

After my recent switch over to Mac as my main laptop for O365 / SharePoint development, Finally I got an IOS native app running using the O365 IOS SDK and Swift. Nearly after 15 years of development using Microsoft Technologies and Tools, the mobile app development using XCode and Swift rekindles my memory of learning the Object Oriented Programming using C and C++.

Referenced Article:

Step 1 : Register the app on the Azure AD

Step 2: Create a Single View application in the XCode

Step 3 : Setup the Pod file to install the following

  • pod ‘ADALiOS’, ‘~> 1.2.2’
  • pod ‘Office365’, ‘~> 0.9.1’  (The previous versions does not have the unified api end point).

  • run “pod install” on the terminal or “pod update” if you want to upgrade to the latest. (The below screen shot shows the output of the update – because I installed the old version first and updated to the latest).

Step 4: Create the Header file as below

  • Include the ADAuthenticationContext.h, office365_odata_base.h and office365_graph_sdk.h (graph – unified api)

Step 5: Initialise the Azure AD app details

Step 6: Initialise the Authentication Context

Step 7: Implement the function to get the list of users using the unified api

Step 8 : Build & Run

About the author 

Balamurugan Kailasam