728x90

macos 4

[Flutter 앱 개발하기] MACOSX_DEPLOYMENT_TARGET 에러 해결

macos / Podfile에 입력을 해도 컴파일 할 때 버전 반영이 안될 경우가 있다. 버그 같다. ​ Workaround는 해당 파일 하단의 아래 내용을 post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_macos_build_settings(target) end end​ 아래와 같이 수정한다. (원하는 버전으로 수정) post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_macos_build_settings(target) target.build_configuration..

IT 2022.12.30

[Flutter 앱 개발하기] Firebase auth 를 macOS에서 사용하기

Firebase_auth를 macOS에서 사용하려고 하면 아래와 같은 에러를 만나게 된다. [!] The FlutterFire plugin firebase_auth for macOS requires a macOS deployment target of 10.12 or later. 아래와 같이 해결 방안도 함께 알려준다. - Update the `platform :osx, '10.11'` line in your macOS/Podfile to version `10.12` and ensure you commit this file. - Open your `macos/Runner.xcodeproj` Xcode project and under the 'Runner' target General tab set your ..

IT 2022.12.30

[Flutter 앱 개발하기] 여러 OS 지원하기 (앱에서 OS 확인하는 법)

Multi OS를 지원하는 앱을 만들 경우 (예를들어 Android, iOS, MacOS, Windows..), 다음과 같은 방법으로 앱 내에서 OS 종류를 확인 할 수 있다. import 'dart:io'; ... if (Platform.isMacOS) { } else if (Platform.isIOS) { } else if (Platform.isAndroid) { } else if (Platform.isWindows) { } else if (Platform.isLinux) { } else { } Material Design을 적용해 앱을 만들어서 각 OS에서 동일하게 보이게 만드는 경우도 있지만, OS 특성에 맞게 특화 UI를 구현하면 사용자 경험 측면에서 더 좋을 때도 있어서 그렇다. ​ 참고로 이..

IT 2022.12.30
728x90