Skip to content

[iOS] Error while migrating to new arch #4052

Closed

Description

@pnogier

Hi there,

I am currently in the process of migrating to new arch, so I updgraded expo to SDK 54, and RN to 0.81.4
I am still getting the exact same error I was getting at first time when trying to build with new arch, mentioned in #3910 but cannot reopen unfortunately

› Linking   @rnmapbox/maps Pods/rnmapbox-maps » rnmapbox_maps
❌  Undefined symbols for architecture arm64
┌─ Symbol: google::LogMessage::stream()
└─ Referenced from: facebook::react::ConcreteComponentDescriptor<facebook::react::ConcreteViewShadowNode<&facebook::react::RNMBXAtmosphereComponentName, facebook::react::RNMBXAtmosphereProps, facebook::react::RNMBXAtmosphereEventEmitter, facebook::react::StateData>>::adopt(facebook::react::ShadowNode&) const in RNMBXAtmosphereComponentView.o                 


❌  ld: symbol(s) not found for architecture arm64

I am using @rnmapbox/maps: 10.2.3, I tried forcing $RNMapboxMapsVersion = '= 11.15.2' in the Podfile and also tried without, getting the same error anyways.

Did anyone encountered the same issue and found a fix or a workaround ?

Maybe I am missing something important tho...

Here is my full Podfile if it can give a hint

require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require 'json'
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}

# 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

ENV['RCT_NEW_ARCH_ENABLED'] = '1'
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
ENV['RCT_USE_RN_DEP'] = '0'
ENV['RCT_USE_PREBUILT_RNCORE'] = '0'

# $RNMapboxMapsVersion = '= 11.13.4'

platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
install! 'cocoapods',
  :deterministic_uuids => false

prepare_react_native_project!
use_frameworks!

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

def rnpermissions
  permissions_path = '../node_modules/react-native-permissions/ios'
  pod 'RNPermissions', :path => '../node_modules/react-native-permissions'
  pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
  pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
  pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"
end

def usefullibs
  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
  pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'
end

target 'Spacial' do
  use_expo_modules!

  rnpermissions
  usefullibs

  if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
    config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"];
  else
    config_command = [
      'npx',
      'expo-modules-autolinking',
      'react-native-config',
      '--json',
      '--platform',
      'ios'
    ]
  end

  config = use_native_modules!(config_command)

  use_react_native!(
    :path => config[:reactNativePath],
    :hermes_enabled => true,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  post_install do |installer|
    $RNMapboxMaps.post_install(installer)

    # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
    react_native_post_install(
      installer,
      config[:reactNativePath],
      :mac_catalyst_enabled => false,
      # :ccache_enabled => true
    )
  end
end


pre_install do |installer|
  Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}

  $RNMapboxMaps.pre_install(installer)

  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::BuildType.static_library # < 1.9
      end
    end
  end

  installer.pod_targets.each do |pod|
    if pod.name.eql?('RNReanimated')
      def pod.build_type;
      Pod::BuildType.static_library
      end
    end
  end
end

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignalXCFramework', '>= 5.0.0', '< 6.0'
end

Environment

Dev OS: MacOS 26.0.1, Xcode 26.0.1
@rnmapbox/maps version: 10.2.3
React Native version: 0.81.4
Expo version: 54.0.13

Activity

  1. mfazekas commented on Oct 17, 2025

    @mfazekas
    Contributor

    @pnogier I'm sorry but this list is for bugs not support issues specific to your project.
    Try creating a new project with create , npx create-expo-app@latest and add outher libraries one by one.
    LogMessage::stream() defined by the glog pod, not sure what's going on on your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions