Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty docs in Xcode 11 (despite latest sourcekitten) #643

Closed
AliSoftware opened this issue Jan 22, 2020 · 8 comments · Fixed by #646
Closed

Empty docs in Xcode 11 (despite latest sourcekitten) #643

AliSoftware opened this issue Jan 22, 2020 · 8 comments · Fixed by #646

Comments

@AliSoftware
Copy link

AliSoftware commented Jan 22, 2020

Hello,

We are using sourcekitten 0.29.0, but we encounter the same issue that the one described in realm/jazzy#1108 … despite that issue supposedly being fixed by #618 and the fix being shipped in 0.26.0

Side note: we're invoking sourcekitten independently (because we want to merge multiple projects docs in a single docset, so we invoke sourcekitten ourselves on the various projects, and only then use jazzy --sourcekitten-sourcefile docs.json …; which is also why I posted here and not in jazzy repo)

Not sure if we're holding it wrong, or if the issue was just not entirely fixed by #618 in the first place at we hoped…
Any idea @jpsim @johnfairh ?

$ sourcekitten version
0.29.0
$ xcodebuild -version
Xcode 11.1
Build version 11A1027

Empty docs with Xcode 11, despite using sourcekitten 0.29 which is supposed to have that fix:

$ rm -rf /tmp/sdkdoc && mkdir /tmp/sdkdoc && sourcekitten doc --module-name BabylonSDK -- -workspace ../Babylon.xcworkspace -scheme BabylonSDK -derivedDataPath /tmp/sdkdoc
Running xcodebuild
Checking xcodebuild -showBuildSettings
Assuming New Build System is used.
[]

Fix to pass USE_SWIFT_RESPONSE_FILE=NO suggested in realm/jazzy#1108 works (but feels like a workaround, especially now that this is supposed to be fixed since 0.26):

$ rm -rf /tmp/sdkdoc && mkdir /tmp/sdkdoc && sourcekitten doc --module-name BabylonSDK -- USE_SWIFT_RESPONSE_FILE=NO -workspace ../Babylon.xcworkspace -scheme BabylonSDK -derivedDataPath /tmp/sdkdoc
Running xcodebuild
Checking xcodebuild -showBuildSettings
Assuming New Build System is used.
Parsing AppointmentBusinessController.swift (1/272)
Parsing AppointmentArchives.swift (2/272)
Parsing AppointmentCancellationReason.swift (3/272)
^C

Using Xcode 10.3 (via DEVELOPER_DIR=…) works like it used to, even without the USE_SWIFT_RESPONSE_FILE=NO workaround. So issue is only present since we migrated to Xcode 11:

$ rm -rf /tmp/sdkdoc && mkdir /tmp/sdkdoc && DEVELOPER_DIR=/Applications/Xcode-10.3.app sourcekitten doc --module-name BabylonSDK -- -workspace ../Babylon.xcworkspace -scheme BabylonSDK -derivedDataPath /tmp/sdkdoc
Running xcodebuild
Checking xcodebuild -showBuildSettings
Assuming New Build System is used.
Parsing AppointmentBusinessController.swift (1/272)
Parsing AppointmentArchives.swift (2/272)
Parsing AppointmentCancellationReason.swift (3/272)
^C
@johnfairh
Copy link
Collaborator

It doesn't look like you're doing anything particularly unusual.

It is odd that every time, sourcekitten goes down the "Checking xcodebuild -showBuildSettings" path: this means that it thinks the regular 'xcodebuild ' did not build your module and so it goes digging around for a build record. I don't understand this because you're explicitly cleaning the build directory, so there's no reason for the regular command to not build the module.

I guess you cannot share the project; if you can spare time to debug then these are the commands sourcekitten looks to be running:

(1) xcodebuild -workspace ../Babylon.xcworkspace -scheme BabylonSDK -derivedDataPath /tmp/sdkdoc -showBuildSettings -json

This is for use later but does seem to create the temp directory.

(2) xcodebuild -workspace ../Babylon.xcworkspace -scheme BabylonSDK -derivedDataPath /tmp/sdkdoc

...this is the one in whose output it can't find a swiftc command with -module-name BabylonSDK, which I don't understand: why wouldn't it be built given -derivedDataPath is clean?

Now grab PROJECT_TEMP_ROOT from (1). This is /tmp/sdkdoc/Build/Intermediates.noindex in my experiment but maybe somehow it's different in your setup?

Now look at ${PROJECT_TEMP_ROOT}/XCBuildData/*-manifest.xcbuild in order of increasing size [aside: I can't justify this logic - should start with most recent surely?], looking for a command with description ending com.apple.xcode.tools.swift.compiler and args including "-module-name","BabylonSDK".

We'll use these args to drive SourceKit -- the list will include a response file (like "@/tmp/sdkdoc/Build/Intermediates.noindex/BabylonSDK.build/Debug/BabylonSDK.build/Objects-normal/x86_64/BabylonSDK.SwiftFileList"

Your data suggest that, in the failure case, sourcekitten is successfully finding this args list but then either (a) finding no .swift files and no @-whatever response file, or (b) messing up parsing the response file somehow, resulting in no .swift files.

This kind of problem has been caused in the past by bad handling of non-basic characters in pathnames/module names/etc, so if there's anything like that in your system it would be worth noting. I am moderately confident that we've sorted out spaces/regular shell-escapes though.

@AliSoftware
Copy link
Author

AliSoftware commented Jan 22, 2020

@johnfairh Thanks for the quick reply.

Is there an easy way to run sourcekitten in verbose mode, so that it prints the invocation and arguments to xcodebuild?

I just realised that while using Cmd-B in Xcode (on the same project and same scheme as provided to sourcekitten) compiles without error, invoking xcodebuild from the command fails to compile, so maybe I should pass additional arguments to sourcekitten after the -- that Xcode passes but I didn't duplicate in the command line invocation… though trying the same xcodebuild command with DEVELOPER_DIR=/Applications/Xcode-10.3.app also fails to compile too (while the same invocation of sourcekitten with Xcode 10.3 worked), so not that sure that it's just a missing parameter in my CLI invocation after all… Will keep digging

(invocation with -showBuildSettings works, it's just the invocation without it to compile the scheme that fails from CLI)

@johnfairh
Copy link
Collaborator

sourcekitten in verbose mode

I was thinking this would be a good thing as i wrote the reply!

The rest of your comment explains my first confusion. Perhaps the build is failing in a way to correctly generate the build record but not the contents of the response file - explaining why Xcode 10 and RSP_FILE=NO work.

@AliSoftware
Copy link
Author

AliSoftware commented Jan 22, 2020

Ahah! I think I found the culprit, thanks to your steps:

  1. Ran rm -rf /tmp/sdkdoc && mkdir /tmp/sdkdoc && sourcekitten doc --module-name BabylonSDK -- -workspace Babylon.xcworkspace -scheme BabylonSDK -derivedDataPath /tmp/sdkdoc
  2. Checked -showBuildSettings, found the PROJECT_TEMP_ROOT, then found the *-manifest.xcbuild file, opened it in my text editor
  3. Searched for "-module-name","BabylonSDK", and found this entry:
"args":["/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc","-incremental","-module-name","BabylonSDK","-Onone","-enable-batch-mode","-enforce-exclusivity=checked","@/tmp/sdkdoc/Build/Intermediates.noindex/BabylonSDK.build/Debug-maccatalyst/BabylonSDK.build/Objects-normal/x86_64/BabylonSDK.SwiftFileList"
  1. Opened the /tmp/sdkdoc/Build/Intermediates.noindex/BabylonSDK.build/Debug-maccatalyst/BabylonSDK.build/Objects-normal/x86_64/BabylonSDK.SwiftFileList file, and it's totally empty

But that Debug-maccatalyst in the path made me 🤔 … So I tried adding -sdk iphonesimulator to the CLI invocation… and it seems that fixed it!

$ rm -rf /tmp/sdkdoc && mkdir /tmp/sdkdoc && sourcekitten doc --module-name BabylonSDK -- -workspace Babylon.xcworkspace -scheme BabylonSDK -sdk iphonesimulator -derivedDataPath /tmp/sdkdoc                           ‹ruby-2.6.4›
Running xcodebuild
Parsing AppointmentBusinessController.swift (1/272)
^C

So it was trying to build for Catalyst instead of iOS after all 🤦‍♂

A verbose mode, or at least even printing the xcodebuild error message to stdout when it fails, would have helped a lot

@AliSoftware
Copy link
Author

Not sure what's the relationship between "using USE_SWIFT_RESPONSE_FILE=NO fixes it" and "it was building for Mac Catalyst" though. I mean, if our original problem for our project was that it was building our scheme for Mac Catalyst by default when invoked from CLI, then what does the use of SwiftFileLists or not has to do with the issue?

How come adding USE_SWIFT_RESPONSE_FILE=NO but still not adding -sdk iphonesimulator fixed the issue in the first place (since in that case I'd suppose that xcodebuild would not use filelists but instead hardcoded the list of files in the args… but would still try to build for MacCatalyst instead of iPhone Simulator, right?)

I mean, the issue is solved for our case and project, adding -sdk iphonesimulator fixed it, so I could close the issue… but it's still not entirely reassuring how USE_SWIFT_RESPONSE_FILE=NO fixed it if the issue was related to the wrong -sdk being used by default by CLI… so I think there's still something to investigate here. Wdyt @johnfairh ? Should we keep that issue open still and investigate deeper?

@johnfairh
Copy link
Collaborator

That's great.

Remember that sourcekitten's xcodebuild command is always failing, and it falls back to the build manifest to get filelist/flags for SourceKit. It never does a successful xcodebuild (doesn't need to).

So, it looks like the xcodebuild that failed generates the build manifest correctly, but not the response file. So when you turned off the response file feature, the manifest contained all the filenames allowing sourcekitten to proceed.

What was the error from xcodebuild when it failed? I'm a bit suspicious of sourcekitten ploughing on regardless when xcodebuild outright fails -- presumably with non-zero exit status. I think it would be better to stop immediately and complain that xcodebuild isn't working, surely the user isn't expecting that & as seen here, it makes it super-hard to figure out what is wrong.

@AliSoftware
Copy link
Author

AliSoftware commented Jan 22, 2020

What was the error from xcodebuild when it failed?

Here's the output of xcodebuild -workspace Babylon.xcworkspace -scheme BabylonSDK -derivedDataPath /tmp/sdkdoc:

It starts normally
User defaults from command line:
    IDEDerivedDataPathOverride = /tmp/sdkdoc

note: Using new build system
note: Planning build
note: Constructing build description
CreateBuildDirectory /tmp/sdkdoc/Build/Intermediates.noindex (in target 'Auth0' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    builtin-create-build-directory /tmp/sdkdoc/Build/Intermediates.noindex

CreateBuildDirectory /tmp/sdkdoc/Build/Products (in target 'Auth0' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    builtin-create-build-directory /tmp/sdkdoc/Build/Products

MkDir /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/ReactiveSwift.framework (in target 'ReactiveSwift' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    /bin/mkdir -p /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/ReactiveSwift.framework

SymLink /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/ReactiveSwift.framework/Modules Versions/Current/Modules (in target 'ReactiveSwift' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    /bin/ln -sfh Versions/Current/Modules /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/ReactiveSwift.framework/Modules

SymLink /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/ReactiveSwift.framework/ReactiveSwift Versions/Current/ReactiveSwift (in target 'ReactiveSwift' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    /bin/ln -sfh Versions/Current/ReactiveSwift /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/ReactiveSwift.framework/ReactiveSwift

SymLink /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/ReactiveSwift.framework/Resources Versions/Current/Resources (in target 'ReactiveSwift' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    /bin/ln -sfh Versions/Current/Resources /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/ReactiveSwift.framework/Resources

[snip] And a lot more SymLink and MkDir, omitted for brevity [/snip]

WriteAuxiliaryFile /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/all-product-headers.yaml (in target 'SimpleKeychain' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    write-file /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/all-product-headers.yaml

WriteAuxiliaryFile /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain.hmap (in target 'SimpleKeychain' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    write-file /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain.hmap

[snip] And a lot more WriteAuxiliaryFile on yaml/hmap/modulemap files, omitted for brevity [/snip]

ProcessInfoPlistFile /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess/KeychainAccess.framework/Versions/A/Resources/Info.plist /redacted-path-to-repo-on-disk/Pods/Target\ Support\ Files/KeychainAccess/KeychainAccess-Info.plist (in target 'KeychainAccess' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    builtin-infoPlistUtility /redacted-path-to-repo-on-disk/Pods/Target\ Support\ Files/KeychainAccess/KeychainAccess-Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -platform macosx -o /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess/KeychainAccess.framework/Versions/A/Resources/Info.plist

CpHeader /redacted-path-to-repo-on-disk/Pods/Target\ Support\ Files/KeychainAccess/KeychainAccess-umbrella.h /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess/KeychainAccess.framework/Versions/A/Headers/KeychainAccess-umbrella.h (in target 'KeychainAccess' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /redacted-path-to-repo-on-disk/Pods/Target\ Support\ Files/KeychainAccess/KeychainAccess-umbrella.h /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess/KeychainAccess.framework/Versions/A/Headers

[...]

Ditto /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/module.modulemap /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess/KeychainAccess.framework/Versions/A/Modules/module.modulemap (in target 'KeychainAccess' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/module.modulemap /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess/KeychainAccess.framework/Versions/A/Modules

[snip] And some more ProcessInfoPlistFile, CpHeader and Ditto, omitted for brevity [/snip]

Then we get to the CompileC invocations
CompileC /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain-dummy.o /redacted-path-to-repo-on-disk/Pods/Target\ Support\ Files/SimpleKeychain/SimpleKeychain-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'SimpleKeychain' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios13.0-macabi -fmessage-length=229 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path=/tmp/sdkdoc/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/tmp/sdkdoc/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=SimpleKeychain -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /tmp/sdkdoc/Index/DataStore -iquote /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-generated-files.hmap -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-own-target-headers.hmap -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-all-non-framework-target-headers.hmap -ivfsoverlay /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/all-product-headers.yaml -iquote /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-project-headers.hmap -I/tmp/sdkdoc/Build/Products/Debug-maccatalyst/SimpleKeychain/include -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/usr/include -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources-normal/x86_64 -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources/x86_64 -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources -F/tmp/sdkdoc/Build/Products/Debug-maccatalyst/SimpleKeychain -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/System/Library/Frameworks -include /redacted-path-to-repo-on-disk/Pods/Target\ Support\ Files/SimpleKeychain/SimpleKeychain-prefix.pch -MMD -MT dependencies -MF /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain-dummy.d --serialize-diagnostics /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain-dummy.dia -c /redacted-path-to-repo-on-disk/Pods/Target\ Support\ Files/SimpleKeychain/SimpleKeychain-dummy.m -o /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain-dummy.o

WriteAuxiliaryFile /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.LinkFileList (in target 'SimpleKeychain' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    write-file /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain.LinkFileList

CompileC /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/A0SimpleKeychain.o /redacted-path-to-repo-on-disk/Pods/SimpleKeychain/SimpleKeychain/A0SimpleKeychain.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'SimpleKeychain' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios13.0-macabi -fmessage-length=229 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -gmodules -fmodules-cache-path=/tmp/sdkdoc/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/tmp/sdkdoc/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=SimpleKeychain -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /tmp/sdkdoc/Index/DataStore -iquote /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-generated-files.hmap -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-own-target-headers.hmap -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-all-non-framework-target-headers.hmap -ivfsoverlay /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/all-product-headers.yaml -iquote /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-project-headers.hmap -I/tmp/sdkdoc/Build/Products/Debug-maccatalyst/SimpleKeychain/include -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/usr/include -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources-normal/x86_64 -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources/x86_64 -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources -F/tmp/sdkdoc/Build/Products/Debug-maccatalyst/SimpleKeychain -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/System/Library/Frameworks -w -Xanalyzer -analyzer-disable-all-checks -include /redacted-path-to-repo-on-disk/Pods/Target\ Support\ Files/SimpleKeychain/SimpleKeychain-prefix.pch -MMD -MT dependencies -MF /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/A0SimpleKeychain.d --serialize-diagnostics /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/A0SimpleKeychain.dia -c /redacted-path-to-repo-on-disk/Pods/SimpleKeychain/SimpleKeychain/A0SimpleKeychain.m -o /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/A0SimpleKeychain.o

[snip] Some other CompileC invocations that seem to succeed, omitted for brevity [/snip]

Then at some point we encounter some MacCatalyst errors on CompileSwiftSources
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'KeychainAccess' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name KeychainAccess -Onone -enable-batch-mode -enforce-exclusivity=checked @/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/KeychainAccess.SwiftFileList -DDEBUG -D COCOAPODS -suppress-warnings -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -target x86_64-apple-ios13.0-macabi -g -module-cache-path /tmp/sdkdoc/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /tmp/sdkdoc/Index/DataStore -swift-version 5 -I /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess -F /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess -Fsystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/System/Library/Frameworks -parse-as-library -c -j12 -output-file-map /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/KeychainAccess-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/KeychainAccess.swiftmodule -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/swift-overrides.hmap -Xcc -iquote -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/KeychainAccess-generated-files.hmap -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/KeychainAccess-own-target-headers.hmap -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/KeychainAccess-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/all-product-headers.yaml -Xcc -iquote -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/KeychainAccess-project-headers.hmap -Xcc -I/tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess/include -Xcc -isystem -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/usr/include -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/DerivedSources-normal/x86_64 -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/DerivedSources/x86_64 -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -emit-objc-header -emit-objc-header-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/KeychainAccess-Swift.h -import-underlying-module -Xcc -ivfsoverlay -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/unextended-module-overlay.yaml -working-directory /redacted-path-to-repo-on-disk/Pods
CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/KeychainAccess/Lib/KeychainAccess/Keychain.swift (in target 'KeychainAccess' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /redacted-path-to-repo-on-disk/Pods/KeychainAccess/Lib/KeychainAccess/Keychain.swift -emit-module-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/Keychain\~partial.swiftmodule -emit-module-doc-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/Keychain\~partial.swiftdoc -serialize-diagnostics-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/Keychain.dia -emit-dependencies-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/Keychain.d -emit-reference-dependencies-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/Keychain.swiftdeps -target x86_64-apple-ios13.0-macabi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess -F /tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess -Fsystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/System/Library/Frameworks -enable-testing -g -import-underlying-module -module-cache-path /tmp/sdkdoc/ModuleCache.noindex -suppress-warnings -swift-version 5 -enforce-exclusivity=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /redacted-path-to-repo-on-disk/Pods -enable-anonymous-context-mangled-names -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/swift-overrides.hmap -Xcc -iquote -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/KeychainAccess-generated-files.hmap -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/KeychainAccess-own-target-headers.hmap -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/KeychainAccess-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/all-product-headers.yaml -Xcc -iquote -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/KeychainAccess-project-headers.hmap -Xcc -I/tmp/sdkdoc/Build/Products/Debug-maccatalyst/KeychainAccess/include -Xcc -isystem -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/usr/include -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/DerivedSources-normal/x86_64 -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/DerivedSources/x86_64 -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -ivfsoverlay -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/unextended-module-overlay.yaml -parse-as-library -module-name KeychainAccess -o /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/KeychainAccess.build/Objects-normal/x86_64/Keychain.o -index-store-path /tmp/sdkdoc/Index/DataStore -index-system-modules
/redacted-path-to-repo-on-disk/Pods/KeychainAccess/Lib/KeychainAccess/Keychain.swift:1175:37: error: 'kSecSharedPassword' is unavailable in Mac Catalyst
private let SharedPassword = String(kSecSharedPassword)
                                    ^~~~~~~~~~~~~~~~~~
Security.kSecSharedPassword:3:12: note: 'kSecSharedPassword' has been explicitly marked unavailable here
public let kSecSharedPassword: CFString
           ^
/redacted-path-to-repo-on-disk/Pods/KeychainAccess/Lib/KeychainAccess/Keychain.swift:886:13: error: 'SecAddSharedWebCredential' is unavailable in Mac Catalyst
            SecAddSharedWebCredential(domain as CFString, account as CFString, password as CFString?) { error -> () in
            ^~~~~~~~~~~~~~~~~~~~~~~~~
Security.SecAddSharedWebCredential:3:13: note: 'SecAddSharedWebCredential' has been explicitly marked unavailable here
public func SecAddSharedWebCredential(_ fqdn: CFString, _ account: CFString, _ password: CFString?, _ completionHandler: @escaping (CFError?) -> Void)
            ^
/redacted-path-to-repo-on-disk/Pods/KeychainAccess/Lib/KeychainAccess/Keychain.swift:931:9: error: 'SecRequestSharedWebCredential' is unavailable in Mac Catalyst
        SecRequestSharedWebCredential(domain as CFString?, account as CFString?) { (credentials, error) -> () in
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Security.SecRequestSharedWebCredential:3:13: note: 'SecRequestSharedWebCredential' has been explicitly marked unavailable here
public func SecRequestSharedWebCredential(_ fqdn: CFString?, _ account: CFString?, _ completionHandler: @escaping (CFArray?, CFError?) -> Void)
            ^
/redacted-path-to-repo-on-disk/Pods/KeychainAccess/Lib/KeychainAccess/Keychain.swift:970:16: error: 'SecCreateSharedWebCredentialPassword()' is unavailable in Mac Catalyst
        return SecCreateSharedWebCredentialPassword()! as String
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Security.SecCreateSharedWebCredentialPassword:3:13: note: 'SecCreateSharedWebCredentialPassword()' has been explicitly marked unavailable here
public func SecCreateSharedWebCredentialPassword() -> CFString?
            ^

CompileC /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain_vers.o /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources/SimpleKeychain_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler (in target 'SimpleKeychain' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -target x86_64-apple-ios13.0-macabi -fmessage-length=229 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu11 -fmodules -gmodules -fmodules-cache-path=/tmp/sdkdoc/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/tmp/sdkdoc/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -fmodule-name=SimpleKeychain -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /tmp/sdkdoc/Index/DataStore -iquote /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-generated-files.hmap -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-own-target-headers.hmap -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-all-non-framework-target-headers.hmap -ivfsoverlay /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/all-product-headers.yaml -iquote /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/SimpleKeychain-project-headers.hmap -I/tmp/sdkdoc/Build/Products/Debug-maccatalyst/SimpleKeychain/include -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/usr/include -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources-normal/x86_64 -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources/x86_64 -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources -F/tmp/sdkdoc/Build/Products/Debug-maccatalyst/SimpleKeychain -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/System/Library/Frameworks -MMD -MT dependencies -MF /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain_vers.d --serialize-diagnostics /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain_vers.dia -c /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/DerivedSources/SimpleKeychain_vers.c -o /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/SimpleKeychain.build/Objects-normal/x86_64/SimpleKeychain_vers.o

[snip] Then some more CompileC invocations without error [/snip]

And finally some nonzero exit code on CompileSwift invocations
CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Disposable.swift (in target 'ReactiveSwift' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Action.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Atomic.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Bag.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Deprecations+Removals.swift -primary-file /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Disposable.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Event.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/EventLogger.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Flatten.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/FoundationExtensions.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Lifetime.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Observer.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Optional.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Property.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Reactive.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/ResultExtensions.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Scheduler.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Signal.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/SignalProducer.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/UnidirectionalBinding.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/UninhabitedTypeGuards.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/ValidatingProperty.swift -emit-module-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Disposable\~partial.swiftmodule -emit-module-doc-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Disposable\~partial.swiftdoc -serialize-diagnostics-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Disposable.dia -emit-dependencies-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Disposable.d -emit-reference-dependencies-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Disposable.swiftdeps -target x86_64-apple-ios13.0-macabi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift -F /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift -Fsystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/System/Library/Frameworks -application-extension -enable-testing -g -import-underlying-module -module-cache-path /tmp/sdkdoc/ModuleCache.noindex -suppress-warnings -swift-version 5 -enforce-exclusivity=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /redacted-path-to-repo-on-disk/Pods -enable-anonymous-context-mangled-names -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/swift-overrides.hmap -Xcc -iquote -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/ReactiveSwift-generated-files.hmap -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/ReactiveSwift-own-target-headers.hmap -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/ReactiveSwift-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/all-product-headers.yaml -Xcc -iquote -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/ReactiveSwift-project-headers.hmap -Xcc -I/tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/include -Xcc -isystem -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/usr/include -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/DerivedSources-normal/x86_64 -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/DerivedSources/x86_64 -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -ivfsoverlay -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/unextended-module-overlay.yaml -module-name ReactiveSwift -o /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Disposable.o -index-store-path /tmp/sdkdoc/Index/DataStore -index-system-modules
Command CompileSwift failed with a nonzero exit code

CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Event.swift (in target 'ReactiveSwift' from project 'Pods')
    cd /redacted-path-to-repo-on-disk/Pods
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Action.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Atomic.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Bag.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Deprecations+Removals.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Disposable.swift -primary-file /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Event.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/EventLogger.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Flatten.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/FoundationExtensions.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Lifetime.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Observer.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Optional.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Property.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Reactive.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/ResultExtensions.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Scheduler.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Signal.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/SignalProducer.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/UnidirectionalBinding.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/UninhabitedTypeGuards.swift /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/ValidatingProperty.swift -emit-module-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Event\~partial.swiftmodule -emit-module-doc-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Event\~partial.swiftdoc -serialize-diagnostics-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Event.dia -emit-dependencies-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Event.d -emit-reference-dependencies-path /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Event.swiftdeps -target x86_64-apple-ios13.0-macabi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift -F /tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift -Fsystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/System/Library/Frameworks -application-extension -enable-testing -g -import-underlying-module -module-cache-path /tmp/sdkdoc/ModuleCache.noindex -suppress-warnings -swift-version 5 -enforce-exclusivity=checked -Onone -D DEBUG -D COCOAPODS -serialize-debugging-options -Xcc -working-directory -Xcc /redacted-path-to-repo-on-disk/Pods -enable-anonymous-context-mangled-names -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/swift-overrides.hmap -Xcc -iquote -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/ReactiveSwift-generated-files.hmap -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/ReactiveSwift-own-target-headers.hmap -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/ReactiveSwift-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/all-product-headers.yaml -Xcc -iquote -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/ReactiveSwift-project-headers.hmap -Xcc -I/tmp/sdkdoc/Build/Products/Debug-maccatalyst/ReactiveSwift/include -Xcc -isystem -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/iOSSupport/usr/include -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/DerivedSources-normal/x86_64 -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/DerivedSources/x86_64 -Xcc -I/tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/DerivedSources -Xcc -DPOD_CONFIGURATION_DEBUG=1 -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -ivfsoverlay -Xcc /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/unextended-module-overlay.yaml -module-name ReactiveSwift -o /tmp/sdkdoc/Build/Intermediates.noindex/Pods.build/Debug-maccatalyst/ReactiveSwift.build/Objects-normal/x86_64/Event.o -index-store-path /tmp/sdkdoc/Index/DataStore -index-system-modules
Command CompileSwift failed with a nonzero exit code

[snip] Some other CompileSwift invocations without nonzero exit codes [/snip]

And finally the "BUILD FAILED" summary
** BUILD FAILED **


The following build commands failed:
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/KeychainAccess/Lib/KeychainAccess/Keychain.swift
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Disposable.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Event.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/EventLogger.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Flatten.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/ResultExtensions.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Scheduler.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/Signal.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/SignalProducer.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/ReactiveSwift/Sources/UnidirectionalBinding.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/_ObjectiveAuthenticationAPI.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/_ObjectiveManagementAPI.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/_ObjectiveWebAuth.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Auth0.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Auth0Authentication.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Auth0Error.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Authentication.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/AuthenticationError.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/AuthProvider.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/AuthSession.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/AuthTransaction.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/BioAuthentication.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/ControllerModalPresenter.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Credentials.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/CredentialsManager.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/CredentialsManagerError.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Date.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Handlers.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Identity.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/JSONObjectPayload.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Loggable.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Logger.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Management.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/ManagementError.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/NativeAuth.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/NSData+URLSafe.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/NSError+Helper.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/NSURL+Auth0.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/NSURLComponents+OAuth2.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/OAuth2Grant.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Profile.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Request.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Requestable.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Response.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/ResponseType.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Result.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/SafariAuthenticationCallback.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/SafariAuthenticationSession.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/SafariSession.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/SafariWebAuth.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/SilentSafariViewController.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Telemetry.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/TransactionStore.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/UserInfo.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/UserPatchAttributes.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/Users.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/WebAuth.swift
    CompileSwift normal x86_64 /redacted-path-to-repo-on-disk/Pods/Auth0/Auth0/WebAuthError.swift
(59 failures)

PS: Obviously, otoh running the same command but with -sdk iphonesimulator succeeds

** BUILD SUCCEEDED ** [39.626 sec]

@johnfairh
Copy link
Collaborator

Ok, thanks for all that. Probably significant that it fails during dependencies, not got round to building your framework. I guess best to keep this issue open to better report xcodebuild failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants