14.1 C
New York
Monday, March 10, 2025

ios – xcodebuild will not compile, however xcode will


We are attempting to construct an iOS utility utilizing xcodebuild as a part of its CI/CD pipeline. It labored effective in XCode 14, however we have to replace it to XCode 15.2 as a result of Apple requires a better SDK model to publish to the apple retailer (17).
It builds effective in XCode 15.2 itself however, for some cause, once we attempt to construct it utilizing xcodebuild the command fails with the next message:

Code Signing /Customers/.../Library/Developer/Xcode/DerivedData/...-ahxomdvsgwllnsdagdfhsoirhchh/Construct/Intermediates.noindex/ArchiveIntermediates/.../InstallationBuildProductsLocation/Purposes/....app/Frameworks/FirebaseCore.framework with Identification Apple Distribution: ... (...)
/usr/bin/codesign --force --sign ACBAB517E7B3785D0AB307856EB52A95416A09B4  --preserve-metadata=identifier,entitlements '/Customers/.../Library/Developer/Xcode/DerivedData/...-ahxomdvsgwllnsdagdfhsoirhchh/Construct/Intermediates.noindex/ArchiveIntermediates/.../InstallationBuildProductsLocation/Purposes/....app/Frameworks/FirebaseCore.framework'
/Customers/.../Library/Developer/Xcode/DerivedData/...-ahxomdvsgwllnsdagdfhsoirhchh/Construct/Intermediates.noindex/ArchiveIntermediates/.../InstallationBuildProductsLocation/Purposes/....app/Frameworks/FirebaseCore.framework: errSecInternalComponent
Command PhaseScriptExecution failed with a nonzero exit code

That is the instructions we’re executing (we’re utilizing some cocoa packages like firebase):

  - brew set up cocoapods --formula > logs/brew_install_cocoapods.log
  - pod set up --project-directory=src > logs/pod_install.log
  - xcodebuild -workspace $xcode_workspace -scheme $xcode_scheme -sdk $xcode_sdk_archive -configuration $xcode_configuration clear construct archive -archivePath $PWD/construct/$xcode_scheme.xcarchive > logs/xcodebuild_archive.log

What can we do to repair it? Is there a manner copy the parameters utilized by xcode into our xcodebuild command?

We now have tried to replace to XCode 15.4, however we’re utilizing a 3rd social gathering’s VM to run our CI deployment, so we’re restricted to the 15.2 model.

Some options recommend so as to add “-f ” to the supply="$(readlink "${supply}")" line within the pods-XXX-frameworks file, but it surely’s already there.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles