TroubleShooting

[SDK] SwiftEmitModule normal arm64 Emitting module for xxx (in target 'xxx' from project 'xxx') 에러 해결방법

Phililip 2023. 6. 15.
728x90

안녕하세요.

 

오늘도 삽질을 거하게 했습니다..;;

 


# 이슈

TestProject.xcworkspace 안에 CoreFrameworkTestFramework라는 프로젝트가 있다고 가정해 볼게요.

(TestFramework 내부적으로 CoreFramework를 사용하는 구조라고 할게요.)

 

저는 TestFramework.xcframework라는 SDK를 만들고자 아래 명령어를 호출했는데요.

 

xcodebuild archive \
-scheme TestFramework \
-archivePath ./build/ios.xcarchive \
-sdk iphoneos \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES

 

 

바로 에러가 발생해 버리더라구요.

 

** ARCHIVE FAILED **
The following build commands failed:
SwiftEmitModule normal arm64 Emitting\ module\ for\ TestFramework (in target 'TestFramework' from project 'TestFramework')
view raw error_log.txt hosted with ❤ by GitHub

 

 

# 해결 방법

아래처럼 명령어에 workspace 옵션도 같이 명시해 주세요.

 

xcodebuild archive \
-workspace TestProject.xcworkspace \
-scheme TestFramework \
-archivePath ./build/ios.xcarchive \
-sdk iphoneos \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES

 

 

# 참고

- https://stackoverflow.com/questions/66470694/got-an-archive-failed-when-trying-xcodebuild-archive-in-terminal/66621660#66621660

 

Got an Archive failed when trying "xcodebuild archive" in terminal

I have created a framework with few cocoapod dependencies .The archive for the framework is failing when i do 'xcodebuild archive' after adding the pod files (Did pod install). In the normal build,...

stackoverflow.com

 


별거 아닌데... 허헣.. 오늘도 사소한 지식이 하나 늘었다는 것에 의의를 두며.. 이번 글은 여기서 마무리.

 

 

 

반응형