rules_xcodeproj icon indicating copy to clipboard operation
rules_xcodeproj copied to clipboard

[DO NOT REVIEW] Repro for missing rules_ios files during indexing

Open yongjincho92 opened this issue 1 year ago • 18 comments

change

add swift target that depends on objc

Repro

  1. go to rules_ios example dir
  2. run bazelisk clean --expunge
  3. run rm -rf ~/Library/Developer/Xcode/DerivedData/rules_ios-[id] to delete derived data for project if there is one
  4. bazelisk run //:xcodeproj
  5. open rules_ios.xcodeproj
  6. open UtilsSwift.swift file and see if index-compile works on index build logs

Expected opening UtilsSwift.swift on Xcode shows index-compile succeeds Screenshot 2023-04-12 at 3 43 44 PM

Actual

  1. Checkout https://github.com/MobileNativeFoundation/rules_xcodeproj/pull/2016 and apply this change
  2. bzl run //:xcodeproj
  3. open UtilsSwift.swift and observe that index compile fails with error message "no such module Utils"

yongjincho92 avatar Apr 12 '23 22:04 yongjincho92

FYI @brentleyjones

yongjincho92 avatar Apr 12 '23 22:04 yongjincho92

I believe this is the same as https://github.com/MobileNativeFoundation/rules_xcodeproj/issues/1929

luispadron avatar Apr 13 '23 17:04 luispadron

Slightly different. This one is because we aren't tracking the hmap files as generated files, so they aren't created/pulled in by the output group.

brentleyjones avatar Apr 13 '23 18:04 brentleyjones

I'm not able to reproduce this. I blew away the bazel output base between runs to make sure nothing was left over. I even focused the project to make sure that no downstream Index Build targets produced additional outputs:

    focused_targets = [
        "//iOSApp/Source/UtilsSwift:UtilsSwift_swift",
    ],

Always, the Editing compile worked:

CleanShot 2023-04-13 at 13 23 00@2x

brentleyjones avatar Apr 13 '23 18:04 brentleyjones

Screenshot 2023-04-13 at 5 16 03 PM (1)

FWIW, just tried this by following the repro steps and I'm seeing something similar where index Editing is failing.

I'm on Xcode 14.2.0, macOS 13.3

luispadron avatar Apr 13 '23 21:04 luispadron

If i remove the import Utils line then it finishes successfully Screenshot 2023-04-13 at 5 21 57 PM

luispadron avatar Apr 13 '23 21:04 luispadron

FYI,

This is index-compile command from indexing section which succeeds /Applications/Xcode-14.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -vfsoverlay /Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/index-overlay.yaml -module-name UtilsSwift -Onone -enforce-exclusivity=checked /Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/iOSApp/Source/UtilsSwift/UtilsSwift.swift -Xcc -working-directory=/Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/bazel-output-base/rules_xcodeproj.noindex/build_output_base/execroot/main -working-directory=/Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/bazel-output-base/rules_xcodeproj.noindex/build_output_base/execroot/main -vfsoverlay /Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/bazel-out-overlay.yaml @/Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift/DerivedSources/swift.compile.params -sdk /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -target x86_64-apple-ios15.0-simulator -enable-bare-slash-regex -g -module-cache-path /Users/ycho/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -swift-version 5 -parse-as-library -Xcc -fretain-comments-from-system-headers -Xcc -Xclang -Xcc -detailed-preprocessing-record -Xcc -Xclang -Xcc -fmodule-format=raw -Xcc -ferror-limit=10 -Xcc -Xclang -Xcc -fallow-pch-with-compiler-errors -Xcc -Wno-non-modular-include-in-framework-module -Xcc -Wno-incomplete-umbrella -Xcc -fmodules-validate-system-headers -Xcc -I/Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift/swift-overrides.hmap -working-directory /Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/bazel-output-base/rules_xcodeproj.noindex/build_output_base/execroot/main -index-file -index-file-path /Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/iOSApp/Source/UtilsSwift/UtilsSwift.swift -disable-batch-mode -o /Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift/Objects-normal/x86_64/UtilsSwift.o -index-store-path /Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/DataStore

And this is index-compile command from editing section which fails /Applications/Xcode-14.3.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -vfsoverlay /Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/index-overlay.yaml -module-name UtilsSwift -Onone -enforce-exclusivity=checked /Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/iOSApp/Source/UtilsSwift/UtilsSwift.swift -Xcc -working-directory=/Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/bazel-output-base/rules_xcodeproj.noindex/build_output_base/execroot/main -working-directory=/Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/bazel-output-base/rules_xcodeproj.noindex/build_output_base/execroot/main -vfsoverlay /Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/bazel-out-overlay.yaml @/Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift/DerivedSources/swift.compile.params -sdk /Applications/Xcode-14.3.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -target x86_64-apple-ios15.0-simulator -enable-bare-slash-regex -g -module-cache-path /Users/ycho/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -swift-version 5 -parse-as-library -Xcc -fretain-comments-from-system-headers -Xcc -Xclang -Xcc -detailed-preprocessing-record -Xcc -Xclang -Xcc -fmodule-format=raw -Xcc -ferror-limit=10 -Xcc -Xclang -Xcc -fallow-pch-with-compiler-errors -Xcc -Wno-non-modular-include-in-framework-module -Xcc -Wno-incomplete-umbrella -Xcc -fmodules-validate-system-headers -num-threads 48 -emit-module -emit-module-path /Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift/Objects-normal/x86_64/UtilsSwift.swiftmodule -Xcc -I/Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift/swift-overrides.hmap -emit-objc-header -emit-objc-header-path /Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift/Objects-normal/x86_64/UtilsSwift-Swift.h -working-directory /Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/bazel-output-base/rules_xcodeproj.noindex/build_output_base/execroot/main

Directory structure

/Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift
├── DerivedSources
│   └── swift.compile.params
├── Objects-normal
│   └── x86_64
│       ├── UtilsSwift_swift-OutputFileMap.json
│       └── UtilsSwift_swift.SwiftFileList
├── Script-3FA490ABA5E3D7E486C18E73.sh
├── Script-EE40952F18DBD07DE6328D82.sh
└── UtilsSwift_swift-preparedForIndex-target

3 directories, 6 files

/Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift/swift-overrides.hmap doesn't exist

and content of swift.compile.params is

-DDEBUG
-pch-output-dir
bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/_pch_output_dir
-Xfrontend
'-vfsoverlay/Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/bazel-output-base/rules_xcodeproj.noindex/indexbuild_output_base/execroot/__main__/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift.vfsoverlay.yaml'
-I/__build_bazel_rules_swift/swiftmodules
-Xcc
-iquote.
-Xcc
-iquotebazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin
-Xfrontend
'-vfsoverlay/Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/bazel-output-base/rules_xcodeproj.noindex/indexbuild_output_base/execroot/__main__/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift_vfs.yaml'
-Xfrontend
-F/build_bazel_rules_ios/frameworks
-I/build_bazel_rules_ios/frameworks
-Xcc
'-ivfsoverlay/Users/ycho/Snapchat/Dev/rules_xcodeproj/examples/rules_ios/bazel-output-base/rules_xcodeproj.noindex/indexbuild_output_base/execroot/__main__/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift_vfs.yaml'
-Xcc
-F/build_bazel_rules_ios/frameworks
-Xcc
-Ibazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_private_hmap.hmap
-Xcc
-Ibazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_public_hmap.hmap
-Xcc
-Ibazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_private_angled_hmap.hmap
-Xcc
-iquotebazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_private_hmap.hmap
-Xcc
-D__SWIFTC__
-Xcc
-I.
-import-underlying-module
-static
-Xcc
-O0
-Xcc
'-DDEBUG=1'
-Xcc
-fstack-protector
-Xcc
-fstack-protector-all

yongjincho92 avatar Apr 13 '23 21:04 yongjincho92

Hmm. I must be doing something wrong, because I can't repro. I'll try again tomorrow.

brentleyjones avatar Apr 13 '23 23:04 brentleyjones

Btw

/Users/ycho/Library/Developer/Xcode/DerivedData/rules_ios-fmwtbkogmuuwbffwzkquuiejealw/Index.noindex/Build/Intermediates.noindex/rules_ios.build/bazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_swift/swift-overrides.hmap

is expected to not exist. It's an Xcode controlled file.

brentleyjones avatar Apr 13 '23 23:04 brentleyjones

These, and the vfs overlays, are what I expect don't exist:

-Xcc
-Ibazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_private_hmap.hmap
-Xcc
-Ibazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_public_hmap.hmap
-Xcc
-Ibazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_private_angled_hmap.hmap
-Xcc
-iquotebazel-out/ios-x86_64-min15.0-applebin_ios-ios_x86_64-dbg-ST-22df88d0dbf8/bin/iOSApp/Source/UtilsSwift/UtilsSwift_private_hmap.hmap

brentleyjones avatar Apr 13 '23 23:04 brentleyjones

I believe I've finally found a reliable repro for this, and I'm digging in.

brentleyjones avatar Jul 13 '23 19:07 brentleyjones

So my repro was for something else. We still don't properly track the hmaps, or we don't properly transitively track them. I think I know a fix though, and I'll dig in more.

brentleyjones avatar Jul 13 '23 20:07 brentleyjones

So this feels like #2264 to me. Can anyone confirm that fixes it? When I checked, all the files are generated correctly, and after I closed and opened Xcode (to clear the SourceKit args cache), it started to work (which is a telltale symptom of the issue that #2264 fixes). Also, I think recent changes, such as #2362 might have fixed part of this as well.

brentleyjones avatar Jul 14 '23 15:07 brentleyjones

I'll give it a shot in a few

luispadron avatar Jul 14 '23 17:07 luispadron

So I can repro following the steps in the description. Indexing for a Swift file with objective-c imports is broken in both main and patched. Im unable to go-to definition, etc and see vfs related errors in the logs.

I've attached the logs, both from main and another patched log with the #2264 branch. Both include the commit in this PR

I am seeing less index errors overall though it seems in the patched run. Im not entirely sure though whats the best way to test this besides navigating around the project. Index Builds are completely green in both.

index_main.log index_patch.log

luispadron avatar Jul 15 '23 02:07 luispadron

@luispadron is this still an issue with the incremental generation mode?

brentleyjones avatar Nov 28 '23 16:11 brentleyjones

@brentleyjones I do still see this using the incremental generator release from this comment. They dont seem to effect anything though and most eventually go green. Here are some of the errors I see in the index log when navigating around the project:


Showing All Messages
/Applications/Xcode-15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -vfsoverlay /Users/lpadron/Library/Developer/Xcode/DerivedData/CashApp-bnophdgbbauxqscyokubqqxipdri/Index.noindex/Build/Intermediates.noindex/index-overlay.yaml -module-name FeatureFlagsImplementations -Onone -enforce-exclusivity=checked /Users/lpadron/Development/cash-ios/Code/SystemResources/FeatureFlagsImplementations/Sources/Array+CCAdditions.swift /Users/lpadron/Development/cash-ios/Code/SystemResources/FeatureFlagsImplementations/Sources/Collection+CCAdditions.swift /Users/lpadron/Development/cash-ios/Code/SystemResources/FeatureFlagsImplementations/Sources/FeatureFlagNetworkManager+Default.swift /Users/lpadron/Development/cash-ios/Code/SystemResources/FeatureFlagsImplementations/Sources/FeatureFlagRequests.swift /Users/lpadron/Development/cash-ios/Code/SystemResources/FeatureFlagsImplementations/Sources/FeatureFlags+CashFlags.swift /Users/lpadron/Development/cash-ios/Code/SystemResources/FeatureFlagsImplementations/Sources/FeatureFlagStore+SQPBFranklinCommonFeatureFlag.swift -Xcc -working-directory -Xcc /var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/indexbuild_output_base/execroot/cash-ios -working-directory /var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/indexbuild_output_base/execroot/cash-ios -Xcc -ivfsoverlay/Users/lpadron/Library/Developer/Xcode/DerivedData/CashApp-bnophdgbbauxqscyokubqqxipdri/Index.noindex/Build/Intermediates.noindex/bazel-out-overlay.yaml -vfsoverlay /Users/lpadron/Library/Developer/Xcode/DerivedData/CashApp-bnophdgbbauxqscyokubqqxipdri/Index.noindex/Build/Intermediates.noindex/bazel-out-overlay.yaml -DDEBUG -Onone -enable-testing -pch-output-dir bazel-out/ios-sim_arm64-min14.0-applebin_ios-ios_sim_arm64-dbg-ST-a47af619560c/bin/_pch_output_dir -Xfrontend -vfsoverlay/var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/indexbuild_output_base/execroot/cash-ios/bazel-out/ios-sim_arm64-min14.0-applebin_ios-ios_sim_arm64-dbg-ST-a47af619560c/bin/Code/SystemResources/FeatureFlagsImplementations/FeatureFlagsImplementations_swift.vfsoverlay.yaml -I/__build_bazel_rules_swift/swiftmodules -F/Users/lpadron/Development/cash-ios/Pods/SquareCore/ios/SquareCore.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/Protobuf/ios/Protobuf.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_DescriptorProtos_objc/ios/CashApp_DescriptorProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_ObjcProtos_objc/ios/CashApp_ObjcProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_CountryProtos_objc/ios/CashApp_CountryProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_GlobalConfigProtos_objc/ios/CashApp_GlobalConfigProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_CurrencyProtos_objc/ios/CashApp_CurrencyProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_LocalizationProtos_objc/ios/CashApp_LocalizationProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_ColorProtos_objc/ios/CashApp_ColorProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_RedactionAndPIIProtos_objc/ios/CashApp_RedactionAndPIIProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_ImageProtos_objc/ios/CashApp_ImageProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_PayrollConnectorProtos_objc/ios/CashApp_PayrollConnectorProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_PaychecksProtos_objc/ios/CashApp_PaychecksProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_PersonalizedPaymentProtos_objc/ios/CashApp_PersonalizedPaymentProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_AnalyticsProtos_objc/ios/CashApp_AnalyticsProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_AnimationProtos_objc/ios/CashApp_AnimationProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_SavingsProtos_objc/ios/CashApp_SavingsProtos_objc.xcframework/ios-arm64_x86_64-simulator -F/Users/lpadron/Development/cash-ios/Pods/CashApp_AppProtos_objc/ios/CashApp_AppProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/SquareCore/ios/SquareCore.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/Protobuf/ios/Protobuf.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_DescriptorProtos_objc/ios/CashApp_DescriptorProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_ObjcProtos_objc/ios/CashApp_ObjcProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_CountryProtos_objc/ios/CashApp_CountryProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_GlobalConfigProtos_objc/ios/CashApp_GlobalConfigProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_CurrencyProtos_objc/ios/CashApp_CurrencyProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_LocalizationProtos_objc/ios/CashApp_LocalizationProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_ColorProtos_objc/ios/CashApp_ColorProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_RedactionAndPIIProtos_objc/ios/CashApp_RedactionAndPIIProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_ImageProtos_objc/ios/CashApp_ImageProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_PayrollConnectorProtos_objc/ios/CashApp_PayrollConnectorProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_PaychecksProtos_objc/ios/CashApp_PaychecksProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_PersonalizedPaymentProtos_objc/ios/CashApp_PersonalizedPaymentProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_AnalyticsProtos_objc/ios/CashApp_AnalyticsProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_AnimationProtos_objc/ios/CashApp_AnimationProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_SavingsProtos_objc/ios/CashApp_SavingsProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -F -Xcc /Users/lpadron/Development/cash-ios/Pods/CashApp_AppProtos_objc/ios/CashApp_AppProtos_objc.xcframework/ios-arm64_x86_64-simulator -Xcc -iquote -Xcc /var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/indexbuild_output_base/execroot/cash-ios -Xcc -iquote -Xcc /var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/indexbuild_output_base/execroot/cash-ios/bazel-out/ios-sim_arm64-min14.0-applebin_ios-ios_sim_arm64-dbg-ST-a47af619560c/bin -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DDEBUG=1 -Xcc -DENABLE_UITUNNEL=1 -Xcc -DDEBUG_MENU=1 -Xcc -DBUG_REPORTING=1 -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/SquareCore/ios/SquareCore.xcframework/ios-arm64_x86_64-simulator/SquareCore.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/Protobuf/ios/Protobuf.xcframework/ios-arm64_x86_64-simulator/Protobuf.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_DescriptorProtos_objc/ios/CashApp_DescriptorProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_DescriptorProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_ObjcProtos_objc/ios/CashApp_ObjcProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_ObjcProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_CountryProtos_objc/ios/CashApp_CountryProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_CountryProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_GlobalConfigProtos_objc/ios/CashApp_GlobalConfigProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_GlobalConfigProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_CurrencyProtos_objc/ios/CashApp_CurrencyProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_CurrencyProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_LocalizationProtos_objc/ios/CashApp_LocalizationProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_LocalizationProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_ColorProtos_objc/ios/CashApp_ColorProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_ColorProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_RedactionAndPIIProtos_objc/ios/CashApp_RedactionAndPIIProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_RedactionAndPIIProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_ImageProtos_objc/ios/CashApp_ImageProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_ImageProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_PayrollConnectorProtos_objc/ios/CashApp_PayrollConnectorProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_PayrollConnectorProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_PaychecksProtos_objc/ios/CashApp_PaychecksProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_PaychecksProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_PersonalizedPaymentProtos_objc/ios/CashApp_PersonalizedPaymentProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_PersonalizedPaymentProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_AnalyticsProtos_objc/ios/CashApp_AnalyticsProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_AnalyticsProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_AnimationProtos_objc/ios/CashApp_AnimationProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_AnimationProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_SavingsProtos_objc/ios/CashApp_SavingsProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_SavingsProtos_objc.framework/Modules/module.modulemap -Xcc -fmodule-map-file=/Users/lpadron/Development/cash-ios/Pods/CashApp_AppProtos_objc/ios/CashApp_AppProtos_objc.xcframework/ios-arm64_x86_64-simulator/CashApp_AppProtos_objc.framework/Modules/module.modulemap -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS -DDEBUG -DENABLE_UITUNNEL -DDEBUG_MENU -DBUG_REPORTING -Xfrontend -disable-autolink-framework -Xfrontend CashApp_AppProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend Protobuf -Xfrontend -disable-autolink-framework -Xfrontend CashApp_SavingsProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_ImageProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_RedactionAndPIIProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_DescriptorProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_AnimationProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_ObjcProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_LocalizationProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_CurrencyProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_AnalyticsProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_PersonalizedPaymentProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_ColorProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_PaychecksProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_PayrollConnectorProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_GlobalConfigProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend CashApp_CountryProtos_objc -Xfrontend -disable-autolink-framework -Xfrontend SquareCore -warnings-as-errors -Xfrontend -internalize-at-link -DDEBUG -DENABLE_UITUNNEL -DDEBUG_MENU -DBUG_REPORTING -Xfrontend -warn-long-expression-type-checking=10000 -Xfrontend -warn-long-function-bodies=10000 -Xfrontend -warn-concurrency -Xfrontend -vfsoverlay/var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/indexbuild_output_base/execroot/cash-ios/bazel-out/ios-sim_arm64-min14.0-applebin_ios-ios_sim_arm64-dbg-ST-a47af619560c/bin/Code/SystemResources/FeatureFlagsImplementations/FeatureFlagsImplementations_swift_vfs.yaml -Xfrontend -F/build_bazel_rules_ios/frameworks -I/build_bazel_rules_ios/frameworks -Xcc -ivfsoverlay/var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/indexbuild_output_base/execroot/cash-ios/bazel-out/ios-sim_arm64-min14.0-applebin_ios-ios_sim_arm64-dbg-ST-a47af619560c/bin/Code/SystemResources/FeatureFlagsImplementations/FeatureFlagsImplementations_swift_vfs.yaml -Xcc -F -Xcc /build_bazel_rules_ios/frameworks -Xcc -I -Xcc /var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/indexbuild_output_base/execroot/cash-ios/bazel-out/ios-sim_arm64-min14.0-applebin_ios-ios_sim_arm64-dbg-ST-a47af619560c/bin/Code/SystemResources/FeatureFlagsImplementations/FeatureFlagsImplementations_public_hmap.hmap -Xcc -D__SWIFTC__ -Xcc -I -Xcc /var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/indexbuild_output_base/execroot/cash-ios -import-underlying-module -static -Xcc -O0 -Xcc -DDEBUG=1 -Xcc -fstack-protector -Xcc -fstack-protector-all -Xfrontend -internalize-at-link -sdk /Applications/Xcode-15.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.0.sdk -target arm64-apple-ios14.0-simulator -enable-bare-slash-regex -g -module-cache-path /Users/lpadron/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -swift-version 5 -Xcc -fretain-comments-from-system-headers -Xcc -Xclang -Xcc -detailed-preprocessing-record -Xcc -Xclang -Xcc -fmodule-format=raw -Xcc -ferror-limit=10 -Xcc -Xclang -Xcc -fallow-pch-with-compiler-errors -Xcc -Wno-non-modular-include-in-framework-module -Xcc -Wno-incomplete-umbrella -Xcc -fmodules-validate-system-headers -working-directory /var/tmp/_bazel_lpadron/9ae9416857eb79bb978de35a53d54970/rules_xcodeproj.noindex/build_output_base/execroot/cash-ios

/Users/lpadron/Development/cash-ios/Code/SystemResources/FeatureFlagsImplementations/Sources/FeatureFlagNetworkManager+Default.swift:6:8: error: could not find module 'FeatureFlags' for target 'arm64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /build_bazel_rules_ios/frameworks/FeatureFlags.swiftmodule

/Users/lpadron/Development/cash-ios/Code/SystemResources/FeatureFlagsImplementations/Sources/FeatureFlagNetworkManager+Default.swift:6:8: could not find module 'FeatureFlags' for target 'arm64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /build_bazel_rules_ios/frameworks/FeatureFlags.swiftmodule


Showing All Messages
/Applications/Xcode-15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc 

/<unknown>: error: no input files

/<unknown>: no input files


luispadron avatar Dec 19 '23 16:12 luispadron

I'm pretty sure #2859 will fix this fully.

Errors like no input files aren't real errors, it's a symptom of something Xcode does.

Errors like /Users/lpadron/Development/cash-ios/Code/SystemResources/FeatureFlagsImplementations/Sources/FeatureFlagNetworkManager+Default.swift:6:8: error: could not find module 'FeatureFlags' for target 'arm64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /build_bazel_rules_ios/frameworks/FeatureFlags.swiftmodule though seem to indicate that the vfs overlay wasn't being generated, and it will now with #2859.

brentleyjones avatar Jan 05 '24 20:01 brentleyjones