updating from [email protected] to 1.8.11 is failing
AllCleanShrew5 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?
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.