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

ld: library not found for -lPods-OneSignalNotificationServiceExtension #42

Closed
knilf-i-am opened this issue Jan 10, 2022 · 2 comments
Closed

Comments

@knilf-i-am
Copy link

Not super familiar with Xcode, so struggling a bit with the setup of the plugin. I'm almost there, but the app fails on the build stage in Fastlane. Any suggestions on how to tackle this?

› Linking Nuptuality/OneSignalNotificationServiceExtension » OneSignalNotificationServiceExtension

❌ ld: library not found for -lPods-OneSignalNotificationServiceExtension

❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)

▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ Ld /Users/expo/Library/Developer/Xcode/DerivedData/Nuptuality-czypadaqxhhqkcaohroovtjuwjiy/Build/Intermediates.noindex/ArchiveIntermediates/Nuptuality/IntermediateBuildFilesPath/Nuptuality.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/armv7/Binary/OneSignalNotificationServiceExtension normal armv7 (in target 'OneSignalNotificationServiceExtension' from project 'Nuptuality')
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
Ld /Users/expo/Library/Developer/Xcode/DerivedData/Nuptuality-czypadaqxhhqkcaohroovtjuwjiy/Build/Intermediates.noindex/ArchiveIntermediates/Nuptuality/IntermediateBuildFilesPath/Nuptuality.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/armv7/Binary/OneSignalNotificationServiceExtension normal armv7 (in target 'OneSignalNotificationServiceExtension' from project 'Nuptuality')
(1 failure)
Exit status: 65

@jparksecurity
Copy link

jparksecurity commented Jan 10, 2022

I think you can refer to OneSignal/react-native-onesignal#838 (comment)

Basically, we need to match the Deployment Target. The fix is coming. #41

If you can't wait, I think we can try to follow #40 (comment)

To resolve this I had to patch the onesignal-expo-plugin to use the same iOS target as the expo sdk. (12.0 for my case).

@knilf-i-am
Copy link
Author

Awesome thanks @jparksecurity updating the target fixed it. I'll close this out.

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

2 participants