Skip to main content

Import the Library

  • 2 minutes to read

To use the DevExpress Charts for iOS you should to declare a dependency to it. This document explains how to do this for Xcode and Visual Studio (Xamarin Studio).

Xcode

Perform the following steps to add the dependency to the Objective C/Swift project.

Note

Make sure that the downloaded bundle has been unzipped.

  1. Run Xcode and open a project.

  2. Go to the project settings and in the General tab, locate the Embedded Binaries group. In this group, click the + button.

    Then, in the invoked dialog click the Add Other… button.

    Add embedded binaries dialog.

    Locate the DXCharts.framework and click the Open button.

    Note

    This file is in the <DevExpress.iOS bundle>/Frameworks directory by default.

    Selected framework in the selection dialog.

    Select the Create groups option and click Finish.

    Dialog last step

  3. Switch to the Build Settings tab, locate the Search Paths group and double click the Framework Search Paths setting. In the invoked editor, click the + button and type the path to the Frameworks directory on the unarchived bundle.

    Link Binary with Libraries.

Now the project is ready to use the DevExpress Charts for iOS components.

Visual Studio (Xamarin Studio)

Perform the following steps to add the dependency to the Xamarin project:

Note

Make sure that the downloaded bundle has been unzipped.

  1. Run Visual Studio (Xamarin Studio) and open a project.

  2. Right click the References item in the Solution window and select the Edit References… menu item.

    References menu

    Select the .Net Assembly in the invoked Edit References window and click Browse….

    Add embedded binaries dialog.

    Locate DevExpress.Xamarin.iOS.Charts.dll in the invoked window and click Open.

    Note

    This file is in the <DevExpress.Xamarin bundle>/Binaries directory by default.

    Selected framework in the selection dialog.

    Click OK to close the Edit References window and save changes.

Now the project is ready to use the DevExpress Charts for iOS components.