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

bug: Fix Package.swift on Xcode 14 #617

Merged
merged 1 commit into from
Sep 21, 2022
Merged

Conversation

jbelkins
Copy link
Contributor

Description of changes

When loading the Package.swift file on Xcode 14, the setupDependencies() method call at the bottom of Package.swift was not getting executed, and the auto-generated libraries were not being created.

I am not certain of the reason; it seems that Xcode 14 stops interpreting Package.swift once the package global variable has been defined. In any case, converting setupDependencies() from a free function to a method extended upon the Package class fixes the problem & still works with Xcode 13 as well.

New/existing dependencies impact assessment, if applicable

No new dependencies were added to this change.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jbelkins jbelkins requested a review from ganeshnj September 13, 2022 17:56
@jbelkins jbelkins merged commit b508b3e into main Sep 21, 2022
@jbelkins jbelkins deleted the jbe/fix_package_swift_on_xcode_14 branch September 21, 2022 01:56
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