updating from [email protected] to 1.8.11 is failing

CleanShrew1 month 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

Vanessaadmin5 days 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 days 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.


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.