ios Build failed: Fastlane build failed with unknown error.

Build failed: Fastlane build failed with unknown error. See logs for the “Run fastlane” and “Xcode Logs” phases for more information.

if any one had this error before please let men know i am stuck in this for 2 days

Same issue

the issue still persists
here is my error log

Creating Gymfile

Gymfile created

Successfully loaded '/Users/expo/workingdir/build/ios/Gymfile' 📄

+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+

|                                                                  Detected Values from './Gymfile'                                                                   |

+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+

| suppress_xcode_output | true                                                                                                                                        |

| clean                 | false                                                                                                                                       |

| scheme                | iTrivia                                                                                                                                     |

| configuration         | Release                                                                                                                                     |

| export_options        |                                                                                                                                             |

| export_xcargs         | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/h2/gp9wlkv11lg0qj6y2mnqgc_40000gn/T/turtle-v2-ac1a0bc7-966f-4f0e-9063-a6509b3222a9.keychain" |

| disable_xcpretty      | true                                                                                                                                        |

| buildlog_path         | /Users/expo/workingdir/logs                                                                                                                 |

| output_directory      | ./build                                                                                                                                     |

+-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------+

Resolving Swift Package Manager dependencies...

$ xcodebuild -resolvePackageDependencies -workspace ./iTrivia.xcworkspace -scheme iTrivia -configuration Release

▸ 2023-03-12 12:49:43.321 xcodebuild[4085:11498] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

▸ 2023-03-12 12:49:43.321 xcodebuild[4085:11498] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

▸ 2023-03-12 12:49:43.385 xcodebuild[4085:11498] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}

▸ 2023-03-12 12:49:43.385 xcodebuild[4085:11498] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts

▸ 2023-03-12 12:49:43.385 xcodebuild[4085:11498] XType: unable to make a connection to the font daemon!

▸ 2023-03-12 12:49:43.385 xcodebuild[4085:11498] XType: XTFontStaticRegistry is enabled as fontd is not available.

▸ Command line invocation:

▸     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace ./iTrivia.xcworkspace -scheme iTrivia -configuration Release

▸ User defaults from command line:

▸     IDEPackageSupportUseBuiltinSCM = YES

▸ --- xcodebuild: WARNING: Using the first of multiple matching destinations:

▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }

▸ { platform:iOS Simulator, id:F6898BCF-1F9B-4017-8C00-C42FB52DC78B, OS:15.5, name:iPad (9th generation) }

▸ { platform:iOS Simulator, id:8A99E458-9DF5-45FD-90B9-AE3E8D45FA33, OS:15.5, name:iPad Air (5th generation) }

▸ { platform:iOS Simulator, id:A9D00E67-59F6-498B-9487-E6CB0CFACD0C, OS:15.5, name:iPad Pro (9.7-inch) }

▸ { platform:iOS Simulator, id:DB619EE2-A7AB-4B01-8E7F-C3FD0489483E, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }

▸ { platform:iOS Simulator, id:F86ECD5C-8048-4456-A2EE-A5092F5099F4, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }

▸ { platform:iOS Simulator, id:D38333AD-1820-41A9-9179-7BA12C6A00F9, OS:15.5, name:iPad mini (6th generation) }

▸ { platform:iOS Simulator, id:B575F055-31BB-4681-A541-93C73D3E05F7, OS:15.5, name:iPhone 8 }

▸ { platform:iOS Simulator, id:E65EE165-322D-430E-8955-428C34DC9E07, OS:15.5, name:iPhone 8 Plus }

▸ { platform:iOS Simulator, id:EAFFB577-ED7C-4B60-A91D-20CF70EBFBA0, OS:15.5, name:iPhone 11 }

▸ { platform:iOS Simulator, id:F6667EA1-F6F7-4304-B9D2-495992F0BC20, OS:15.5, name:iPhone 11 Pro }

▸ { platform:iOS Simulator, id:F0CA4CF6-38BA-4D2E-AFBC-22EE1526754A, OS:15.5, name:iPhone 11 Pro Max }

▸ { platform:iOS Simulator, id:4A1C0E71-0C96-40AD-A725-C6A370AF1D93, OS:15.5, name:iPhone 12 }

▸ { platform:iOS Simulator, id:A5DACA53-368C-4AA9-B649-B1D379696C68, OS:15.5, name:iPhone 12 Pro }

▸ { platform:iOS Simulator, id:1C40B471-BD95-4AD2-8E02-A4487E25EF3B, OS:15.5, name:iPhone 12 Pro Max }

▸ { platform:iOS Simulator, id:4814B63C-8DE9-44CC-A80D-8D60D42C655A, OS:15.5, name:iPhone 12 mini }

▸ { platform:iOS Simulator, id:8E2EB5DD-C321-4695-B728-F6A27FAF7D67, OS:15.5, name:iPhone 13 }

▸ { platform:iOS Simulator, id:4E56612B-11ED-49F2-B5EF-6E4602B0FB79, OS:15.5, name:iPhone 13 Pro }

▸ { platform:iOS Simulator, id:E5FAE80A-C4BD-4BFE-A831-2F7049886894, OS:15.5, name:iPhone 13 Pro Max }

▸ { platform:iOS Simulator, id:E4D323B3-630D-4D28-A329-6870D721E3B2, OS:15.5, name:iPhone 13 mini }

▸ { platform:iOS Simulator, id:DB03CB85-009E-4017-8EBE-14EC01AE8FD2, OS:15.5, name:iPhone SE (3rd generation) }

▸ { platform:iOS Simulator, id:A147CC3C-E896-4D76-9012-878356117872, OS:15.5, name:iPod touch (7th generation) }

▸ resolved source packages:

$ xcodebuild -showBuildSettings -workspace ./iTrivia.xcworkspace -scheme iTrivia -configuration Release

[stderr] 
2023-03-12 12:49:47.467 xcodebuild[4095:11622] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

[stderr] 
2023-03-12 12:49:47.468 xcodebuild[4095:11622] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

[stderr] 
2023-03-12 12:49:47.526 xcodebuild[4095:11622] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}

[stderr] 
2023-03-12 12:49:47.526 xcodebuild[4095:11622] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts

[stderr] 
2023-03-12 12:49:47.526 xcodebuild[4095:11622] XType: unable to make a connection to the font daemon!

[stderr] 
2023-03-12 12:49:47.526 xcodebuild[4095:11622] XType: XTFontStaticRegistry is enabled as fontd is not available.

[stderr] 
--- xcodebuild: WARNING: Using the first of multiple matching destinations:

[stderr] 
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

[stderr] 
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }

[stderr] 
{ platform:iOS Simulator, id:F6898BCF-1F9B-4017-8C00-C42FB52DC78B, OS:15.5, name:iPad (9th generation) }

[stderr] 
{ platform:iOS Simulator, id:8A99E458-9DF5-45FD-90B9-AE3E8D45FA33, OS:15.5, name:iPad Air (5th generation) }

[stderr] 
{ platform:iOS Simulator, id:A9D00E67-59F6-498B-9487-E6CB0CFACD0C, OS:15.5, name:iPad Pro (9.7-inch) }

[stderr] 
{ platform:iOS Simulator, id:DB619EE2-A7AB-4B01-8E7F-C3FD0489483E, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }

[stderr] 
{ platform:iOS Simulator, id:F86ECD5C-8048-4456-A2EE-A5092F5099F4, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }

[stderr] 
{ platform:iOS Simulator, id:D38333AD-1820-41A9-9179-7BA12C6A00F9, OS:15.5, name:iPad mini (6th generation) }

[stderr] 
{ platform:iOS Simulator, id:B575F055-31BB-4681-A541-93C73D3E05F7, OS:15.5, name:iPhone 8 }

[stderr] 
{ platform:iOS Simulator, id:E65EE165-322D-430E-8955-428C34DC9E07, OS:15.5, name:iPhone 8 Plus }

[stderr] 
{ platform:iOS Simulator, id:EAFFB577-ED7C-4B60-A91D-20CF70EBFBA0, OS:15.5, name:iPhone 11 }

[stderr] 
{ platform:iOS Simulator, id:F6667EA1-F6F7-4304-B9D2-495992F0BC20, OS:15.5, name:iPhone 11 Pro }

[stderr] 
{ platform:iOS Simulator, id:F0CA4CF6-38BA-4D2E-AFBC-22EE1526754A, OS:15.5, name:iPhone 11 Pro Max }

[stderr] 
{ platform:iOS Simulator, id:4A1C0E71-0C96-40AD-A725-C6A370AF1D93, OS:15.5, name:iPhone 12 }

[stderr] 
{ platform:iOS Simulator, id:A5DACA53-368C-4AA9-B649-B1D379696C68, OS:15.5, name:iPhone 12 Pro }

[stderr] 
{ platform:iOS Simulator, id:1C40B471-BD95-4AD2-8E02-A4487E25EF3B, OS:15.5, name:iPhone 12 Pro Max }

[stderr] 
{ platform:iOS Simulator, id:4814B63C-8DE9-44CC-A80D-8D60D42C655A, OS:15.5, name:iPhone 12 mini }

[stderr] 
{ platform:iOS Simulator, id:8E2EB5DD-C321-4695-B728-F6A27FAF7D67, OS:15.5, name:iPhone 13 }

[stderr] 
{ platform:iOS Simulator, id:4E56612B-11ED-49F2-B5EF-6E4602B0FB79, OS:15.5, name:iPhone 13 Pro }

[stderr] 
{ platform:iOS Simulator, id:E5FAE80A-C4BD-4BFE-A831-2F7049886894, OS:15.5, name:iPhone 13 Pro Max }

[stderr] 
{ platform:iOS Simulator, id:E4D323B3-630D-4D28-A329-6870D721E3B2, OS:15.5, name:iPhone 13 mini }

[stderr] 
{ platform:iOS Simulator, id:DB03CB85-009E-4017-8EBE-14EC01AE8FD2, OS:15.5, name:iPhone SE (3rd generation) }

[stderr] 
{ platform:iOS Simulator, id:A147CC3C-E896-4D76-9012-878356117872, OS:15.5, name:iPod touch (7th generation) }

Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...

[stderr] 
2023-03-12 12:49:50.474 xcodebuild[4115:11742] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

[stderr] 
2023-03-12 12:49:50.474 xcodebuild[4115:11742] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

[stderr] 
2023-03-12 12:49:50.526 xcodebuild[4115:11742] XType: failed to connect - Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.fonts was invalidated: failed at lookup with error 3 - No such process.}

[stderr] 
2023-03-12 12:49:50.526 xcodebuild[4115:11742] Font server protocol version mismatch (expected:5 got:0), falling back to local fonts

[stderr] 
2023-03-12 12:49:50.526 xcodebuild[4115:11742] XType: unable to make a connection to the font daemon!

[stderr] 
2023-03-12 12:49:50.526 xcodebuild[4115:11742] XType: XTFontStaticRegistry is enabled as fontd is not available.

[stderr] 
--- xcodebuild: WARNING: Using the first of multiple matching destinations:

[stderr] 
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

[stderr] 
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }

[stderr] 
{ platform:iOS Simulator, id:F6898BCF-1F9B-4017-8C00-C42FB52DC78B, OS:15.5, name:iPad (9th generation) }

[stderr] 
{ platform:iOS Simulator, id:8A99E458-9DF5-45FD-90B9-AE3E8D45FA33, OS:15.5, name:iPad Air (5th generation) }

[stderr] 
{ platform:iOS Simulator, id:A9D00E67-59F6-498B-9487-E6CB0CFACD0C, OS:15.5, name:iPad Pro (9.7-inch) }

[stderr] 
{ platform:iOS Simulator, id:DB619EE2-A7AB-4B01-8E7F-C3FD0489483E, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }

[stderr] 
{ platform:iOS Simulator, id:F86ECD5C-8048-4456-A2EE-A5092F5099F4, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }

[stderr] 
{ platform:iOS Simulator, id:D38333AD-1820-41A9-9179-7BA12C6A00F9, OS:15.5, name:iPad mini (6th generation) }

[stderr] 
{ platform:iOS Simulator, id:B575F055-31BB-4681-A541-93C73D3E05F7, OS:15.5, name:iPhone 8 }

[stderr] 
{ platform:iOS Simulator, id:E65EE165-322D-430E-8955-428C34DC9E07, OS:15.5, name:iPhone 8 Plus }

[stderr] 
{ platform:iOS Simulator, id:EAFFB577-ED7C-4B60-A91D-20CF70EBFBA0, OS:15.5, name:iPhone 11 }

[stderr] 
{ platform:iOS Simulator, id:F6667EA1-F6F7-4304-B9D2-495992F0BC20, OS:15.5, name:iPhone 11 Pro }

[stderr] 
{ platform:iOS Simulator, id:F0CA4CF6-38BA-4D2E-AFBC-22EE1526754A, OS:15.5, name:iPhone 11 Pro Max }

[stderr] 
{ platform:iOS Simulator, id:4A1C0E71-0C96-40AD-A725-C6A370AF1D93, OS:15.5, name:iPhone 12 }

[stderr] 
{ platform:iOS Simulator, id:A5DACA53-368C-4AA9-B649-B1D379696C68, OS:15.5, name:iPhone 12 Pro }

[stderr] 
{ platform:iOS Simulator, id:1C40B471-BD95-4AD2-8E02-A4487E25EF3B, OS:15.5, name:iPhone 12 Pro Max }

[stderr] 
{ platform:iOS Simulator, id:4814B63C-8DE9-44CC-A80D-8D60D42C655A, OS:15.5, name:iPhone 12 mini }

[stderr] 
{ platform:iOS Simulator, id:8E2EB5DD-C321-4695-B728-F6A27FAF7D67, OS:15.5, name:iPhone 13 }

[stderr] 
{ platform:iOS Simulator, id:4E56612B-11ED-49F2-B5EF-6E4602B0FB79, OS:15.5, name:iPhone 13 Pro }

[stderr] 
{ platform:iOS Simulator, id:E5FAE80A-C4BD-4BFE-A831-2F7049886894, OS:15.5, name:iPhone 13 Pro Max }

[stderr] 
{ platform:iOS Simulator, id:E4D323B3-630D-4D28-A329-6870D721E3B2, OS:15.5, name:iPhone 13 mini }

[stderr] 
{ platform:iOS Simulator, id:DB03CB85-009E-4017-8EBE-14EC01AE8FD2, OS:15.5, name:iPhone SE (3rd generation) }

[stderr] 
{ platform:iOS Simulator, id:A147CC3C-E896-4D76-9012-878356117872, OS:15.5, name:iPod touch (7th generation) }

Detected provisioning profile mapping: {:"com.itrivia.play"=>"5008e3e1-673f-4fa3-8683-ff7d593835b0"}

Please post a link to a failed builld in case one of the Expo team members can have a look.

Also, post relevant errors from the logs so that people who are not Expo team members (who cannot see your build logs) might still be able to help. You might need to download the Xcode logs at the bottom, since those are not displayed directly on the page like the other sections are.

Also see the “Troubleshooting build errors and crashes” page in the Expo docs.