I am trying to build my react-native
project on iOS simulator and getting the below error:
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 MyProject.xcworkspace...ld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)** BUILD FAILED **
I have researched my part and tried possible solutions here and here which seem to not work.
I am using react-native
version ~0.61.4 and Xcode Version 11.4.1 on macOS Catalina version 10.15.2Even the app doesn't start on simulator.
EDIT
I cleaned the Xcode Workspace, ran pod deintregate
and pod install
and then react-native run-ios
with gives me these following details:
Undefined symbols for architecture x86_64:"__swift_FORCE_LOAD_$_swiftCompatibility50", referenced from: __swift_FORCE_LOAD_$_swiftCompatibility50_$_Lottie in liblottie-ios.a(AnimatedButton.o) __swift_FORCE_LOAD_$_swiftCompatibility50_$_Lottie in liblottie-ios.a(AnimatedControl.o) __swift_FORCE_LOAD_$_swiftCompatibility50_$_Lottie in liblottie-ios.a(AnimationContainer.o) __swift_FORCE_LOAD_$_swiftCompatibility50_$_Lottie in liblottie-ios.a(AnimationSubview.o) __swift_FORCE_LOAD_$_swiftCompatibility50_$_Lottie in liblottie-ios.a(CompatibleAnimationView.o) __swift_FORCE_LOAD_$_swiftCompatibility50_$_Lottie in liblottie-ios.a(CompositionLayer.o) __swift_FORCE_LOAD_$_swiftCompatibility50_$_Lottie in liblottie-ios.a(NullCompositionLayer.o) ... (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility50_$_lottie_react_native, __swift_FORCE_LOAD_$_swiftCompatibility50_$_Lottie )"__swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements", referenced from: __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_Lottie in liblottie-ios.a(AnimatedButton.o) __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_Lottie in liblottie-ios.a(AnimatedControl.o) __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_Lottie in liblottie-ios.a(AnimationContainer.o) __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_Lottie in liblottie-ios.a(AnimationSubview.o) __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_Lottie in liblottie-ios.a(CompatibleAnimationView.o) __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_Lottie in liblottie-ios.a(CompositionLayer.o) __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_Lottie in liblottie-ios.a(NullCompositionLayer.o) ... (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_lottie_react_native, __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_Lottie )"_main", referenced from: implicit entry/start for main executable (maybe you meant: _OBJC_IVAR_$_RCTScrollView._maintainVisibleContentPosition)
Referring to this question, I tried the solution with nothing good. Any suggestions on how to fix this?