Comments (6)
I was getting that error, and this fixed it for me: #30 (comment)
I added a File.swift in my projects, and it was ok. But if I removed the file again, it crashed again.
So, in xCode, I went to BuildSettings -> Linking -> runpath search path , and manually changed each build line to:/usr/lib/swift
$(inherited)
And now it builds and starts fine, without the .swift file
from upgrade-support.
Had the same issue and only adding /usr/lib/swift
to Runpath Search Paths helped.
https://stackoverflow.com/a/69852407/4896751
from upgrade-support.
Add @executable_path/Frameworks
at Runpath Search Paths
worked for me.
https://stackoverflow.com/a/57669947/6162478
from upgrade-support.
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 Podfile
:
add_flipper_pods!
post_install do |installer|
flipper_post_install(installer)
end
And from AppDelegate.m
:
#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.
from upgrade-support.
Took me hours to figure this out but I had to manually add Flipper to my Podfile, since I could not run react-native update
on my project. I noticed I wasn't getting all these extra Flipper pod files compared to a new project.
https://fbflipper.com/docs/getting-started/react-native-ios
platform :ios, '9.0'
def flipper_pods()
flipperkit_version = '0.49.0'
pod 'FlipperKit', '~>' + flipperkit_version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitLayoutPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
pod 'FlipperKit/SKIOSNetworkPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
pod 'FlipperKit/FlipperKitReactPlugin', '~>' + flipperkit_version, :configuration => 'Debug'
end
# Post Install processing for Flipper
def flipper_post_install(installer)
file_name = Dir.glob("*.xcodeproj")[0]
app_project = Xcodeproj::Project.open(file_name)
app_project.native_targets.each do |target|
target.build_configurations.each do |config|
cflags = config.build_settings['OTHER_CFLAGS'] || '$(inherited) '
unless cflags.include? '-DFB_SONARKIT_ENABLED=1'
puts 'Adding -DFB_SONARKIT_ENABLED=1 in OTHER_CFLAGS...'
cflags << '-DFB_SONARKIT_ENABLED=1'
end
config.build_settings['OTHER_CFLAGS'] = cflags
end
app_project.save
end
installer.pods_project.save
end
target 'your-app-name' do
...
# Replace the existing yoga import with the following (adding modular_headers):
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true
...
use_native_modules!
# For enabling Flipper.
# Note that if you use_framework!, flipper will not work.
# Disable these lines if you are doing use_framework!
flipper_pods()
post_install do |installer|
flipper_post_install(installer)
end
end
from upgrade-support.
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 😞
from upgrade-support.
Related Issues (20)
- Upgrading RN version 0.67.2 (react 17.0.2) to RN version 0.70.12 (react 18.1.0) breaks the build
- Problem to upgrade from 0.63.2 to 0.63.4
- Upgrading to 0.72.4 breaks ios build HOT 2
- Update from 0.70.0 to 0.71.0 breaks functionality to get cookie with httpOnly enabled on iOS
- Suggested @babel/[email protected] version does not exist HOT 2
- 0.69.9 -> 0.72.4. Expo/metro issue ` HOT 6
- YGNode missing members issue with 72.5, 72.4 upgrade on mac
- Duplicate Dependency Error. Upgrading RN version 0.68.5 to 0.72.0. HOT 1
- Could not create task ':react-native-gesture-handler:compileDebugKotlin'
- Plugin with id 'com.facebook.react.rootproject' not found. HOT 10
- React Native Upgrade 0.68.0 -> 0.73.0 | Could not resolve org.jetbrains.kotlin:kotlin-reflect:1.6.10 HOT 2
- React Native Upgrade 0.72.5 -> 0.73.1 | export declaration must be at top level of module export default HOT 12
- RN upgrade 0.69.9 -> 0.73.1 Task :gradle-plugin:compileKotlin FAILED HOT 7
- Android: the demo so is always crash when migrate to my application
- Most of Time while going app foreground to background or appState change to inactive not calling API.
- upgrading from RN 0.72.9 to 0.73.2(or 0.73.5) tsconfig path errors HOT 7
- iOS application freezes on start when upgrading from react-native 0.68.4 to 0.70.14 HOT 8
- Exception bridge module null does not conform to RCTBridgeModule was dispatchViewManagerCommand Error after Upgrading to react native from 0.71.16 to 0.72 HOT 2
- React-native version upgarde issue from 0.65.0-0.68.0 HOT 1
- Pod Install returning error about react-utils when upgrading from 0.62.2 to 0.72.10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from upgrade-support.