본문 바로가기
반응형

mac os3

SocketException: Connection failed (OS Error: Operation not permitted, errno = 1) [flutter][macOS] SocketException: Connection failed (OS Error: Operation not permitted, errno = 1) [flutter][macOS] 에러 내용 애플 macOS에서 http통신 코드를 호출할 때, SocketException: Connection failed 에러가 나타날 때가 있다. 에러 사유를 디버깅해보면 OS Error: Operation not permitted 라고 표시된다. 이제 우리는 OS 에서의 권한적인 문제가 있나보구나 정도로 원인을 유추할 수 있다. 해결책 아래와 같이 앱 프로젝트 내에서 권한을 추가한다. 파일은 Runner/DebugProfile.entitlements 이다. 기존 코드는 server에 대해서만 true처리되어있을 수도 있는데.. 2023. 2. 7.
맥북에서 Homebrew 설치하는 방법 맥북에서 Homebrew 설치하는 방법 터미널을 열고 아래 순서대로 명령어를 입력하면 된다. 간단하다! 1. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 2. echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/사용자계정/.zprofile 3. eval "$(/opt/homebrew/bin/brew shellenv)" 4. 이제 다 됐다! 아래 명령어까지만 실행이 잘 된다면 설치 완료!! brew --version 2023. 1. 14.
How to set Mac OS version when building library (라이브러리 빌드할 때 Mac OS버전 설정 방법) How to set Mac OS version when building library (라이브러리 빌드할 때 Mac OS버전 설정 방법) 맥에서 라이브러리를 빌드할 때, 특정 타겟 버전으로 빌드해야할 때가 있다. 예를 들어, 11.2 버전으로 라이브러리를 빌드해야하는데 내가 사용하는 맥의 OS버전이 12.x일 수 가 있다. 이럴 때는 아래 명령어를 사용한 뒤에 라이브러리를 빌드하면 된다. (When building libraries on a Mac, there are times when you need to build to a specific target version. For example, I need to build the library with version 11.2, but the OS vers.. 2022. 10. 4.
반응형