-
Notifications
You must be signed in to change notification settings - Fork 12
Description
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:
- Change and reinstall Xcode Version (currently: 16.4 > 15.4, 16.0, 16.3)
- UnityFramework : General > Frameworks, Library > CoreAudioTypes.framework add
- Other Link Flag : -ObjC, -fprofile-instr-generate, -ld_classic add
- Link binary with Library : CoreAudioTypes.framework add
- Delete CoreAudioTypes, Add CoreAudio, AudioToolBox
But I couldn't fix the error. How can I fix it?