Пакет response-native-lott ie всегда выдает ошибку при обновлении операционной системы macos до Catalina 10.15.5 - PullRequest
2 голосов
/ 18 июня 2020

Описание

Я использую пакет react-native-lottie в своем проекте. Но вчера я обновил свою операционную систему macos до версии Catalina 10.15.5 и всегда выхожу ниже ошибки при запуске команды response-native run- ios.

Шаги для воспроизведения

  1. Откройте приложение iTerm.
  2. запустила команду response-native run- ios в iTerm из каталога проекта response-native. Ожидаемое поведение: Running my react-native application in simulator or device.

Фактическое поведение:

CompileSwift normal x86_64 /Users/user/Documents/React_Native/sample/node_modules/lottie-react-native/src/ios/LottieReactNative/ContainerView.swift
    cd /Users/user/Documents/React_Native/sample/ios/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/user/Documents/React_Native/sample/node_modules/lottie-react-native/src/ios/LottieReactNative/AnimationViewManagerModule.swift -primary-file /Users/user/Documents/React_Native/sample/node_modules/lottie-react-native/src/ios/LottieReactNative/ContainerView.swift -emit-module-path /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/Objects-normal/x86_64/ContainerView~partial.swiftmodule -emit-module-doc-path /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/Objects-normal/x86_64/ContainerView~partial.swiftdoc -emit-module-source-info-path /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/Objects-normal/x86_64/ContainerView~partial.swiftsourceinfo -serialize-diagnostics-path /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/Objects-normal/x86_64/ContainerView.dia -emit-dependencies-path /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/Objects-normal/x86_64/ContainerView.d -emit-reference-dependencies-path /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/Objects-normal/x86_64/ContainerView.swiftdeps -target x86_64-apple-ios9.0-simulator -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk -I /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Products/Debug-iphonesimulator/lottie-react-native -I /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Products/Debug-iphonesimulator/lottie-ios -F /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Products/Debug-iphonesimulator/lottie-react-native -enable-testing -g -import-underlying-module -module-cache-path /Users/user/Documents/React_Native/sample/ios/build/sample/ModuleCache.noindex -swift-version 4.2 -enforce-exclusivity=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /Users/user/Documents/React_Native/sample/ios/Pods -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=/Users/user/Documents/React_Native/sample/ios/build/sample/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.modulemap -Xcc -fmodule-map-file=/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/lottie_react_native/lottie-react-native.modulemap -Xcc -I/Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/lottie-react-native-generated-files.hmap -Xcc -I/Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/lottie-react-native-own-target-headers.hmap -Xcc -I/Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/lottie-react-native-all-target-headers.hmap -Xcc -iquote -Xcc /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/lottie-react-native-project-headers.hmap -Xcc -I/Users/user/Documents/React_Native/sample/ios/build/sample/Build/Products/Debug-iphonesimulator/lottie-react-native/include -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Private -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Private/lottie-react-native -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/DoubleConversion -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-Core -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-DevSupport -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTActionSheet -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTAnimation -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTBlob -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTImage -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTLinking -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTNetwork -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTSettings -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTText -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTVibration -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-RCTWebSocket -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-cxxreact -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-jsi -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-jsiexecutor -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/React-jsinspector -Xcc -I/Users/user/Documents/React_Native/sample/ios/Pods/Headers/Public/glog -Xcc -I/Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/DerivedSources-normal/x86_64 -Xcc -I/Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/DerivedSources/x86_64 -Xcc -I/Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -module-name lottie_react_native -o /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/lottie-react-native.build/Objects-normal/x86_64/ContainerView.o -index-store-path /Users/user/Documents/React_Native/sample/ios/build/sample/Index/DataStore -index-system-modules
/Users/user/Documents/React_Native/sample/node_modules/lottie-react-native/src/ios/LottieReactNative/AnimationViewManagerModule.swift:5:8: error: module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2.4 compiler: /Users/user/Documents/React_Native/sample/ios/build/sample/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

import Lottie
       ^


** BUILD FAILED **


The following build commands failed:
        CompileSwift normal x86_64 /Users/user/Documents/React_Native/sample/node_modules/lottie-react-native/src/ios/LottieReactNative/AnimationViewManagerModule.swift
        CompileSwift normal x86_64 /Users/user/Documents/React_Native/sample/node_modules/lottie-react-native/src/ios/LottieReactNative/ContainerView.swift
        CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(3 failures)

Версии

  • npm: 6.13.4
  • macOS: Catalina 10.15.5
  • react-native: 0.60.5
  • react-native-cli: 2.0.1
  • lott ie - ios: 3.1.3
  • lott ie -react-native: 3.3.2
...