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

False-positive error reporting with --renderer #382

Open
nekrich opened this issue Feb 17, 2025 · 0 comments
Open

False-positive error reporting with --renderer #382

nekrich opened this issue Feb 17, 2025 · 0 comments

Comments

@nekrich
Copy link

nekrich commented Feb 17, 2025

False-positive error reporting when rendering to the azure-devops-pipelines. Maybe somehow related to the #79.

Command: xcbeautify --is-ci --disable-logging --renderer azure-devops-pipelines.
xcbeautify version: 2.25.0

Produces an error in Azur DevOps Pipelines logs.
But at the same time, the xcodebuild continues building a project, and the project compiles just fine and works.

PureLayout is a third-party dependency integrated with Tuist, and I have no control over either of them to fix this issue.

xcbeautify logs in the pipelines:



[09:04:04]: ▸ note: imported by module 'Target1' in '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/ACR848HFYT1T/Target1-R0B905IRLLCA.pcm'
[09:04:04]: ▸ note: this is generally caused by modules with the same name found in multiple paths
[09:04:04]: ▸ note: imported by module 'Target2' in '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/ACR848HFYT1T/Target2-3ONT8TLDKLGNF.pcm'
[09:04:04]: ▸ note: this is generally caused by modules with the same name found in multiple paths
[09:04:04]: ▸ note: imported by '/Users/administrator/azp-agent/42/s/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Target4/PrecompiledHeaders/Target3-Bridging-Header-swift_3GTF2OX19XXFU-clang_ACR848HFYT1T.pch'
[09:04:04]: ▸ note: this is generally caused by modules with the same name found in multiple paths

##[error]fatal error: module 'PureLayout' in AST file '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/3KDP28J1LWI78/PureLayout-3FX5QT2A12VBJ.pcm' (imported by AST file '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/3KDP28J1LWI78/Target1-R0B905IRLLCA.pcm') is not defined in any loaded module map file; maybe you need to load '/Users/administrator/azp-agent/42/s/Applications/../Tuist/.build/tuist-derived/PureLayout/PureLayout.modulemap'?

[09:04:04]: ▸ note: imported by module 'Target1' in '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/3KDP28J1LWI78/Target1-R0B905IRLLCA.pcm'
[09:04:04]: ▸ note: this is generally caused by modules with the same name found in multiple paths
[09:04:04]: ▸ note: imported by module 'Target2' in '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/3KDP28J1LWI78/Target2-3ONT8TLDKLGNF.pcm'
[09:04:04]: ▸ note: this is generally caused by modules with the same name found in multiple paths
[09:04:04]: ▸ note: imported by '/Users/administrator/azp-agent/42/s/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Target4/PrecompiledHeaders/Target3-Bridging-Header-swift_182UVJXY144R4-clang_3KDP28J1LWI78.pch'
[09:04:04]: ▸ note: this is generally caused by modules with the same name found in multiple paths

xcodebuild logs:


SwiftGeneratePch normal x86_64 Compiling\ bridging\ header (in target 'Target1' from project 'Applications')
    cd /Users/administrator/azp-agent/42/s/Applications
    builtin-swiftTaskExecution -- /Applications/Xcode_15.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -target x86_64-apple-macos11.0 -enable-objc-interop -stack-check -sdk /Applications/Xcode_15.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk....

> HERE IS THE ERROR

fatal error: module 'PureLayout' in AST file '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/3KDP28J1LWI78/PureLayout-3FX5QT2A12VBJ.pcm' (imported by AST file '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/3KDP28J1LWI78/Target1-R0B905IRLLCA.pcm') is not defined in any loaded module map file; maybe you need to load '/Users/administrator/azp-agent/42/s/Applications/../Tuist/.build/tuist-derived/PureLayout/PureLayout.modulemap'?
note: imported by module 'Target1' in '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/3KDP28J1LWI78/Target1-R0B905IRLLCA.pcm'

> AND WE CONTINUE

note: this is generally caused by modules with the same name found in multiple paths
note: imported by module 'Target2' in '/Users/administrator/azp-agent/42/s/DerivedData/ModuleCache.noindex/3KDP28J1LWI78/Target2-3ONT8TLDKLGNF.pcm'
note: this is generally caused by modules with the same name found in multiple paths
note: imported by '/Users/administrator/azp-agent/42/s/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/Target3/PrecompiledHeaders/Target1-Bridging-Header-swift_182UVJXY144R4-clang_3KDP28J1LWI78.pch'
note: this is generally caused by modules with the same name found in multiple paths

SwiftDriverJobDiscovery normal arm64 Compiling TuistAssets+Target.swif....

Copy /Users/administrator/azp-agent/42/s/DerivedData/Build/Intermediates.
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

No branches or pull requests

1 participant