1. First go to https://github.com/danielgindi/Charts download frame down and unzip
2. After decompression, two demo folders are deleted (can be deleted without deleting), and then the entire folder is copied to the project root directory
3. Open the project and drag the charts.xcodeproj file into the project
4. Add the charts frame to the targets-general embedded binaries
5. Set defines module to Yes in build settings
6. Add the following code to the view controller. m file that needs to call the charts framework.
#import "Projectname-swift.h" (ProjectName changed to the name of the project)
#import "Charts/charts.h"
PS: If there is an error #import "Projectname-swift.h" here, you can create a new Swift file, and Xcode will prompt for the creation of the Bridge-header.h file, select Yes
Xcode 8 Objective-c Project into a third-party swift framework (take the charts framework as an example)