카테고리 없음
MacOS Flutter build error 잡기
시커먼수르
2022. 3. 11. 15:10
1. Debug.xcconfig 파일이 없다는 에러
Xcode's output: ↳ note: Using new build system note: Planning note: Build preparation complete note: Building targets in dependency order /Users/hello/Projects/test/ios/Flutter/Debug.xcconfig:1:1: error: unable to open file (in target "Runner" in project "Runner") /Users/hello/Projects/test/ios/Flutter/Debug.xcconfig:1:1: error: unable to open file (in target "Runner" in project "Runner") /Users/hello/Projects/test/ios/Flutter/Debug.xcconfig:1:1: error: unable to open file (in target "Runner" in project "Runner") |
Debug.xcconfig 파일이 없다는 에러는, 신규 Flutter 프로젝트 생성 후 만들어진 파일을 그대로 복사해주니 해결됐다.
2. Xcode 내에서 빌드 할 때 나타나는 다음과 같은 에러
Showing Recent Messages "Runner" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor. |
아래 화면에서, Team을 개인계정으로 설정해면 해결된다.
3. PhaseScriptException 에러
빌드 중에 아래와 같은 에러가 발생한 경우는..?
Command PhaseScriptExecution failed with a nonzero exit code |
정말 한참 고생했는데, 나같은 경우엔 Run Script 에서 For install builds only 를 체크해제 해주니 정상동작했다.