• Unified API
  • Mobile SDK
  • Connection Widget
  • Streaming
  • Blood Report API
  • Graph API
  • Health Scores
  • Health Rewards
  • Planned Workouts
  • Lab Testing
  • AI Interface
  • Enterprise
  • Insurance
  • Integrations
  • Research
  • Podcast
  • Blog
  • Reports
  • Events
  • Documentation
  • Community
  • Wearable Data
  • About
  • Customers
  • Partners
  • Careers
  • Support
  • Pricing
Terra
Pricing
Become an integrationGet started


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.

Cookies Policy
zap

Latest

zap

Popular

API

Unified API

SDK

Phone SDK

Authentication

Widget

Streaming

Streaming

Graph API

Graph API

updating from terra-react@1.6.5 to 1.8.11 is failing

All

CleanShrew6 months ago

I have a react native app for iOS (planning to add Android support) built with Expo. I've been using terra-react@1.6.15 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

Vanessaadmin5 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!


CleanShrew5 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.