idenfy / ReactNativeSDK

Idenfy React Native SDK
MIT License
8 stars 6 forks source link

Build crashes because of lottie-ios on Expo 50 #10

Closed palicko closed 6 months ago

palicko commented 7 months ago

Hey, after updating to Expo 50 (and RN 73) we are getting error when trying to build app for ios. It is easily replicable, just create new Expo project with bare template npx create-expo-app test-idenfy --template, add @idenfy/react-native-sdk package and run npm run ios. (We are using Xcode 15.3).

❌  (/Users/xxx/Library/Developer/Xcode/DerivedData/testidenfy-bcaaggpamxfugufcsknareegubhb/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/iDenfySDK-Static/iDenfyLiveness-Static/idenfyviews.framework/Modules/idenfyviews.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:10:8)

   8 | import DeveloperToolsSupport
   9 | import Foundation
> 10 | import Lottie
     |        ^ compiling for iOS 12.0, but module 'Lottie' has a minimum deployment target of iOS 13.4: /Users/xxx/Library/Developer/Xcode/DerivedData/testidenfy-bcaaggpamxfugufcsknareegubhb/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.swiftmodule/arm64-apple-ios-simulator.swiftmodule

❌  (/Users/pavolcaban/Library/Developer/Xcode/DerivedData/testidenfy-bcaaggpamxfugufcsknareegubhb/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/iDenfySDK-Static/iDenfyLiveness-Static/IdenfyLiveness.framework/Modules/IdenfyLiveness.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface:14:8)

  12 | import _SwiftConcurrencyShims
  13 | import idenfycore
> 14 | import idenfyviews
     |        ^ failed to build module 'idenfyviews'; this SDK is not supported by the compiler ', while this compiler is 'Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)'). Please select a toolchain which matches the SDK.
  15 | @objc public class IdenfyLivenessCheck : ObjectiveC.NSObject, Swift.Codable {
  16 |   final public let auditTrails: [Swift.String]
  17 |   final public let lowQualityAuditTrailImage: Swift.String

Can you please update Lottie library in your SDK?

Thanks