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

Refactor _xcodeproj_is_mixed to _target_is_mixed #725

Merged
merged 1 commit into from
May 19, 2023

Conversation

AngelaGuardia
Copy link
Collaborator

@AngelaGuardia AngelaGuardia commented May 19, 2023

Refactored _xcodeproj_is_mixed to _target_is_mixed to determine the boolean value of mixed on a per target basis.

This change solves the following indexing error seen when indexing swift-only or objc-only targets on Xcode 14.3.0:

/<unknown>: underlying Objective-C module 'SomeSwiftOnly_App' not found

Thanks to @thiagohmcruz for debugging this!

Copy link
Contributor

@thiagohmcruz thiagohmcruz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the fix! Oversight on my part when I originally added this. I believe this also fixes things for other Xcode versions btw.

mixed = _xcodeproj_is_mixed(targets)

for target_info in targets:
mixed = _target_is_mixed(target_info)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, when I originally added that to detect mixed = True/False and then conditionally set -import-underlying-module later and didn't consider that we might want this per-target 😓.

@AngelaGuardia AngelaGuardia marked this pull request as ready for review May 19, 2023 16:04
@AngelaGuardia AngelaGuardia merged commit 3805f58 into master May 19, 2023
@AngelaGuardia AngelaGuardia deleted the aguardia/MDX-8146/Fix-mixed-targets branch May 19, 2023 16:20
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 this pull request may close these issues.

2 participants