kstechnologies / NIRScanNano_iOS

This demo app includes an SDK for easy Bluetooth Low Energy communication with the Texas Instruments NIRScan Nano EVM.
12 stars 11 forks source link

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

Open Seoras opened 7 years ago

Seoras commented 7 years ago

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 commented 7 years ago

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

Seoras commented 7 years ago

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

Vertex7 commented 7 years ago

I compiling for the emulator. thankyou.

Vertex7 commented 7 years ago

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

Seoras commented 7 years ago

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 commented 7 years ago

http://www.uppic.org/image-4E16_58329669.jpg

Seoras commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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>