728x90
안녕하세요.
오늘도 삽질을 거하게 했습니다..;;
# 이슈
TestProject.xcworkspace 안에 CoreFramework와 TestFramework라는 프로젝트가 있다고 가정해 볼게요.
(TestFramework 내부적으로 CoreFramework를 사용하는 구조라고 할게요.)
저는 TestFramework.xcframework라는 SDK를 만들고자 아래 명령어를 호출했는데요.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcodebuild archive \ | |
-scheme TestFramework \ | |
-archivePath ./build/ios.xcarchive \ | |
-sdk iphoneos \ | |
SKIP_INSTALL=NO \ | |
BUILD_LIBRARY_FOR_DISTRIBUTION=YES |
바로 에러가 발생해 버리더라구요.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** ARCHIVE FAILED ** | |
The following build commands failed: | |
SwiftEmitModule normal arm64 Emitting\ module\ for\ TestFramework (in target 'TestFramework' from project 'TestFramework') | |
# 해결 방법
아래처럼 명령어에 workspace 옵션도 같이 명시해 주세요.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcodebuild archive \ | |
-workspace TestProject.xcworkspace \ | |
-scheme TestFramework \ | |
-archivePath ./build/ios.xcarchive \ | |
-sdk iphoneos \ | |
SKIP_INSTALL=NO \ | |
BUILD_LIBRARY_FOR_DISTRIBUTION=YES |
# 참고
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
별거 아닌데... 허헣.. 오늘도 사소한 지식이 하나 늘었다는 것에 의의를 두며.. 이번 글은 여기서 마무리.
반응형
'TroubleShooting' 카테고리의 다른 글
Multiple commands produce 'xxx.framework' 해결방법 (0) | 2023.08.12 |
---|---|
[Unity] Debug.Log 로그가 콘솔.app에서 안보일 때 (0) | 2023.07.25 |
[심사] Guideline 2.3.3 - Performance - Accurate Metadata (0) | 2023.06.04 |
[Fastlane] [!] Read-only file system @ dir_s_mkdir - /Desktop (Errno::EROFS) 해결방법 (0) | 2023.05.30 |
[SwiftUI] Unknown preview provider 해결방법 (0) | 2023.05.17 |