개발/Error Solved

[Xcode] CocoaPods did not set the base configuration of your project because your project already has a custom config set.

걍판자 2024. 9. 15. 14:37
반응형

CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).

Xcode에서 IOS용 flutter 빌드 중에 발생한 Error Message이다.


발생 원인

    • windows에서 만든 플러터 앱을 IOS 용으로 빌드할때 생겨서 고치기 어려웠던 오류다. 특정 파일이 없어서 발생한다.

해결 방법

  1. /ios/Flutter 디렉토리로 이동한다.
  2. Debug.xcconfig 파일에  \#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"가 있는지 확인한 후 없으면 추가한다.
  3. Release.xcconfig 파일에\#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"  \#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 있는지 확인 후,  없으면 추가한다.

결론

xcconfig 파일이 debug에서만 만들어지고 release 할때는 제대로 만들어져있지 않아 생기는 오류였다. Xcode에 대해 이해가 부족했는데 이 버그를 고치면서 조금이나마 이해도가 늘어난 것 같다.

 

 

반응형