MacBook Air m2 모델에서 kakao flutter sdk 빌드시 아래와 같은 에러가 납니다.
Flutter 3.0.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f1875d570e (2 weeks ago) • 2022-07-13 11:24:16 -0700
Engine • revision e85ea0e79c
Tools • Dart 2.17.6 • DevTools 2.12.2
kakao_flutter_sdk: ^1.2.1 # 전체 추가
kakao_flutter_sdk_user: ^1.2.1 # 카카오 로그인
Resolving dependencies of `Podfile`
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
[!] CocoaPods could not find compatible versions for pod "kakao_flutter_sdk_common":
In Podfile:
kakao_flutter_sdk_common (from `.symlinks/plugins/kakao_flutter_sdk_common/ios`)
그래서 iOS/.symlinks/plugins/kakao_flutter_sdk_common/iOS/kakao_flutter_sdk_common.podspec 파일을
아래 주석과 같이 수정했습니다.
그래도 에러가 똑같은데 무슨 문제인가요?
require 'yaml'
pubspec = YAML.load_file(File.join('..', 'pubspec.yaml'))
library_version = pubspec['version'].gsub('+', '-')
Pod::Spec.new do |s|
s.name = 'kakao_flutter_sdk_common'
s.version = library_version
s.summary = 'A new flutter plugin project.'
s.description = <<-DESC
A new flutter plugin project.
DESC
s.homepage = 'https://github.com/kakao/kakao_flutter_sdk'
s.license = { :file => '../LICENSE' }
s.author = { 'tony.mb' => 'tony.mb@kakaocorp.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
# s.ios.deployment_target = '11.0'
s.ios.deployment_target = '13.0'
s.swift_version = '5.0'
end