C SDK version 21.171.0 compile issues under Xcode / Swift Package

Hi,

I've been using the C SDK as a swift package in apps for a few years but after updating to 21.171.0 I'm finding that it's failing to compile with a series of errors similar to the following.

Macro 'FIT_MESG_NUM_FILE_ID' unavailable: structure not supported

Has anyone encountered this error before and know of a solution?

Thanks,

Amy

  • I apologize for the very late response to your question. We had a few posts get unintentionally stuck in a moderation queue, and the queue was recently purged.

    Are you still having this issue? About the time of your post we did add FIT_CAST to the C SDK to help with compiling the C SDK with a C++ compiler. That change would be a suspect since it is the only change to the C SDK in a while. 

    The "work-around" is to use the FIT Swift SDK. It will not be as fast as the C SDK, but the latest release included a handful of performance improvements. 
    https://github.com/garmin/fit-swift-sdk