Annoucement: There's a new OneDrive SDK
This Live SDK project will remain available for existing applications to continue to use but new application development should be done using the OneDrive SDK.
Live SDK for iOS (legacy)
For integrating OneDrive into your iOS app use the OneDrive iOS SDK.
The repository here includes:
- Live SDK Library source (src/LiveSDK/Library)
- Live SDK framework (bin/LiveSDK.framework.zip)
- Samples (src/samples)
For questions on how to use the sdk visit http://stackoverflow.com/questions/tagged/onedrive
2. Reference the API
You can reference the iOS API in two ways.
2.1 Install with Cocoapods
- Install cocoapods following the getting started guide.
- Add the following to your Podfile:
- Run the command
pod installto install the latest LiveSDK pod.
2.2 To reference the iOS API source code directly
- Open your iOS project in Xcode.
- Click File > Add Files to "Your Project Name".
- Go to and select the src/LiveSDK/Library folder under your local copy of the repository and then click "Add".
- In your code file that you want to reference the API source code, add this import statement:
If you reference the iOS API source code directly and you use Xcode 4.2 or later, you must disable Automatic Reference Counting (ARC). This is because the Live SDK for iOS library source code uses manual reference counting. If you want to use ARC, you can either reference the iOS API framework by following the steps in the previous section(see 2.1), or do an ARC conversion on the library source code.
Visit: http://dev.onedrive.com and click the "Develop” link.
Copyright 2015 Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.