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

  1. Add libRNCNotificationPush.a to Link Binary
  2. 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)

Most upvoted comments

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)

Screenshot 2019-08-13 15 44 15

make sure the deployment target for the RNCPushNotificationIOS target (not project) is set to 9.0 (or the same version as your app)

Screenshot 2019-08-13 15 44 15

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,

  1. remove the PushNotificationIOS.xcodeproj from my project 2.cleaned and build the project 3.added the PushNotificationIOS.xcodeproj , libRNCNotificationPush.a and made sure that the iOS header search path on build settings is set to the right path with recursive “$(SRCROOT)/…/node_modules/@react-native-community/push-notification-ios/ios” 4.build the project and again and thats it

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 null

I faced this Problem and after few hours heres what worked for me,

  1. remove the PushNotificationIOS.xcodeproj from my project 2.cleaned and build the project 3.added the PushNotificationIOS.xcodeproj , libRNCNotificationPush.a and made sure that the iOS header search path on build settings is set to the right path with recursive “$(SRCROOT)/…/node_modules/@react-native-community/push-notification-ios/ios” 4.build the project and again and thats it

This 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 .a files in the Release-iphoneos directory except libRNCPushNotificationIOS.a. Please let us know how to fix this problem.

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.

This worked for for me. I’m using React Native 0.60 and followed this steps:

  1. Product > Clean Screen Shot 2019-10-07 at 13 45 45

  2. Product > Clean build folder (You’ll see this option in XCode by holding the Atl key) Screen Shot 2019-10-07 at 13 47 25

  3. Make sure the deployment target for RNCPushNotificationIOS (not project) is the same as the projects deployment target, in this case iOS 9.0. Screen Shot 2019-10-10 at 12 11 09

  4. 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. Screen Shot 2019-12-16 at 7 16 36 PM

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

When I try to use PushNotificationIOS I get native module cannot be null even though I link the library manually

I am having the same issue and all my deployment targets are set to 9.0

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”.

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.

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…!!!