-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang: error: no such file or directory libRNCPushNotificationIOS.a #17
Comments
I faced this Problem and after few hours heres what worked for me,
|
Same problem and not work for me your solution @AbdoHema2016 |
For sure the problem is in this library.. Im back with not community version and all working fine..!!!!!! |
@LuisBonsembiante what u mean but not community version? |
@LeoMoonStar I mean the React version... |
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. |
Guys I appreciate if you give some help about the local notification in background iOS mode.... It si posible? |
not work run release have a problem |
Yes, debug (react-native run-ios) has no problem. Only Release build has this issue. You have to set the deployment target of PushNotificationIOS project same with your app's. |
so you choose one lower version of react native? |
@LeoMoonStar is not a lower version is the version that yoy have in react-native/Librarries/push-notification-ios.. I dont know if this version is in mantaining..but work.. of course not in background |
@cuimin0609 your solution worked for me, thanks! |
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 |
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 |
Still no fix for this? I cannot release the app because of this. |
Same here, i cannot release the app because of this. EDIT |
When I try to use PushNotificationIOS I get native module cannot be null even though I link the library manually |
This 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 |
@maamounapprise check that you have |
@BaderSerhan Under the workspace or pods? |
@maamounapprise workspace. I follow this manual linking technique for all of my libraries. Saves me the headaches of |
@BaderSerhan I tried it and didn't work, what version of react native are you running on. Mine is 0.60.5 |
Got the same error: "clang: error: no such file or directory libRNCPushNotificationIOS.a" on 60.5, does someone have a fix? I have tried everything above |
@maamounapprise same |
@BaderSerhan Does it work using the |
@jeremyscatigna yes switching back to |
I got the same error when trying to build the release version of my app. After readding the library I got this error: Also tried changing the target version of the app to match my app as well. That didn't work. |
I did everything mentioned above. Nothing worked for version 0.60.5. Did anyone find a solution? |
This worked for for me.
|
My problem was that the file "libRNCPushNotificationIOS.a" was empty, to see that I pressed on the buttons "open as" "hex" in Xcode, if nothing shows up, you have the same problem. I fixed this problem by replacing the "PushNotificationIOS.xcodeproj" file in my project by the one available on GitHub. |
Did you find any solution ? |
Can you explain what do you mean by replacing the PushNotificationIOS.xcodeproj file? |
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". |
That worked for me too !! |
For some reason even after i changed my deployment target to 9.0 that doesn't fix my problem but after removing the library and add it back and changing the deployment target it worked. |
why is this closed? I am still experienceing this issue. Autolinking seems to not work using ract-native: 61.4 |
That file is still empty even after cloning from https://github.com/react-native-community/react-native-push-notification-ios.git and copying the whole PushNotificationIOS.xcodeproj in my project. |
Here's the file I found on my local machine if that's what you looking for. |
Thanks...that's what I needed but it does not fix my issue. Can you upload the entire folder PushNotificationIOS.xcodeproj instead? Thanks |
I figure that won't help too. I spent a lot of time on this too but changing the build target did the trick. |
Thanks...
I actually did change the target, cleaned and it did not help.
…On Thu, Mar 5, 2020 at 1:56 PM obana1990 ***@***.***> wrote:
I figure that won't help too.
Try cleaning the build and then change the deploy target to 9.0 see if
that helps?
I spent a lot of time on this too but changing the build target did the
trick.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#17>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADBCPWR6SQA35BSKF3HZWPDRF7YV3ANCNFSM4IHVYIVQ>
.
--
Baraka, Mahili
Sent from my (PC Google Mail)
------------------------------
*DISCLAIMER:*
*This email and any files transmitted with it are confidential and intended
solely for this individual or entity to which they are addressed. If you
are not the intended recipient or have received this email in error please
notify the sender and destroy this email. Any unauthorized copying,
disclosure or distribution of the material in this email is
strictly forbidden. Please note that any views or opinion presented in this
email are solely those of the sender and do not necessarily represent those
of anyone else. Finally, the recipient should check this email and any
attachments for the presence of viruses. The author accepts no liability
for any damage caused by any virus transmitted by this email.*
|
I hope this link can help #38 (comment) |
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:
Library version: Latest
Steps To Reproduce
...
Describe what you expected to happen:
1.Succes
The text was updated successfully, but these errors were encountered: