Gitlab + Workspace for iOS Project : Build Success , Failed to Archive

What i See
My Gitlab has 2 Jobs , Build → Archive
Build success , but Archive never success
RxSwift error showed in Gitlab failed log

What i Expect
Archieve Complete , Pipeline success , iPA file available

What is Problem

  • my Pipeline cant be complete , Build success , but Archive Failed
    Screen Shot 2564-06-21 at 13.36.25

Error ScreenShot

Runner*
I’m using my own macbook as runner , everything went well perfectly.

.gitlab-ci.yml
archive_project:
stage: archive
script:
- xcodebuild clean archive -archivePath build/MyProject -scheme MyProject
- xcodebuild -exportArchive -exportFormat ipa -archivePath “build/MyProject.xcarchive” -exportPath “build/MyProject.ipa”

artifacts:
paths:
- build/MyProject.ipa
tags:
- ios
- iOS

Podfile
source ‘https://github.com/CocoaPods/Specs.git
use_frameworks!
workspace ‘MyProject.xcworkspace’

target ‘MyProject’ do
project ‘MyProject’
pod ‘RxSwift’
pod ‘RxCocoa’
pod ‘Alamofire’

target ‘MyProjectTests’ do
inherit! :search_paths
pod ‘RxBlocking’
pod ‘RxTest’
end

target ‘MyProjectUITests’ do
end
end