-
Notifications
You must be signed in to change notification settings - Fork 377
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
Undefined symbol: _OBJC_CLASS_$_RCTInspectorDevServerHelper #1359
Comments
Hi everyone! I have the same issue since this morning; the awful part of my story is that my codebase built without errors until yesterday evening, but today not anymore. I've tried to use a notification service extension written in both Objective-C and Swift, re-installed cocoapods, removed its cache, changed its version, re-installed the pods an enormous amount of times, set APPLICATION_EXTENSION_API_ONLY to NO first for all the pods, and then for React-Core and RNPermissions pods only, added missing dependencies when able but in the end I'm still stuck with the same errors above. Please help, I would like to have this working and I'm tired of reading "please reinstall your pods, you will be fine" :( |
@mdeliadi @allemanfredi Thanks for the details! Looking to narrow down this issue, to specific react-native versions and settings. @mdeliadi You noted you did not have the issue originally with OneSignal, but then broke the next day. Did you upgrade your version of react-native or anything else? @mdeliadi @allemanfredi Could you share your This issue looks like it could be related #1360. |
Hi @jkasten2 ! React Native version should be 0.66.3, the next day I've not updated anything, I've just removed my Podfile:
Thanks for your help! Any suggestion will be very appreciated! |
Hi @jkasten2 ! Any news, please? I'm still blocked on this issue! Thanks. |
@mdeliadi @allemanfredi Can you try moving target 'MyApp' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => true
)
target 'MyAppTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
use_flipper!({ 'Flipper-Folly' => '2.6.7', 'Flipper-RSocket' => '1.4.3' , 'Flipper' => '0.88.0' })
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignalXCFramework', '>= 3.0', '< 4.0'
end To this: target 'MyApp' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => true
)
target 'MyAppTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
use_flipper!({ 'Flipper-Folly' => '2.6.7', 'Flipper-RSocket' => '1.4.3' , 'Flipper' => '0.88.0' })
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignalXCFramework', '>= 3.0', '< 4.0'
end
end This worked for another developer (noted in #1360 (comment)) but not sure exactly why it is required in this scenario when |
@jkasten2 Hi! Thanks for your suggestion, unfortunately it's still not working. Any other suggestion, please? Something that maybe it is interesting to point out, depending on where you put the |
@mdeliadi For the "'sharedApplication' is unavailable" issue see the following: |
i tried to add the code below but it does not work.
I get 2 errors:
|
After moving |
Which solution worked? I have been in this situation for 2 days now. I tried multiple approaches but still didn't get it. The last approach I tried is this #1360 (comment) but still didn't work for me. |
For anyone who comes across this issue, the reason for the linking issue here is that the pods declared at the top level are being inherited by all targets. Move all React Native pod definitions (and any other calls that add pods, like use_flipper!) into the app's target so that the OneSignal target won't try to link those RN dependencies. |
Hello everyone! Since it has been quite some time since this issue has seen activity, I'm going to close it as stale. Please @ mention me if anyone is still experiencing this on the latest Player Model (4.5.2) or User Model (5.0.5) releases and we'll be happy to give it some fresh eyes. Thanks! |
Placing
before post_install work for me
|
Description:
Hello everyone, After having followed your documentation and after having set
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
within thePodfile
, i started to receive the following errors during the build.If i don't set
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
, i receive this error:Environment
The text was updated successfully, but these errors were encountered: