-
Notifications
You must be signed in to change notification settings - Fork 113
Rearrange Examples/LocalDebugging package structure to work with archive plugin #277
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
Conversation
Can one of the admins verify this patch? |
11 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
somewhat replaced by #292 |
closing in inactive PRs, feel free to re-open if still relevant |
I propose to re-arrange the file and package structure in
Examples/LocalDebugging
to make it work with thearchive
plugin.Motivation:
The current directory and package structure in the
Examples/LocalDebugging
example does not work out of the box with thearchive
plugin.See #276
Modifications:
I re-arranged the package structure to share the same
Package.swift
for the targetsMyLambda
andShared
. 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 XcodeIt runs by selecting the
MyApp
target in Xcode