Fastlane Build Fails

Details:

  • managed workflow
  • eas-cli version 0.42.4

I am moving to eas from managed workflow, Build works in eas Android and also using expo build:ios, but eas iOS build is failing in the Fastlane step.

I have tried to research the problem with logs provided but have not been successful in finding the cause.

These are the only logs that seem to be relevant (all from the fastlane step):

$ xcodebuild -showBuildSettings -workspace ./Kharty.xcworkspace -scheme Kharty -configuration Debug
50[stderr] --- xcodebuild: WARNING: Using the first of multiple matching destinations:
51[stderr] { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

[…]

⚠️  No such file or directory: /var/folders/6y/gy9gggt14379c_k39vwb50lc0000gn/C/org.llvm.clang.distiller/ModuleCache/OEL3R4BB85DS/FBSDKLoginKit-ROJFAQUX0UXS.pcm

⚠️  No such file or directory: /var/folders/6y/gy9gggt14379c_k39vwb50lc0000gn/C/org.llvm.clang.distiller/ModuleCache/OEL3R4BB85DS/UIKit-7ENARD7F75QG.pcm
⚠️  No such file or directory: /var/folders/6y/gy9gggt14379c_k39vwb50lc0000gn/C/org.llvm.clang.distiller/ModuleCache/OEL3R4BB85DS/Foundation-3ESNQVWWD07IL.pcm
⚠️  No such file or directory: /var/folders/6y/gy9gggt14379c_k39vwb50lc0000gn/C/org.llvm.clang.distiller/ModuleCache/OEL3R4BB85DS/SwiftShims-3E5PYOC7W29IN.pcm
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/Kharty-cxfaxpdxkxswkbhjwdqpshdopufi/Build/Intermediates.noindex/ArchiveIntermediates/Kharty/IntermediateBuildFilesPath/Kharty.build/Debug-iphoneos/Kharty.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'Kharty' from project 'Kharty')
▸ (1 failure)
** ARCHIVE FAILED **

The following build commands failed:
	PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/Kharty-cxfaxpdxkxswkbhjwdqpshdopufi/Build/Intermediates.noindex/ArchiveIntermediates/Kharty/IntermediateBuildFilesPath/Kharty.build/Debug-iphoneos/Kharty.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'Kharty' from project 'Kharty')

(1 failure)
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.185.1                 |
| sdk         | iPhoneOS15.0.sdk        |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[!] Error building the application - see the log above
\Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.