-
Notifications
You must be signed in to change notification settings - Fork 2
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
0.62 – dyld: Library not loaded: @rpath/libswiftCore.dylib #27
Comments
If anyone happens to have this (or a similar) issue, and you don't need Flipper support for your app, disabling Flipper solves the issue. Comment out these lines from
And from #import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
static void InitializeFlipper(UIApplication *application) {
FlipperClient *client = [FlipperClient sharedClient];
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
[client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
[client addPlugin:[FlipperKitReactPlugin new]];
[client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
[client start];
}
#endif
// ...
#if DEBUG
InitializeFlipper(application);
#endif I know this fix isn't really a fix at all, but if you want the other new features/bug fixes in 0.62 and are okay without Flipper, you can disable it altogether on iOS fairly easily. |
I was getting that error, and this fixed it for me: #30 (comment)
|
Took me hours to figure this out but I had to manually add Flipper to my Podfile, since I could not run
|
Add |
I had the same issue here, I tried tons of solutions in Stack Overflow (such as the one linked above this comment ☝🏽 ) but the only thing that managed to remove this error was disabling flipper 😞 |
原因及方案: 1)RN swift 报错 https://stackoverflow.com/questions/56855766/xcode-build-fails-due-to-undefined-symbol-swift-force-load-swiftuikit react-native-community/upgrade-support#72 2)Library not loaded: @rpath/libswiftCore.dylib react-native-community/upgrade-support#27 Reviewer: 来源:
Had the same issue and only adding |
Environment
Upgrading version
0.61.5 -> 0.62.0 using https://react-native-community.github.io/upgrade-helper/?from=0.61.5&to=0.62.0 and #13. I have also set
Always Embed Swift Standard Libraries
toYES
.Description
The app builds successfully but crashes immediately (only on iOS) when opening. The following error is given:
Here are some of my project files:
AppDelegate.m
AppDelegate.h
PalChat-Bridging-Header.h
Dummy.swift
Podfile
package.json
My Swift build settings:
I have tried:
DerivedData
but nothing has worked so far.
Reproducible demo
I was unable to recreate this error in a fresh React Native project, which leads me to believe that I did something wrong during the upgrade. The project worked perfectly on RN 0.61.5.
Thanks in advance, and please let me know if there are any other files/logs I need to provide.
The text was updated successfully, but these errors were encountered: