Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 17111

Getting library not found for ld-classic while running react native cli project on ios

$
0
0

I am trying to run a react native cli project but getting this error on Xcode `

"library not found for ld-classic"

`The android part is working fine, I tried by clearing build and xcodebuild but still facing the issue.

Reverse search showed that ld-classic is only mentioned in project.pbxproj file like this

LIBRARY_SEARCH_PATHS = ("\"$(SDKROOT)/usr/lib/swift\"","\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"","\"$(inherited)\"",            );            MTL_ENABLE_DEBUG_INFO = YES;            ONLY_ACTIVE_ARCH = YES;            OTHER_CFLAGS = "$(inherited)";            OTHER_CPLUSPLUSFLAGS = ("$(OTHER_CFLAGS)","-DFOLLY_NO_CONFIG","-DFOLLY_MOBILE=1","-DFOLLY_USE_LIBCPP=1",            );            OTHER_LDFLAGS = ("$(inherited)","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic","-Wl","-ld_classic",            );            REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";            SDKROOT = iphoneos;        };        name = Debug;    };

Viewing all articles
Browse latest Browse all 17111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>