-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Environment
System:
OS: macOS 15.5
CPU: (10) arm64 Apple M4
Memory: 432.83 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.15.0
path: ~/.nvm/versions/node/v22.15.0/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 11.5.2
path: ~/.nvm/versions/node/v22.15.0/bin/npm
Watchman:
version: 2025.03.10.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.5
- iOS 18.5
- macOS 15.5
- tvOS 18.5
- visionOS 2.5
- watchOS 11.5
Android SDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.25410.109.2511.13665796
Xcode:
version: 16.4/16F6
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.15
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 19.1.1
wanted: 19.1.1
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.80.2
wanted: 0.80.2
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Things I’ve done to figure out my issue
- I used upgrade-helper to do my upgrade;
- Installed packages using
pnpm i; - Installed pods with
pod installoniOS/folder; - Opened the project with
xed .and build a Development build;
Upgrading version
from 0.75.4 to 0.80.2
Description
I've followed the instructions from upgrade helper and everything was working fine on Android.
On iOS I started getting the following error:
After some research I found out that this is related to use_frameworks!, indeed when I removed this line from PodFile, the build worked as expected. But some of my dependencies, rn-firebase needs use_frameworks! :linkage => :static
PodFile Content:
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, min_ios_version_supported
prepare_react_native_project!
linkage = ENV['USE_FRAMEWORKS']
ENV['RCT_NEW_ARCH_ENABLED'] = '1'
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
target 'app' do
config = use_native_modules!
pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage'
use_frameworks! :linkage => :static
$RNFirebaseAsStaticFramework = true
use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
Reproducible Steps
- Create a project;
- Install packages;
- Add
use_frameworks! :linkage => :staticinside Podfile's target section; - Install pods with
pod install; - Build the app;
Metadata
Metadata
Assignees
Labels
No labels