Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 7025

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 2162

Deprecated: Hook imagify_allow_picture_tags_for_webp is deprecated since version 2.2! Use imagify_allow_picture_tags_for_nextgen instead. in /www/collab365_296/public/wp-includes/functions.php on line 5758
Walkthrough: How to display a list of users from an Office 365 tenant in iOS using Swift - Collab365
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1145

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1152

Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1155

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1162

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/collab365_296/public/wp-includes/functions.php on line 1165

Warning: Undefined array key "url" in /www/collab365_296/public/wp-content/plugins/thrive-visual-editor/thrive-dashboard/inc/smart-site/classes/class-tvd-smart-shortcodes.php on line 85

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

(Visited 128 times, 1 visits today)

About the author 

Balamurugan Kailasam

Summit Bundle

Get 200+ hours of Microsoft 365 Training for 27$!

Master Office 365, Power Platform & SharePoint & Teams With 200+ Hours Of Training Videos and 108 Ebooks in the Collab365 Academy. This offer is insane and is only available for a limited period.