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.
Encountered same issue after upgrading sdk from 3.x, already tried literally everything
react-native-onesignal: 4.0.0-beta.4
I also have such issue. Any updates?
Seems like I got successful release build
1) Exclude arm64 for Simulator SDK for all targets (Root project, your app target and NotificationServiceExtension)

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
3) inside of ios folder
rm -rf Pods Podfile.lock && pod install
4) Clean & build again
Thanks a lot but it didn't work for me =(
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
@jaime-hub ,
Can you please try the above and respond with your results?
Cheers
Closing due to no response
Same issue for me still even tho I do have the same version everywhere.
Most helpful comment
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