BitRise can build my iOS target but not my Catalyst target (while it works on my local machine).
Description of the issue
It seems like Bitrise is trying to run my Catalyst target under an iOS environment because the Bitrise report says that the build fails at setting the right Catalyst flag.
According to the workflow output, this is the code that crashes the build:
#if !targetEnvironment(macCatalyst)
import FirebaseAnalytics
#endif
This code should be ignored in a macCatalyst environment (as it is the case on my local machine).
Environment:
Stack Xcode 11.15
Using Xcode Archive & Export 2.8.2
Build log
Here is the link: https://app.bitrise.io/build/be0d9584f3e3ca95
โ /Users/vagrant/git/NonoLogix/zSources/Events+CoreGameplay.swift:11:12: no such module 'FirebaseAnalytics'
import FirebaseAnalytics
^
Last lines of the Xcode's build log:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Nono4 Dev Mac' from project 'NonoLogix')
cd /Users/vagrant/git
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name Nono4_Dev_Mac -O -whole-module-optimization -enforce-exclusivity=checked @/Users/vagrant/Library/Developer/Xcode/DerivedData/NonoLogix-fhyyddevwdchqrghjdwgmdfmurqe/Build/Intermediates.noindex/ArchiveIntermediates/Nono4\ Dev\ Mac/IntermediateBuildFilesPath/NonoLogix.build/Release-iphoneos/Nono4\ Dev\ Mac.build/Objects-normal/arm64/Nono4\ Dev\ Mac.SwiftFileList -DRELEASE -DDEV_ENV -Xcc -fmodule-map-file=/Users/vagrant/Library/Developer/Xcode/DerivedData/NonoLogix-fhyyddevwdchqrghjdwgmdfmurqe/Build/Intermediates.noindex/ArchiveIntermediates/Nono4\ Dev\ Mac/...
CompileSwift normal arm64 (in target 'Nono4 Dev Mac' from project 'NonoLogix')
cd /Users/vagrant/git
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -filelist /var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/sources-00bd83 -supplementary-output-file-map /var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/supplementaryOutputs-24c395 -target arm64-apple-ios11.2 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk -I /Users/vagrant/Library/Developer/Xcode/DerivedData/NonoLogix-fhyyddevwdchqrghjdwgmdfmurqe/Build/Intermediates.noindex/ArchiveIntermediates/Nono4\ Dev\ Mac/BuildProductsPath/Release-iphoneos -F /Users/vagrant/...
/Users/vagrant/git/NonoLogix/zSources/Events+CoreGameplay.swift:11:12: error: no such module 'FirebaseAnalytics'
import FirebaseAnalytics
^
** ARCHIVE FAILED **