Comments (8)
@blumendorf You are absolutely right. I am using multiple targets and adapting configuration worked. Thank you ! 😊
In my Podfile, my targets:
project 'gotobridge',
'Debug-dev' => :debug,
'Release-dev' => :release,
'Debug' => :debug,
'Release' => :release
And so, my flipper pods :configuration:
def add_flipper_pods!
version = '~> 0.35.0'
pod 'FlipperKit', version, :configuration => ['Debug-dev', 'Release-dev']
pod 'FlipperKit/FlipperKitLayoutPlugin', version, :configuration => ['Debug-dev', 'Release-dev']
pod 'FlipperKit/SKIOSNetworkPlugin', version, :configuration => ['Debug-dev', 'Release-dev']
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', version, :configuration => ['Debug-dev', 'Release-dev']
pod 'FlipperKit/FlipperKitReactPlugin', version, :configuration => ['Debug-dev', 'Release-dev']
end
Also, for the record, after I built my app, it crashed on launch with Thread 1: signal SIGABRT
Searching a bit deeper, I found this message: This copy of libswiftCore.dylib requires an OS version prior to 12.2.0.
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.
For those using multiple schemes and on 0.63
, you can make the following change in your Podfile:
From
use_flipper!
To
use_flipper!(configurations: ['Debug', 'Local.Debug', 'Staging.Debug'])
The flipper pods were made configurable in facebook/react-native#29074
from upgrade-support.
I have multiple builds too, but it doesn't work somehow,
here's my PodFile
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
project 'projName',
'Debug' => :debug,
'Release' => :release,
'Local.Debug' => :debug,
'Local.Release' => :release,
'Staging.Debug' => :debug,
'Staging.Release' => :release
target 'projName' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
target 'projNameTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
target 'projName-tvOS' do
# Pods for projName-tvOS
target 'projName-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
This is what I am following http://blog.logicwind.com/adding-multiple-target/
I get these errors
from upgrade-support.
Ok, so I dug further and found that I had -DFB_SONARKIT_ENABLED=1
in OTHER_CFLAGS
somehow in both debug and release. Setting it via preprocessor macros instead only for debug helped. Also #25 might be helpful in case of other problems.
from upgrade-support.
In my case, i had ejected from expo and had been having issues with Build Settings > Other C Flags > Release
$(inherited)
being at the top. Moved to bottom and build succeeded.
from upgrade-support.
I am using multiple build targets for development, staging and production environments and ran into this issue too.
Because of this line:
Build target gotobridge of project GotoBridge with configuration Debug-dev
I assume you are using multiple build targets, too?
If that is the case, you may have to adapt :configuration => 'Debug'
in your Podfile to your targets.
from upgrade-support.
I had the same problem when trying to introduce multiple build targets by following http://blog.logicwind.com/adding-multiple-target/ . I had a lot more :configuration => debug
than what was mentioned by @arnriu in this reply.
I had to change all of them as follows
Before
def add_flipper_pods!(versions = {})
versions['Flipper'] ||= '~> 0.33.1'
versions['DoubleConversion'] ||= '1.1.7'
versions['Flipper-Folly'] ||= '~> 2.1'
versions['Flipper-Glog'] ||= '0.3.6'
versions['Flipper-PeerTalk'] ||= '~> 0.0.4'
versions['Flipper-RSocket'] ||= '~> 1.0'
pod 'FlipperKit', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/FlipperKitLayoutPlugin', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/SKIOSNetworkPlugin', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/FlipperKitReactPlugin', versions['Flipper'], :configuration => 'Debug'
# List all transitive dependencies for FlipperKit pods
# to avoid them being linked in Release builds
pod 'Flipper', versions['Flipper'], :configuration => 'Debug'
pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => 'Debug'
pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => 'Debug'
pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug'
pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => 'Debug'
pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => 'Debug'
pod 'FlipperKit/Core', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug'
pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug'
end
After adding multiple build targes I changed them to follows and the build worked for all targets
project 'awesomeProject',
'Sandbox.Debug' => :debug,
'Sandbox.Release' => :release,
'Debug' => :debug,
'Release' => :release
def add_flipper_pods!(versions = {})
versions['Flipper'] ||= '~> 0.33.1'
versions['DoubleConversion'] ||= '1.1.7'
versions['Flipper-Folly'] ||= '~> 2.1'
versions['Flipper-Glog'] ||= '0.3.6'
versions['Flipper-PeerTalk'] ||= '~> 0.0.4'
versions['Flipper-RSocket'] ||= '~> 1.0'
pod 'FlipperKit', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/FlipperKitLayoutPlugin', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/SKIOSNetworkPlugin', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/FlipperKitReactPlugin', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
# List all transitive dependencies for FlipperKit pods
# to avoid them being linked in Release builds
pod 'Flipper', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug'
pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/Core', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => ['Sandbox.Debug', 'Debug']
end
from upgrade-support.
I'm also affected using Xcode Version 12.0.1 (12A7300) (also: Version 12.1 (12A7403)) and running fresh app generated with react-native init
(0.63.3). Xcode 11.7: fresh app works, my app doesn't (same error)
from upgrade-support.
Related Issues (20)
- 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
- MainApplication.kt: Unresolved reference: BuildConfig HOT 9
- Upgraded to RM 0.73 - Metro bundler not connected to app when running in iOS Simulator HOT 1
- Showing blank white screen on android emulator with no error in metro after upgrading from 0.67.1 to 0.73.6 HOT 2
- Unable to resolve module @babel/runtime/helpers/interopRequireDefault HOT 1
- iOS app crash 0.73.2
- RN upgrade 0.71.14 -> 0.73.7 - org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
- jest fails import typeof ActionSheetIOS from './Libraries/ActionSheetIOS/ActionSheetIOS';
- RN 0.73.7 to 0.73.8 - Failed to transform react-android-0.73.8-debug.aar HOT 1
- v74.0: No podspec found for RCTDeprecation HOT 1
- Android unable to build in react-native:0.73.2 HOT 1
- React Native ^0.73.0 upgrade excludes i386 arch when pod install is run causes IOS build to fail.
- Android: Foreground Service persistence
- Jest fails to start tests after upgrade from react-native v0.70.5 to 0.73.6
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.