Xcode-Swift Library configuration issue

Thread is closed for posting
2 posts, 0 answers
  1. Subin
    Subin avatar
    1 posts
    Member since:
    Nov 2014

    Posted 08 Oct 2015 Link to this post

    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() {

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

            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() {
            // Dispose of any resources that can be recreated.
    unresolved identifier   TKchart . is anything i need to add or not please help
  2. Sophi
    Sophi avatar
    103 posts

    Posted 09 Oct 2015 Link to this post

    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.

    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
Back to Top