So, I've been trying to integrate libFitSdkCppiOS.a in a fairly simple Swift-based project in Xcode 8.3 with little (basically no) success. The problem comes up at compile time, where (with a simple Bridging Header) I get an error indicating that an include from within what should be standard c lib (eg, <string>, <map>, etc.) is not found.
Clearly, a configuration management issue but one that I haven't been able to solve for a day now.
All of the example projects compile fine on their own. I'm able to run them on their own. The problem arises when I integrate the library and some simple example file (eg, ActivityExample.h) and reference it in my bridging header.
When I build, I get errors complaining that the files such as <vector> or <map> can't be found.
What I think is going on is that the compiler is (for some reason) not using libstd at this stage. Why this is, I don't know. I'm somewhat comfortable around Xcode, but this is tipping into the Dark Arts.
Anyone else trying to integrate the FIT SDK into a Swift project with Xcode?
Julian
UPDATE #1: I've made a screenflow showing the problem:
https://vimeo.com/205082135
UPDATE #2: Stack Overflow is questioning whether it's even possible to build with a CPP static library:
http://stackoverflow.com/questions/42383838/building-swift-objective-c-and-a-static-c-library-together