美文网首页
react-native lottie 添加库无法运行 Fail

react-native lottie 添加库无法运行 Fail

作者: Desperado_Z | 来源:发表于2021-04-21 10:41 被阅读0次

环境:

Xcode 12.4

"react-native": "^0.64.0"

"lottie-ios": "3.1.8"

"lottie-react-native": "^3.5.0"

出现以下错误:

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening NativeSEMS.xcworkspace.

Command line invocation:

    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace NativeSEMS.xcworkspace -configuration Debug -scheme NativeSEMS -destination id=95763931-42A7-41B2-A49A-4249432290B7

The following build commands failed:

Ld /Users/goodwe/Library/Developer/Xcode/DerivedData/NativeSEMS-bipeotrncuysqdasdtpmwbgttazx/Build/Products/Debug-iphonesimulator/NativeSEMS.app/NativeSEMS normal

(1 failure)

info Run CLI with --verbose flag for more details.

error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

解决方法:

在ios项目中添加一个swift空文件,然后根据提示创建一个桥接文件,如下图:

相关文章

网友评论

      本文标题:react-native lottie 添加库无法运行 Fail

      本文链接:https://www.haomeiwen.com/subject/jhvalltx.html