Terra

Integration

API
Unified API
SDK
SDK
Authentication
Authentication
Streaming
Streaming
Blood
Blood Report API
Planned Workout
Planned Workout
AI Interface
AI Interface

User engagement

Graph API
Graph API
Scores
Health Scores
Rewards
Health Rewards

Use cases

Enterprise
Enterprise
Insurance
Insurance

Developers

Wearable Data
Wearable Data
Community
Community
Documentation
Documentation

Learn

Blog
Blog
Podcast
Podcast
Events
Events
Reports
Reports

Company

Customers
Customers
Careers
Careers
Partners
Partners
Support
Support
Become an integration
Become an integration


Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.

zap

Latest

zap

Popular

API

Unified API

SDK

Phone SDK

Authentication

Widget

Streaming

Streaming

Graph API

Graph API

updating from [email protected] to 1.8.11 is failing

All

CleanShrew5 months ago

I have a react native app for iOS (planning to add Android support) built with Expo. I've been using [email protected] for a while. I understand recent versions have better support for Expo, specifically for Expo SDK 53. When I try to update I get several errors related to TerraActivityData.swift:

(node_modules/terra-react/ios/TerraActivityData.swift:41:25)

39 | hardware_version: deviceData["hardware_version"] as? String 40 | ),

41 | distance_data: .init(summary: .init(distance_meters: distanceMeters)), | ^ cannot infer contextual base in reference to member 'init' 42 | calories_data: .init(TerraCaloriesData(net_activity_calories: caloriesData["net_activity_calories"] as? Double)) 43 | ) 44 | }

What's the way to update?

terra

Vanessaadmin4 months ago

Hi there!

Can you confirm the Swift/Xcode version you are using? This issue seems to be related to building the SDK with an older version of Swift. Please write us a support ticket and we'll figure out which version you're on currently!


CleanShrew4 months ago

Hi! I don't know exactly what changed but I returned to terra-react 1.6.5 and after a while I reattempted the upgrade and it has been working fine now on 1.8.11. Maybe it is that the swift version changed.