Skip to content
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

build failed due to Library not found for -lPods-OneSignalNotificationServiceExtension error #1103

Closed
jaime-mp opened this issue Dec 3, 2020 · 16 comments

Comments

@jaime-mp
Copy link

jaime-mp commented Dec 3, 2020

Description:

build failed due to Library not found for -lPods-OneSignalNotificationServiceExtension error

I have tried to run pod deintegrate and then pod install, and I get a warning that says the following:

[!] The OneSignalNotificationServiceExtension [Debug] target overrides the HEADER_SEARCH_PATHS build setting defined inPods / Target Support Files / Pods-OneSignalNotificationServiceExtension / Pods-OneSignalNotificationServiceExtension.debug.xcconfig '. This can lead to problems with the CocoaPods installation - Use the$ (inherited)` flag, or
- Remove the build settings from the target.

Environment

I'm using react-native-cli 2.0.2
I use yarn to add the SDK to my project

Regards.

@markovdigital
Copy link

Encountered same issue after upgrading sdk from 3.x, already tried literally everything
react-native-onesignal: 4.0.0-beta.4

@DzmitrySakalouski
Copy link

I also have such issue. Any updates?

@markovdigital
Copy link

Seems like I got successful release build

  1. Exclude arm64 for Simulator SDK for all targets (Root project, your app target and NotificationServiceExtension)
    image

  2. Paste this fragment

installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end

inside of this block of Podfile

use_flipper!
post_install do |installer|
    ...
end
  1. inside of ios folder
rm -rf Pods Podfile.lock && pod install
  1. Clean & build again

@DzmitrySakalouski
Copy link

DzmitrySakalouski commented Dec 7, 2020

Thanks a lot but it didn't work for me =(

@DzmitrySakalouski
Copy link

Small update - check your version of iOS target version in Podfile and in Xcode (OneSignal target tab) - there was mismatch in my case. After fixing it I was able to build the app

@rgomezp
Copy link
Contributor

rgomezp commented Dec 7, 2020

@jaime-hub ,
Can you please try the above and respond with your results?

Cheers

@rgomezp
Copy link
Contributor

rgomezp commented Dec 21, 2020

Closing due to no response

@rgomezp rgomezp closed this as completed Dec 21, 2020
@hugoh59
Copy link

hugoh59 commented Mar 1, 2021

Same issue for me still even tho I do have the same version everywhere.

@bakehouseone
Copy link

Still experience the same issue

@lordival
Copy link

still here too

@lordival
Copy link

how did you guys get around this issue?

@rgomezp
Copy link
Contributor

rgomezp commented Jan 18, 2022

@hugoh59 @bakehouseone @lordival ,
Did you make sure the iOS deployment targets match as mentioned above?

If you are using the Expo plugin, please upgrade to the latest beta release which includes a fix for this issue.

Enjoy!

@munsifhayat
Copy link

Small update - check your version of iOS target version in Podfile and in Xcode (OneSignal target tab) - there was a mismatch in my case. After fixing it I was able to build the app

This worked for me after spending couple of hours.

@augustovicente
Copy link

I was having this issue on Mac M1.
My solution was add arm64 inside Excluded Architectures inside OneSignalNotification tab.
image

I did that before on my project target, but it was not enough.

@ebellumat
Copy link

Your notifications still working after this change?

@Biswo2002
Copy link

Library 'Pods-OneSignalNotificationServiceExtension' not found
I'm facing this issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests