react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
734 stars 282 forks source link

ld: library not found for -lRNCPushNotificationIOS #310

Closed AliuDardan closed 2 years ago

AliuDardan commented 2 years ago

Hi

After I installed the "Push Notification for IOS" I have this error. Screenshot 2021-07-23 at 16 29 47

Thanks

AliuDardan commented 2 years ago

Hello to all React Native community

After 7 days struggling and facing with the error I found the solution. The problem was with Header Search Paths and Library Search Paths in Build Settings. I found a way by adding these two lines: In Header Search Paths -> add this line: "${PODS_ROOT}/Headers/Public/RNCPushNotificationIOS" In Library Search Paths -> add this line: "${PODS_CONFIGURATION_BUILD_DIR}/RNCPushNotificationIOS"

mijim commented 2 years ago

I was a cuple days facing this issue, thank you so much @AliuDardan

alfatayah commented 2 years ago

Hello to all React Native community

After 7 days struggling and facing with the error I found the solution. The problem was with Header Search Paths and Library Search Paths in Build Settings. I found a way by adding these two lines: In Header Search Paths -> add this line: "${PODS_ROOT}/Headers/Public/RNCPushNotificationIOS" In Library Search Paths -> add this line: "${PODS_CONFIGURATION_BUILD_DIR}/RNCPushNotificationIOS"

Hello @AliuDardan I'm following your instructions but I'm still getting this issue I tried many solutions in stack overflow, but in my case I'm installing Cocoa Pods to run "sudo gem install cocoapods" to fix this issue and issue library not found for -lRNCPushNotificationIOS appear

what version do you use in this library and environment React native?