Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update required for Xcode8 and Swift 2.3/3.0 compatibility #5

Open
Seoras opened this issue Oct 16, 2016 · 9 comments
Open

Update required for Xcode8 and Swift 2.3/3.0 compatibility #5

Seoras opened this issue Oct 16, 2016 · 9 comments

Comments

@Seoras
Copy link

Seoras commented Oct 16, 2016

To compile the KST App in Xcode 8 requires v2.3.0 of ios-charts for Swift 2.3 compatibility.
Using this newer version throws up a compile error around.
_chartView.noDataTextDescription
Commenting out references to this (1 line in 2 files) allows compile to complete.

@Vertex7
Copy link

Vertex7 commented Nov 7, 2016

It's said "clang: error: linker command failed with exit code 1 (use -v to see invocation)"

@Seoras
Copy link
Author

Seoras commented Nov 7, 2016

Vertex7, were you compiling for the emulator or a device? It doesn't compile for iOS emulators, only for real, connected, devices.

@Vertex7
Copy link

Vertex7 commented Nov 7, 2016

I compiling for the emulator. thankyou.

@Vertex7
Copy link

Vertex7 commented Nov 21, 2016

Do you known.
What is a Bluetooth Pin to connect the device ?

@Seoras
Copy link
Author

Seoras commented Nov 21, 2016

No pin required. From what I gather the KST code by passes all the upper layer of the BT protocol and just connects to the first device it finds in range. They can confirm.

@Vertex7
Copy link

Vertex7 commented Nov 21, 2016

@Seoras
Copy link
Author

Seoras commented Nov 21, 2016

You don't need to pair a TI Nano with an iPhone/iPad like you would with other BT devices. Load KST's demo app and try it. It just connects which is nice, no need for any setup.

@Vertex7
Copy link

Vertex7 commented Nov 22, 2016

I already compiling for a device. But it's still eror

http://www.uppic.org/image-5DB8_58345D75.jpg

Do you know how to fix it ? thankyou.

@jellycoder
Copy link

To compile ios-Charts 3.0.1 with Xcode 8, I had to make the following changes:
In NanoScan target's setting, I added the Charts.framework in Embedded Binaries section.
voila_capture 2017-01-05_09-25-18_pm

Under build options, I ensured to mark “Embedded Content Contains Swift Code”
voila_capture 2017-01-05_09-23-05_pm

I added to DetailViewController.m
#import "Charts/Charts-Swift.h"

remove from DetailViewController.h
#import <Charts/Charts.h>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants