Fix SharePoint iPhone Sign-In Error: Alamofire.AFError 3
Question details
The user is unable to sign into the SharePoint mobile app due to an Alamofire.AFError error 3.

- Product
- SharePoint App
- Device & OS
- iPhone XR, iOS 15.3
- Scenario
- Attempting to sign into the SharePoint mobile app to access company documents.
- Observed behavior
- The app displays 'Login expired' followed by 'Something went wrong' and the technical message 'The operation couldn't be completed. (Alamofire.AFError error 3.)'.
Make sure your iPhone is connected to a stable Wi-Fi or cellular network, and ensure you have your correct company login credentials on hand before testing.
Determine the Scope of the Login Error
Check whether the sign-in issue is isolated to your specific account, your device, or the entire company tenant.
Network errors like Alamofire.AFError 3 can be caused by device-specific caching issues, account permission problems, or broader tenant misconfigurations. Isolating the problem is the most important first step.
Download the SharePoint app on a different iOS or Android device. Try signing in with your account credentials. If it works, the issue is specific to your iPhone XR.
Ask a colleague to try signing into their SharePoint account on your affected iPhone. If they also receive the Alamofire error, the iPhone's network settings or app installation is likely the cause.
Verify the SharePoint Environment Type
Determine if your organization uses SharePoint Online or an on-premises SharePoint Server, as server environments may require specific network conditions.
Try WPS Office for Seamless Cloud Document Access
If you are struggling with SharePoint login errors and need immediate access to your team's documents, WPS Office offers a powerful, free alternative for mobile document management. With built-in cloud support, you can easily open, edit, and share files on your iPhone without complex server configurations.
- 1. Download WPS Office: Search for WPS Office in the App Store and install it on your iPhone.
- 2. Sign in to WPS Cloud: Open the app and create a free account to access WPS Cloud for secure document storage.
- 3. Edit and Share Documents: Tap the '+' icon to create a new document, or open an existing Microsoft Office file to begin collaborating immediately.

Frequently Asked Questions
What does Alamofire.AFError mean on an iPhone?
Alamofire is a networking library used by iOS developers. An 'AFError' typically indicates a failed network request between the app and the server, such as a timeout, an invalid response, or a blocked connection.
Can an outdated iOS version cause SharePoint login errors?
Yes. Running an older operating system like iOS 15.3 may cause compatibility issues with the latest versions of the SharePoint app. Updating your iPhone to the latest iOS release can often resolve network security and connection bugs.
Will clearing the app cache fix the 'Login expired' loop?
Yes, clearing the app cache or fully reinstalling the app removes corrupted session tokens that might be forcing the app into a continuous 'Login expired' loop.




