Skip to content

[iOS] [ARCore Extensions] Could not find or use auto-linked framework 'CoreAudioTypes', Undefined symbol #58

@neatnoin

Description

@neatnoin

My Unity project is using ARCoreExtension dependency and I connected this project to the Flutter project and it was built successfully (this is a project with the simplest features for unit testing purposes)

Then, I added Firebase dependence to the Flutter project to use Firebase in the Flutter project and added ARCore Extension dependence to Flutter's Podfile, which is integrated and managed by Flutter's Podfile.

// FlutterProject/iOS/Podfile

platform :ios, '15.0'

ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

use_modular_headers!

flutter_ios_podfile_setup

target 'Runner' do
  use_frameworks!
    pod 'ARCore/GARSession', '~> 1.50.0'
    pod 'ARCore/Geospatial', '~> 1.50.0'

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
  target 'RunnerTests' do
    inherit! :search_paths
  end
end

It builds successfully on Android, but the following error occurs on Xcode.

[iOS] Could not find or use auto-linked framework 'CoreAudioTypes', Undefined symbol

The number of errors is more than 80, and CoreAudioTypes.framework does not seem to be recognized.

I've tried some ways as it seems that Unity has already had a lot of CoreAudioTypes errors.

What I've done:

  1. Change and reinstall Xcode Version (currently: 16.4 > 15.4, 16.0, 16.3)
  2. UnityFramework : General > Frameworks, Library > CoreAudioTypes.framework add
  3. Other Link Flag : -ObjC, -fprofile-instr-generate, -ld_classic add
  4. Link binary with Library : CoreAudioTypes.framework add
  5. Delete CoreAudioTypes, Add CoreAudio, AudioToolBox

But I couldn't fix the error. How can I fix it?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions