iOS Cloud Build failing with Unity 2022.2

478: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftCoreFoundation'
479: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftCompatibility50'
480: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftObjectiveC'
481: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftCompatibility51'
482: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftFoundation'
483: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftCoreGraphics'
484: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftQuartzCore'
485: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftCore'
486: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swift_Concurrency'
487: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftDispatch'
488: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftDarwin'
489: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftUIKit'
490: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftFileProvider'
491: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftCoreImage'
492: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
493: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftMetal'
494: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftCompatibilityConcurrency'
495: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked library 'swiftDataDetection'
496: [2022-12-10T04:33:36.375Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked framework 'UnityMediationInstantiationService'
497: [2022-12-10T04:33:36.376Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked framework 'UnityMediationS2SService'
498: [2022-12-10T04:33:36.376Z] - 7.2.3.2.4.2 - INFO: ⚠;️  ld: Could not find or use auto-linked framework 'UnityMediationTrackingService'
499: [2022-12-10T04:33:36.376Z] - 7.2.3.2.4.2 - INFO: ❌;  ld: symbol(s) not found for architecture arm64
500: [2022-12-10T04:33:36.376Z] - 7.2.3.2.4.2 - INFO: ❌;  clang: error: linker command failed with exit code 1 (use -v to see invocation)
501: [2022-12-10T04:33:36.392Z] - 7.2.3.2.4.2 - INFO: ▸       function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed, Arg[2] = Dead> of UnityAds.UnityAdsWebViewNetwork.RequestError.init(error: Swift.Error, dictionary: [Swift.String : Any]) -> UnityAds.UnityAdsWebViewNetwork.RequestError in UnityAds(UnityAds-arm64-master.o)
502: [2022-12-10T04:33:36.392Z] - 7.2.3.2.4.2 - INFO: ▸       function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed, Arg[3] = Dead> of UnityAds.UnityAdsWebViewNetwork.RequestError.init(error: Swift.Error, requestID: Swift.String, requestURL: Swift.String) -> UnityAds.UnityAdsWebViewNetwork.RequestError in UnityAds(UnityAds-arm64-master.o)
503: [2022-12-10T04:33:36.392Z] - 7.2.3.2.4.2 - INFO: ▸ clang: error: linker command failed with exit code 1 (use -v to see invocation)
504: [2022-12-10T04:33:36.493Z] - 7.2.3.2.4.2 - ERROR: xcode build failed
505:   RuntimeError (Build Failure):
506: Finished: FAILURE

My iOS builds are failing, I’m new to Cloud Build so I’m not too sure where to begin trying to resolve this. Any ideas?

Hello,

This error is usually related to Xcode version or Cocoapods version. Please make sure what versions of Xcode/Cocoapods you’re using in local and Cloud Build.

In cloud build I have it set to use latest compatible version.

Unity 2022.2.0f1
Xcode 13.2.1

I’d recommend directly selecting the xcode version in your target config.