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

Rearrange Examples/LocalDebugging package structure to work with archive plugin #277

Closed
wants to merge 2 commits into from

Conversation

sebsto
Copy link
Contributor

@sebsto sebsto commented Dec 13, 2022

I propose to re-arrange the file and package structure in Examples/LocalDebugging to make it work with the archive plugin.

Motivation:

The current directory and package structure in the Examples/LocalDebugging example does not work out of the box with the archive plugin.
See #276

Modifications:

I re-arranged the package structure to share the same Package.swift for the targets MyLambda and Shared. This allows the plugin to build and archive MyLamba. I also made minimum changes to the Xcode workspace to continue to be able to build and debug from Xcode.

Let me know if there is a better way to arrange package and file in this project to work with : Xcode builds, command line builds, and the archive plugin.

Result:

Project now builds with swift build
It runs with export LOCAL_LAMBDA_SERVER_ENABLED=true && swift run MyLambda.
It packages with swift package --disable-sandbox archive
It runs by selecting the MyLambda target in Xcode
It runs by selecting the MyApp target in Xcode

@swift-server-bot
Copy link

Can one of the admins verify this patch?

11 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@sebsto sebsto changed the title Rearrange package structure to work with archive plugin Rearrange Examples/LocalDebugging package structure to work with archive plugin Dec 13, 2022
@tomerd
Copy link
Contributor

tomerd commented Mar 10, 2023

somewhat replaced by #292

@sebsto sebsto mentioned this pull request Mar 14, 2023
@tomerd
Copy link
Contributor

tomerd commented Jan 22, 2024

closing in inactive PRs, feel free to re-open if still relevant

@tomerd tomerd closed this Jan 22, 2024
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.

3 participants