Xcode cloud: xcode build archive error

Hello!

I'm trying to build my flutter app through xcode cloud, but im getting following error:

Command exited with non-zero exit-code: 65

Run command: 'xcodebuild archive -workspace /Volumes/workspace/repository/ios/Runner.xcworkspace -scheme Runner -destination generic/platform=iOS -archivePath /Volumes/workspace/build.xcarchive -derivedDataPath /Volumes/workspace/DerivedData -resultBundleVersion 3 -resultBundlePath /Volumes/workspace/resultbundle.xcresult -resultStreamPath /Volumes/workspace/tmp/resultBundleStream97053cd8-9db9-41c6-9dc8-a9fc142bacb6.json -IDEPostProgressNotifications=YES CODE_SIGN_IDENTITY=- AD_HOC_CODE_SIGNING_ALLOWED=YES CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM={development_team_here} COMPILER_INDEX_STORE_ENABLE=NO -hideShellScriptEnvironment'

When i build locally, it works fine, tried both debug/release modes, but in the cloud archive fails.

Also have following message in xcode cloud:

`'Flutter/Flutter.h' file not found

GeneratedPluginRegistrant.h:10`

failed to emit precompiled header '/Volumes/workspace/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Runner/PrecompiledHeaders/Runner-Bridging-Header-swift_2QGFV1FVTQX2Z-clang_IX5TH88559CY.pch' for bridging header '/Volumes/workspace/repository/ios/Runner/Runner-Bridging-Header.h'

@dinero

For more information, see Making dependencies available to Xcode Cloud. If you require further assistance, please reach out to the support channel of Flutter.

Xcode cloud: xcode build archive error
 
 
Q