본문 바로가기
반응형

에러33

Effective C++ 항목9 : 객체 생성 및 소멸 과정 중에는 절대로 가상 함수를 호출하지 말자 Effective C++ 항목9 객체 생성 및 소멸 과정 중에는 절대로 가상 함수를 호출하지 말자 객체 생성 및 소멸 과정 중에는 절.대.로 가상 함수를 호출해선 안된다!! // 기본 클래스 class Transaction { public: Transaction(); virtual void logTransaction() const = 0; // 타입에 따라 달라지는 로그 기록 ... }; // 기본 클래스 생성자 Transaction::Transaction() { logTransaction(); } // Transaction 의 파생 클래스 class BuyTransaction : public Transaction { public: // Transaction 타입에 따른 거래내역 로깅 virtual vo.. 2023. 2. 12.
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처리되어있을 수도 있는데 clie.. 2023. 2. 7.
xcode firebase sdk 적용 방법 xcode firebase sdk 적용 방법 mac os 환경에서 앱을 빌드할 때, 구글 firebase관련하여 의존성 문제가 생기곤 한다. 이 문제는 firebase sdk를 인식하지 못하는 문제로서 필요한 plist파일 등록 및 리빌드하면 된다. 해결 방법 순서 Firebase console에 접속 iOS앱에 Firebase추가 진입 후, GoogleService-info.plist 다운로드 xcode프로젝트에 GoogleService-info.plist 추가 후 리빌드 빌드 성공 확인 2023. 1. 21.
[Git] remote: Support for password authentication was removed. Please use a personal access token instead. fatal: Authentication failed for ~ [Git] remote: Support for password authentication was removed. Please use a personal access token instead. fatal: Authentication failed for ~ 문제 상황 깃허브에 git push를 할 때, 아이디와 패스워드를 입력하니 인증 실패 메시지가 나오며 푸쉬에 실패한다. 해결 방법 깃헙 설정 페이지에서 personal access token을 받아서 비밀번호로 입력하면 푸쉬에 성공한다. 경로 : 깃허브 설정 > Settings > Personal access tokens > 신규 토큰 발행 해당 토큰을 깃 푸쉬할 때 비밀번호로 입력하면 끝. 2023. 1. 20.
반응형