Doesn't build for Mac Catalyst

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

This code should be ignored in a macCatalyst environment (as it is the case on my local machine).


Stack Xcode 11.15
Using Xcode Archive & Export 2.8.2

Build log

Here is the link:

❌  /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 (in target 'Nono4 Dev Mac' from project 'NonoLogix')
    cd /Users/vagrant/git
    export DEVELOPER_DIR=/Applications/
    export SDKROOT=/Applications/
    /Applications/ -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/\ Dev\\ 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/ -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/ -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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.