Skip to content

[BUG] lottie-react-native 7.3.6 on iOS does not build #282

@antoinerousseau

Description

@antoinerousseau

📋 Description

EAS build works for Android but not iOS

🔄 Steps to Reproduce

  1. Update @rnrepo/expo-config-plugin to 0.3.0-beta.0 (and add @rnrepo/build-tools if necessary)
  2. Trigger an iOS build on EAS

🤔 Expected Behavior

Successful build

😲 Actual Behavior

Fastlane logs:

⚠️  ld: ignoring duplicate libraries: '-lc++'
⚠️  ld: search path '/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v17.3.48.0.NJEAX5/Metal.xctoolchain/usr/lib/swift/iphoneos' not found
⚠️  ld: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
⚠️  ld: Could not find or use auto-linked framework 'Lottie': framework 'Lottie' not found
⚠️  ld: Could not find or use auto-linked framework 'RCTDeprecation': framework 'RCTDeprecation' not found
⚠️  ld: Could not find or use auto-linked framework 'UIUtilities': framework 'UIUtilities' not found
⚠️  ld: Could not find or use auto-linked framework 'yoga': framework 'yoga' not found
⚠️  ld: Could not parse or use implicit file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore.tbd': cannot link directly with 'SwiftUICore' because product being built is not an allowed client of it
❌  Undefined symbols for architecture arm64
┌─ Symbol: dispatch thunk of Lottie.LottieAnimationView.isAnimationPlaying.getter : Swift.Bool
└─ Referenced from: lottie_react_native.ContainerView.setSpeed(CoreGraphics.CGFloat) -> () in lottie_react_native[8](ContainerView.o)

❌  ld: symbol(s) not found for architecture arm64


❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Run script build phase '[AA RUN FIRST] RNREPO Build Start' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'react-native-safe-area-context' from project 'Pods')
    Run script build phase '[AA RUN FIRST] RNREPO Build Start' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'react-native-netinfo' from project 'Pods')
    Run script build phase '[AA RUN FIRST] RNREPO Build Start' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'lottie-react-native' from project 'Pods')
    Run script build phase '[CP-User] [Hermes] Replace Hermes for the right configuration, if needed' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'hermes-engine' from project 'Pods')
    Run script build phase '[AA RUN FIRST] RNREPO Build Start' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'RNScreens' from project 'Pods')
    Run script build phase '[Expo Dev Launcher] Strip Local Network Keys for Release' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Backstagestaging' from project 'Backstagestaging')
    Run script build phase 'Upload Debug Symbols to Sentry' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Backstagestaging' from project 'Backstagestaging')
    Run script build phase '[CP-User] Generate updates resources for expo-updates' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXUpdates' from project 'Pods')
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	Ld /Users/expo/Library/Developer/Xcode/DerivedData/Backstagestaging-ftmhevffhvxudhgogiajqueruegl/Build/Intermediates.noindex/ArchiveIntermediates/Backstagestaging/InstallationBuildProductsLocation/Applications/Backstagestaging.app/Backstagestaging normal (in target 'Backstagestaging' from project 'Backstagestaging')
▸ 	Archiving workspace Backstagestaging with scheme Backstagestaging
▸ (2 failures)
Exit status: 65

(Xcode logs)

RNRepo version (and/or @rnrepo/expo-config-plugin version)

0.3.0-beta.0

React Native version

0.83.2

Gradle version

Expo 55

Operating System

EAS build

➕ Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions