Builds suddenly failing importing services (maybe?)

I’ve made minimal changes to my codebase, and suddenly I’m seeing errors that might suggest UD can’t import packages or something? I would guess the most significant change was adding com.unity.ads to manifest.json, but the errors don’t seem to whine about that.

Does this error suggest something about the leaderboards service not being available? I haven’t changed anything around leaderboards in this build–they were used several successful builds ago.

[error] [2024-05-09T17:23:56Z - Unity] Start importing Packages/com.unity.services.leaderboards/Editor/Authoring/AdminApi/Client/ErrorMitigation/RetryPolicy.cs using Guid(c18b87675fcbb4207806cc6c7e49e653) Importer(-1,00000000000000000000000000000000)

I have a dozen or more of these, and theyre all remote config, leaderboards, and core. Though neither remote config nor leaderboards were added in recent changesets–they’ve been around.

Is there a UD status page somewhere I can check before queuing more test builds to see if the issue has resolved (if it’s an issue at all)

I’ve tried a clean build–no dice. What else should I try? No build errors locally.

log:
mac build log

[error] [2024-05-09T17:23:54Z - Unity] Start importing Packages/com.unity.remote-config/Editor/Authoring/Core/ErrorHandling using Guid(45290123eb524969bb29cfd3b7cddb69) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:55Z - Unity] Start importing Packages/com.unity.services.leaderboards/Editor/Authoring/AdminApi/Client/ErrorMitigation using Guid(005e80abaea714fa2812ae68477a70ba) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:55Z - Unity] Start importing Packages/com.unity.services.core/Editor/Core/Environments/Client/ErrorMitigation using Guid(4f2e6d0ab1a754839a258e070611eedd) Importer(-1,00000000000000000000000000000000) → (artifact id: ‘8af28f3baf468a25ee12bb4fd743e4bd’) in 0.000410 seconds
[error] [2024-05-09T17:23:56Z - Unity] Start importing Packages/com.unity.services.leaderboards/Editor/Authoring/AdminApi/Client/ErrorMitigation/IRetryPolicy.cs using Guid(e036772b274b04985adba482eb9ae84e) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:56Z - Unity] Start importing Packages/com.unity.services.core/Editor/Core/Environments/Client/ErrorMitigation/IRetryPolicy.cs using Guid(31fcff17378634912895e85b91678ac3) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:56Z - Unity] Start importing Packages/com.unity.services.leaderboards/Editor/Authoring/AdminApi/Client/ErrorMitigation/RetryPolicy.cs using Guid(c18b87675fcbb4207806cc6c7e49e653) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:56Z - Unity] Start importing Packages/com.unity.services.core/Editor/Core/Environments/Client/ErrorMitigation/RetryPolicy.cs using Guid(6226434778f184f669acaa32c428c821) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:57Z - Unity] Start importing Packages/com.unity.services.core/Editor/Core/Environments/Client/ErrorMitigation/RetryPolicyConfig.cs using Guid(82a8d755c4b96403ab2a7e285328b299) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:57Z - Unity] Start importing Packages/com.unity.remote-config/Editor/Authoring/Core/ErrorHandling/DuplicateKeysInMultipleFilesException.cs using Guid(a33c51a2a55f4109af77593643d66481) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:58Z - Unity] Start importing Packages/com.unity.remote-config/Editor/Authoring/Core/ErrorHandling/TypeMismatchException.cs using Guid(64516e690ddc4aaf97bcdaf59dd367d2) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:58Z - Unity] Start importing Packages/com.unity.remote-config/Editor/Authoring/Core/ErrorHandling/InvalidTypeException.cs using Guid(743855cb2b52c264d8147723cdc9b1e8) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:59Z - Unity] Start importing Packages/com.unity.remote-config/Editor/Authoring/Core/ErrorHandling/FileParseException.cs using Guid(46e039ca856a4bd49b833e39bbdc8029) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:23:59Z - Unity] Start importing Packages/com.unity.services.leaderboards/Editor/Authoring/AdminApi/Client/ErrorMitigation/RetryPolicyConfig.cs using Guid(866620642915148c99082754a73f1802) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:24:00Z - Unity] Start importing Packages/com.unity.remote-config/Editor/Authoring/Core/ErrorHandling/RequestFailedException.cs using Guid(77d3d4fe6c3cd3d46a8071e7b7e83944) Importer(-1,00000000000000000000000000000000) → (artifact id: ‘3b4abebcf50e294c40e6d9f095272a0f’) in 0.000764 seconds
[error] [2024-05-09T17:24:01Z - Unity] Start importing Packages/com.unity.remote-config/Editor/Authoring/Core/ErrorHandling/MissingEntryForTypeException.cs using Guid(0995d2d22a2e4c208a38c48bf9bb86f2) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:24:01Z - Unity] Start importing Packages/com.unity.remote-config/Editor/Authoring/Core/ErrorHandling/RemoteConfigDeploymentException.cs using Guid(792e3381b4eb48fcb1753746724ce63a) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:24:02Z - Unity] Start importing Packages/com.unity.services.core/Editor/Core/Environments/Client/ErrorMitigation/StatusCodePolicyConfig.cs using Guid(4b0714a4bc17540af8e876e1b868db48) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:24:02Z - Unity] Start importing Packages/com.unity.remote-config/Editor/Authoring/Core/ErrorHandling/NoEntriesException.cs using Guid(8b3d79041dc64ec0986e13820818b67a) Importer(-1,00000000000000000000000000000000)
[error] [2024-05-09T17:24:03Z - Unity] Start importing Packages/com.unity.services.leaderboards/Editor/Authoring/AdminApi/Client/ErrorMitigation/StatusCodePolicyConfig.cs using Guid(6c36536c321c24b6f83a691eb3ee1909) Importer(-1,00000000000000000000000000000000) → (artifact id: ‘21a74707f532d5088da5937c6e5e2c9c’) in 0.000992 seconds
[error] [2024-05-09T17:34:45.755Z] - 7.4.3.2.7.4 - INFO: ▸ :x: clang: error: linker command failed with exit code 1 (use -v to see invocation)
[error] [2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: :x: clang: error: linker command failed with exit code 1 (use -v to see invocation)
[error] [2024-05-09T17:34:45.804Z] - 7.4.3.2.7.4 - INFO: ▸ clang: error: linker command failed with exit code 1 (use -v to see invocation)
[error] [2024-05-09T17:34:45.825Z] - 7.4.3.2.7.4 - ERROR: xcode build failed
[error] RuntimeError (Build Failure):
[error] /BUILD_PATH/.rvm/gems/ruby-2.7.4/gems/bvr-7.4.3.2.7.4/lib/bvr/build/handlers/platform/xcode_compiler.rb:319:in `block in exec_fastlane’: Build Failure (RuntimeError)
[error] 2024-05-09 17:34:53.067 *** Error: Error uploading ‘/BUILD_PATH/games-on-thrones.star-sprint.default-ios/.build/last/default-ios/build.ipa’.
[error] 2024-05-09 17:34:53.067 *** Error: Unable to upload archive. The file ‘/BUILD_PATH/games-on-thrones.star-sprint.default-ios/.build/last/default-ios/build.ipa’ cannot be found. (-43)

The issue is with your XCODE build. Unfortunately the Editor doesn’t tell us which lines are actual errors so our RegEx captures anything with the word “error” in it and flags it as a potential error when Unity runs.

I suggest reading the Full Log rather than the compact Log and looking for the line “xcode build failed” and going up from there to see what the real problem is.

This portion is definitely failing during fastlane running the build of the IPA. You can also download the full xcode log when looking at the build attempt that failed.

yeah the full log is monstrous. in lieu of the entire log (unless you want that) ive grabbed a snippet that could be relevant. is it indicating i have an xcode version mismatch? a fastlane version mismatch? where would i specify that? i was hoping to set it up once in UBA and forget it.

full log snippet

[error] [2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: :x: clang: error: linker command failed with exit code 1 (use -v to see invocation)
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[warning] [2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: Run script build phase ‘Unity Process symbols for UnityFramework’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘UnityFramework’ from project ‘Unity-iPhone’)
[warning] [2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: Run script build phase ‘Unity Process symbols for Unity-iPhone’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘Unity-iPhone’ from project ‘Unity-iPhone’)
[warning] [2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: Run script build phase ‘Run Script’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘GameAssembly’ from project ‘Unity-iPhone’)
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: ** ARCHIVE FAILED **
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: The following build commands failed:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: Ld /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-ccgczozhvwecxgbrizsprbyujpnr/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/UnityFramework.framework/UnityFramework normal (in target ‘UnityFramework’ from project ‘Unity-iPhone’)
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: (1 failure)
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: Exit status: 65
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: Maybe the error shown is caused by using the wrong version of Xcode
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: Found multiple versions of Xcode in ‘/APPLICATION_PATH/’
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: Make sure you selected the right version for your project
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: This build process was executed using ‘/APPLICATION_PATH/Xcode15_0_0.app’
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: If you want to update your Xcode path, either
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: - Specify the Xcode version in your Fastfile
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: ▸ xcversion(version: “8.1”) # Selects Xcode 8.1.0
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: - Specify an absolute path to your Xcode installation in your Fastfile
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: ▸ xcode_select “/APPLICATION_PATH/Xcode8.app”
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: - Manually update the path using
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: ▸ sudo xcode-select -s /APPLICATION_PATH/Xcode.app
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: ±--------------------------------------------+
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: | Build environment |
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: ±------------±------------------------------+
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: | xcode_path | /APPLICATION_PATH/Xcode15_0_0.app |
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: | gym_version | 2.219.0 |
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: | sdk | iPhoneOS17.0.sdk |
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO: ±------------±------------------------------+
[2024-05-09T17:34:45.803Z] - 7.4.3.2.7.4 - INFO:
[error] [2024-05-09T17:34:45.804Z] - 7.4.3.2.7.4 - INFO: ▸ clang: error: linker command failed with exit code 1 (use -v to see invocation)
[warning] [2024-05-09T17:34:45.804Z] - 7.4.3.2.7.4 - INFO: ▸ warning: Run script build phase ‘Unity Process symbols for UnityFramework’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘UnityFramework’ from project ‘Unity-iPhone’)
[warning] [2024-05-09T17:34:45.804Z] - 7.4.3.2.7.4 - INFO: ▸ warning: Run script build phase ‘Unity Process symbols for Unity-iPhone’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘Unity-iPhone’ from project ‘Unity-iPhone’)
[warning] [2024-05-09T17:34:45.804Z] - 7.4.3.2.7.4 - INFO: ▸ warning: Run script build phase ‘Run Script’ will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking “Based on dependency analysis” in the script phase. (in target ‘GameAssembly’ from project ‘Unity-iPhone’)
[2024-05-09T17:34:45.804Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.804Z] - 7.4.3.2.7.4 - INFO: :arrow_up: Check out the few lines of raw xcodebuild output above for potential hints on how to solve this error
[2024-05-09T17:34:45.804Z] - 7.4.3.2.7.4 - INFO: For the complete and more detailed error log, check the full log at:
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO: /BUILD_PATH/Library/Logs/gym/StarSprint-Unity-iPhone.log
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO: Looks like fastlane ran into a build/archive error with your project
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO: It’s hard to tell what’s causing the error, so we wrote some guides on how
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO: to troubleshoot build and signing issues: Getting Started - fastlane docs
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO: Before submitting an issue on GitHub, please follow the guide above and make
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO: sure your project is set up correctly.
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO: fastlane uses xcodebuild commands to generate your binary, you can see the
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO: the full commands printed out in yellow in the above log.
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO: Make sure to inspect the output above, as usually you’ll find more error information there
[2024-05-09T17:34:45.805Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.806Z] - 7.4.3.2.7.4 - INFO: ±-----------------------------+
[2024-05-09T17:34:45.806Z] - 7.4.3.2.7.4 - INFO: | Lane Context |
[2024-05-09T17:34:45.806Z] - 7.4.3.2.7.4 - INFO: ±-----------------±----------+
[2024-05-09T17:34:45.806Z] - 7.4.3.2.7.4 - INFO: | DEFAULT_PLATFORM | ios |
[2024-05-09T17:34:45.806Z] - 7.4.3.2.7.4 - INFO: | PLATFORM_NAME | ios |
[2024-05-09T17:34:45.806Z] - 7.4.3.2.7.4 - INFO: | LANE_NAME | ios build |
[2024-05-09T17:34:45.806Z] - 7.4.3.2.7.4 - INFO: ±-----------------±----------+
[2024-05-09T17:34:45.806Z] - 7.4.3.2.7.4 - INFO: Error building the application - see the log above
[2024-05-09T17:34:45.812Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: ±-----------------------------------------------------------------------------------+
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: | fastlane summary |
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: ±-----±--------------------------------------------------------------±------------+
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: | Step | Action | Time (in s) |
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: ±-----±--------------------------------------------------------------±------------+
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: | 1 | Verifying fastlane version | 0 |
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: | 2 | default_platform | 0 |
[!] Error building the application - see the log above
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: | 3 | set_info_plist_value | 0 |
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: | 4 | update_project_provisioning | 0 |
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: | 5 | sed -i ‘’ '/PROVISIONING_PROFILE_SPECIFIER/d;/DEVELOPMENT_TEA | 0 |
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: | | gym | 307 |
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: ±-----±--------------------------------------------------------------±------------+
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO:
[2024-05-09T17:34:45.813Z] - 7.4.3.2.7.4 - INFO: fastlane finished with errors
[error] [2024-05-09T17:34:45.825Z] - 7.4.3.2.7.4 - ERROR: xcode build failed

update: i rolled back the unity ads (advertisement legacy) code, and its building again. whomp whomp. ive been reading through ironsource documents for awhile and they make even less sense.

The biggest issue we see with iOS builds is the mismatch between dependency versions and xcode versions. It is really important to pin the dependency to a specific version and then do those upgrades in stand-alone commits with as little code changes as possible to make the upgrade work. That way you can test to see if dependency upgrades are breaking things.

We typically see this as people move up in XCode versions. The reason you see the “multiple versions of XCode” is because there are multiple versions installed on the build machines but we only use the one configured in the target configuration.