-
-
Notifications
You must be signed in to change notification settings - Fork 526
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_$_RCTImageLoader #842
Comments
Can you reproduce this issue on the fresh |
@khasbilegt Hi. I've experienced a similar issue and it was related to using
|
thanks, it helped! |
@jakmak24 its causing this error ld: warning: directory not found for option '-L-L/Users/apple/apps/appElection/ios/Build/Products/Debug-iphonesimulator/RNScreens' |
I got the same issue with @khasbilegt , try to add some codes as jakmak24's suggestion, but it doesn't work. |
Does anyone know how to explain why this happens? I'm doing the integration of react native with the existing ios app and I'm having this same problem in the x86_64 architecture not only in lib react-native-screens but also in react-native-masked-view and react-native-svg xcode: 12.4v |
Exactly same issue, pre_install not helps tried to add Xcode : 12.4 |
@phuchungnguyen78 did you find any solution for salesforce SDK + RN projects? |
If the change suggested by @jakmak24 doesn't work for you, you can always revert the commit that introduces this change: #768 with e.g. patch-package. |
Thanks it helped me by pass the issue but I would like to know the actual fix and also I would like to know what issues i can expect in future because of this pod file change |
Sorry, I don't have this problem. Is there anyone else? Is there any problem using this version in a new project? |
@sunzhongliangde I'm using it in my project, and adding the pre install action to build RNScreens as a static library causes |
It's another problem. Fixed for me with :
|
I will close this issue since it is not |
I was also having this issue and I think I was able to fix it a bit more elegantly. Instead of doing |
I am using
How do I fix it? |
post_install do |installer|
end |
I've just run into this issue today after upgrading When everyone shifted from depending on 'React' to 'React-Core' because Xcode got fussy about that, some packages that depend on bits of React Native outside 'React-Core' have not added all those frameworks explicitly. Form me adding: I hope that all makes sense and it would be great if this could be fixed in a future release @WoLewicki 🙏 - then I can remove my package patch. |
@markwilcox so could you make a PR with such a change and link it here for people to be able to test it and say if it resolves their issue? It would be great if we could resolve this issue by it. |
I double checked the dependencies and it was only "React-RCTImage" that was missing. This gets our build through CI without any of the messy local podfile hacks suggested above. Made a PR - linked above. It shouldn't have any effect on users that don't have the error, you're just declaring your dependency on something that would get built anyway to ensure the correct build order. |
I've applied the suggested dependency "React-RCTImage" fix but keep getting the same error. Is there anything else you did, @markwilcox ? Did you also apply the pre-install instructions from above and if so, where exactly? |
No pre-install hacks required @LPitonakova but you do need to pod install again after applying the fix. You can check the dependency has been correctly added in your Pods project in Xcode afterwards. |
@markwilcox I did pod install, then cleaned and re-built the project as well. Still the same error. I feel like I'm missing something! When you say "You can check the dependency has been correctly added in your Pods project in Xcode afterwards." - how exactly would I do that please? |
I’m on a phone, or I’d send you a screenshot. There should be a project called Pods in your Xcode Workspace. Inside that there is a target for each native module, and if you select react-native-screens then you should be able to see the dependencies. |
Hi @markwilcox sorry I don't see that & after trying a few other things, the error still persists. Here is a screenshot of the Pods -> RNScreens My full pod file, of the project is:
|
Looking at your linked issue @LPitonakova I think you've gone wrong having use_native_modules! in the share extension target in the first place. The share extension should be all native, no React Native. Extension memory restrictions on iOS make React Native quite unusable inside them. Double check the build instructions for the share extension because I think it shouldn't be including anything at all via Cocoapods. |
Thanks for having a look at that @markwilcox the thing is though, If I take out the
The share extension uses a react native library called
But the error I get is the same. I am quite lost in this - are you able to see what I am doing wrong? Another weird things is that before XCode 12, I had another project that used the exact same share extension setup, with the |
I have just commented #use_frameworks! |
It's working for me. |
It worked. But It is not a good solution. |
Description
Build fails on react-native-screens versions 2.18.0, 2.18.1 but works fine on previous versions.
Screenshots
Steps To Reproduce
Expected behavior
Successful Xcode build
Actual behavior
Failed Xcode build
Package versions
The text was updated successfully, but these errors were encountered: