Xcode 13: How to add library search path for "library not found for"

When building a React Native 0.66 project today (used to be working), there is error complaining about library not found for a module which is located at my-proj/node_modules/aliyun-oss-react-native/. What I did is to remove/install the module aliyun-oss-react-native and react-native link alien-oss-react-native and pod install, the error remains. A post suggests adding search path on my-proj->Building Setting->Linking or Search Paths. There are quite a few files under my-proj/node_modules/aliyun-oss-react-native/iOS/, 2 questions here: 1. which path shall be added to Xcode (such as my-proj/node_modules/aliyun-oss-react-native/iOS/)? 2. Shall the path be added to both Linking and Search Paths in Xcode?

Here is the screen shot of Search Paths in Xcode:

Here is the full error:

`ld: library not found for -lAliyunOSSiOS

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

The React Native can be launched successfully with npx react-native run-is on terminal which means the app has no problem building and running. The error above seems pure Xcode related.

Xcode 13: How to add library search path for "library not found for"
 
 
Q