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;
};