ios: clang: error: no such file or directory libRNCPushNotificationIOS.a
Bug
When you try to make a build or archive in Xcode 10.2
Environment info
RN : 0.59.10 Xcode: 10.2.1 React native info output:
clang: error: no such file or directory: '/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-ewerqswkditpomciyhywhltemfhd/Build/Products/Release-iphoneos/libRNCPushNotificationIOS.a'
Command Ld failed with a nonzero exit code
Library version: Latest
Steps To Reproduce
- Add libRNCNotificationPush.a to Link Binary
- Build the project …
Describe what you expected to happen:
1.Succes
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 48 (2 by maintainers)
Please set the iOS deployment Target of PushNotificationIOS project same wit the deployment target of your app.
They set it to iOS 12.1, my app deployment target was iOS 9.0 and I set deployment Target of PushNotificationIOS project to iOS 9.0 in build settings.
That fixed my issue.
make sure the deployment target for the RNCPushNotificationIOS target (not project) is set to 9.0 (or the same version as your app)
In my case it was solved by cloning the project to a different directory and making sure the deployment target was set to 9.0
I faced this Problem and after few hours heres what worked for me,
Nothing above worked for me. Using the latest react native 0.60.4. Tried manual linking ( Which we shouldn’t need since auto-linking is now enabled ) Then still the same seeing this error
Native module cannot be nullThis worked for me!
I am also observing this error. I have verified that the iOS Deployment Target is set correctly for the project. I have also tried cleaning and building again a couple of times. After the build finishes, I see all the
.afiles in theRelease-iphoneosdirectory exceptlibRNCPushNotificationIOS.a. Please let us know how to fix this problem.This worked for for me. I’m using React Native 0.60 and followed this steps:
Product > Clean
Product > Clean build folder (You’ll see this option in XCode by holding the Atl key)
Make sure the deployment target for RNCPushNotificationIOS (not project) is the same as the projects deployment target, in this case iOS 9.0.
Build again.
Same problem and not work for me your solution @AbdoHema2016
My issue has been solved after importing the libRNCPushNotificationIOS.a file listed under pods directory.
When I try to use PushNotificationIOS I get native module cannot be null even though I link the library manually
same issues. I had set all targets to 9.0
I am having the same issue and all my deployment targets are set to 9.0
I downloaded the file on Github, and I copied paste the PushNotificationIOS.xcodeproj from download to “(project)/node_modules/@react-native-community/push-notification-ios/iOS”.
Did you find any solution ?
I got the same error when trying to build the release version of my app. After readding the library I got this error:
undefined symbols for architecture armv7: "_objc_class_$_rncpushnotificationios",Also tried changing the target version of the app to match my app as well. That didn’t work.
Same here, i cannot release the app because of this.
EDIT I have changed to react native module and everything is ok! https://facebook.github.io/react-native/docs/pushnotificationios.html
Still no fix for this? I cannot release the app because of this.
For sure the problem is in this library… Im back with not community version and all working fine…!!!