Home > Back-end >  Xcode 13: How to add library search path for "library not found for"
Xcode 13: How to add library search path for "library not found for"

Time:12-18

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/. After react-native link alien-oss-react-native and pod install, the error remains. enter image description here

Under TARGETS, myproj->Build Settins, Other Linker Flags, the module lib which causes error is listed as first one. My guess is that all libs under the Other Linker Flags may not be recognized by Xcode. Not sure how this happens.

enter image description here

CodePudding user response:

Try to make search paths "recursive".

CodePudding user response:

The solution works here is open the myapp.xcworkspace in Xcode instead of myapp.xcodeproj. The build upon workspace went through without any error.

  • Related