Apple Macos Build Agent Error: Failed to perform checkout on agent: Failed to locate TFS Java SDK native libraries
I just set up a new Apple Macos build machine. I have one agent installed, configured and connected to the TeamCity Server.
The agent can successfully execute one of my build definitions. But the 2nd build definition always fails with the following error:
[Updating sources] Failed to perform checkout on agent: Failed to locate TFS Java SDK native libraries: com.microsoft.tfs.jni.internal.platformmisc.NativePlatformMisc.nativeGetEnvironmentVariable(Ljava/lang/String;)Ljava/lang/String;
Full Error text:
Full log info:
[13:18:48] The build is removed from the queue to be prepared for the start
[13:18:48] Collecting changes in 1 VCS root
[13:18:48] [Collecting changes in 1 VCS root] VCS Root details
[13:18:48] [VCS Root details] "tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx" {instance id=133, parent internal id=118, parent id=TfsHttpsXxxXxxComXXXXxxXxx, description: "tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx"}
[13:18:49] [Collecting changes in 1 VCS root] Compute revision for 'tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx'
[13:18:49] [Compute revision for 'tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx'] Upper limit revision: 8839
[13:18:49] [Compute revision for 'tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx'] Latest commit attached to build configuration (with id <= 43198): 8798
[13:18:49] [Compute revision for 'tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx'] Computed revision: 8798
[13:18:49] Starting the build on the agent "APPLE_22_CI_1"
[13:18:49] Updating tools for build
[13:18:49] [Updating tools for build] Tools are not required for the build
[13:18:49] Clearing temporary directory: /Users/svc_teamcitybuild/TC/A1/temp/buildTmp
[13:18:49] Publishing internal artifacts
[13:18:49] [Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher]
[13:18:49] [Publishing internal artifacts] Publishing 1 file using [WebPublisher]
[13:18:49] Full checkout enforced. Reason: [Checkout directory is empty or doesn't exist]
[13:18:49] Will perform clean checkout. Reason: Checkout directory is empty or doesn't exist
[13:18:49] Checkout directory: /Users/svc_teamcitybuild/TC/A1/w/70783c4baf800b07
[13:18:49] Updating sources: auto checkout (on agent)
[13:18:49] [Updating sources] Will use agent side checkout
[13:18:49] [Updating sources] VCS Root: tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx
[13:18:49] [VCS Root: tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx] checkout rules: Resources=>Dev/Resources; Include=>Dev/Include; Examples/Viewers/Xcode/22=>Dev/Examples/Viewers/Xcode/22; Examples/Resources=>Dev/Examples/Resources; Examples/OCR/Xcode/22=>Dev/Examples/OCR/Xcode/22; Examples/ImageProcessing/Xcode/22=>Dev/Examples/ImageProcessing/Xcode/22; Examples/Forms/Xcode/22=>Dev/Examples/Forms/Xcode/22; Examples/FileFormats/Xcode/22=>Dev/Examples/FileFormats/Xcode/22; Examples/Dicom/Xcode/22=>Dev/Examples/Dicom/Xcode/22; Examples/Common/Xcode=>Dev/Examples/Common/Xcode; Examples/Barcode/Xcode/22=>Dev/Examples/Barcode/Xcode/22; Examples/Annotation/Xcode/22=>Dev/Examples/Annotation/Xcode/22; Batch/XcodeWorkspaces=>Dev/Batch/XcodeWorkspaces; Batch/XcodeBuildScript=>Dev/Batch/XcodeBuildScript; Batch/TeamCityBuildKiller=>Dev/Batch/TeamCityBuildKiller; Batch/Lic=>Dev/Batch/Lic; Batch/CABS=>Dev/Batch/CABS; Batch/Bin=>Dev/Batch/Bin; revision: 8798
[13:18:49] [VCS Root: tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx] Using java working mode
[13:18:49] [VCS Root: tfs: https://xxx.xxx.com/XXX/ $/XXX/xxx] Clean checkout flag was set by the build agent
[13:18:49] [Updating sources] Failed to perform checkout on agent: Failed to locate TFS Java SDK native libraries: com.microsoft.tfs.jni.internal.platformmisc.NativePlatformMisc.nativeGetEnvironmentVariable(Ljava/lang/String;)Ljava/lang/String;
[13:18:49] Publishing internal artifacts
[13:18:49] [Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher]
[13:18:49] [Publishing internal artifacts] Publishing 1 file using [WebPublisher]
[13:18:49] Build failed to start. Artifacts will not be published for this build
[13:18:49] Build finished
Please sign in to leave a comment.
I have more information now.
This new Mac is a Mac-Mini with the Apple M1 ARM processor.
I can 'work-around' this issue by setting the VCS checkout mode to "Always checkout files on server":