You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realized that instantly after doing the react native upgrade I get the following error when doing pod install.
[!] No podspec found for RCTDeprecation in ../../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation.
I have been rolling back one change at once, one by one, and it breaks only when changing react-native version to 0.74.0
Reproducible demo
Unfortunately I cannot provide this because this is not a personal project.
I can attach my podfile.
def node_require(script)
# Resolve script with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", __dir__]).strip
end
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')
platform :ios, min_ios_version_supported
prepare_react_native_project!
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
setup_permissions([
# 'AppTrackingTransparency',
# 'Bluetooth',
# 'Calendars',
# 'CalendarsWriteOnly',
'Camera',
# 'Contacts',
# 'FaceID',
# 'LocationAccuracy',
# 'LocationAlways',
# 'LocationWhenInUse',
# 'MediaLibrary',
'Microphone',
# 'Motion',
# 'Notifications',
# 'PhotoLibrary',
# 'PhotoLibraryAddOnly',
# 'Reminders',
# 'Siri',
# 'SpeechRecognition',
# 'StoreKit',
])
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
use_frameworks! :linkage => :static
pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
installer.pod_targets.each do |pod|
if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')
def pod.build_type;
# Uncomment the line corresponding to your CocoaPods version
Pod::BuildType.static_library # >= 1.9
# Pod::Target::BuildType.static_library # < 1.9
end
end
end
end
target 'MyProject' do
config = use_native_modules!
permissions_path = '../../node_modules/react-native-permissions/ios'
pod 'RNSentry', :podspec => '../../node_modules/@sentry/react-native/RNSentry.podspec' # or your path to node_modules
pod 'RNCClipboard', :path => '../../node_modules/@react-native-clipboard/clipboard'
pod 'react-native-twilio-video-webrtc', path: '../../node_modules/react-native-twilio-video-webrtc'
pod 'TwilioVoice'
pod 'TwilioAudioProcessors'
use_react_native!(
:path => config[:reactNativePath],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
#:flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'MyProjectTests' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer, '../../node_modules/react-native',
#config[:reactNativePath],
:mac_catalyst_enabled => false
)
end
end
The text was updated successfully, but these errors were encountered:
Hello React Native team! I am having some issues when upgrading to react native 74.0.
My project consists on a monorepo with shared code between web and mobile. The following react native info is on the mobile monorepo.
Environment
Things I’ve done to figure out my issue
Upgrading version
From 0.73.6 to 0.74.0
Description
I realized that instantly after doing the react native upgrade I get the following error when doing pod install.
[!] No podspec found for
RCTDeprecation
in../../node_modules/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation
.I have been rolling back one change at once, one by one, and it breaks only when changing react-native version to 0.74.0
Reproducible demo
Unfortunately I cannot provide this because this is not a personal project.
I can attach my podfile.
The text was updated successfully, but these errors were encountered: