errSecInternalComponent getting error while executing the xcodebuild command from jenkins

Hi Team, Need your help on solving the errSecInternalComponent error which is getting generated while doing a xcode archive command from jenkins jobs. Currently using Sonoma-14.4, Xcode-15.2, in local it's working well both build and archive but in case of jenkins i am unable to get that, i already given security-unlock commands also before the archive stage but no use,

Commands passed: security unlock-keychain -p xxxx /Users/ec2-user/Library/Keychains/login.keychain-db; \

security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k xxxxx

Please let me know if i have missed any configuration thing.

Error

Signing Identity:     "iPhone Distribution: "
Provisioning Profile: "Notification Content Dist Profile"
                      (ffb7be92-3e65-4be4-b161-07c7f75723f0)

/usr/bin/codesign --force --sign 1FD10D04940E92C7A212E4A27C1E11D5C3DB12E9 --preserve-metadata\=identifier,entitlements,flags --generate-entitlement-der /Users/ec2-user/Library/Developer/Xcode/DerivedData/ReferenceApp-CardAppSDK-bwgchbllhpzevwgvnuwqvjywfeju/Build/Intermediates.noindex/ArchiveIntermediates/ReferenceApp-CardAppSDK/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/NotificationContentExtension.appex/Frameworks/PushNotificationExtensions.framework

Warning: unable to build chain to self-signed root for signer "iPhone Distribution: " /Users/ec2-user/Library/Developer/Xcode/DerivedData/ReferenceApp-CardAppSDK-bwgchbllhpzevwgvnuwqvjywfeju/Build/Intermediates.noindex/ArchiveIntermediates/ReferenceApp-CardAppSDK/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/NotificationContentExtension.appex/Frameworks/PushNotificationExtensions.framework: errSecInternalComponent

please help on this ASAP

Replies

Hello Team, For your kind information, i created another keychain and tried with that for doing the build, but still same error is getting popped out the ssh-terminal but on the native terminal it's working well. I gave full disk access also but still not sure why, such error is popping up. Can you please help on this one?

I have extensive advice on this topic in Resolving errSecInternalComponent errors during code signing.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi Team. Already followed but same error, please check the screen shot and guide us

  • HI Team, Nothing helped me out do i need to add any configuration changes in sshd_config file for ensuring the access in Mac Metal-M2 machine ? Please guide accordingly.

Add a Comment