This is a migrated thread and some comments may be shown as answers.

Xcode-Swift Library configuration issue

1 Answer 65 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Subin
Top achievements
Rank 1
Subin asked on 09 Oct 2015, 04:39 AM
HI  i started using UI for iOS . i downloaded the framework i added in General ->linked frameworks and Libraries (TelerikUI.Framework).I also added  "/Users/subinkuriakose/Documents/Telerik" in BuildSettings
I created   project using swift and i copied chart example given below .

import UIKit


class ViewController: UIViewController {


    override func viewDidLoad() {
        super.viewDidLoad()

        let chart = TKChart(frame: CGRectInset(self.view.bounds, 15, 15))
        chart.autoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight
        self.view.addSubview(chart)

        var randomNumericData = [TKChartDataPoint]()
        for i in 0..<10 {
            randomNumericData += TKChartDataPoint(x: i, y: Double(arc4random() % 100))
        }

        chart.addSeries(TKChartLineSeries(items: randomNumericData))

        chart.title().hidden = false
        chart.title().text = "This is a chart demo"
        chart.legend().hidden = false

        chart.allowAnimations = true
    }


    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
}​
unresolved identifier   TKchart . is anything i need to add or not please help

1 Answer, 1 is accepted

Sort by
0
Sophi
Telerik team
answered on 09 Oct 2015, 11:42 AM
Hi Subin,

Thank you for contacting us.

There are a few possible issues that may cause this behavior. 

1. A missing bridging-header file. You should create an Objective-C bridging header to use the static version of the framework. Apple online documentation describes in detail how to create a bridging header file.
2. Xcode 7 doesn't fill the Framework Search Paths property in Build Settings of your project with a path to the included third party framework for new projects. That is why you should add this path manually. Check the attached image.

I hope this helps.

Regards,
Sophi
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussion
Asked by
Subin
Top achievements
Rank 1
Answers by
Sophi
Telerik team
Share this question
or