[swift-users] Swift Package Manager (SPM) Deployment Target

Keith Smiley k at keith.so
Fri Sep 30 13:08:46 CDT 2016


Here's the PR that allows you to override this from the command line:
https://github.com/apple/swift-package-manager/pull/715

--
Keith Smiley

On 09/26, Daniel Dunbar via swift-users wrote:
> There isn't yet a builtin way to manage this. When generating an Xcode project, you can use the undocumented `--xcconfig-overrides` option to pass a path to an extra .xcconfig file you wish to include in the project and have build settings read from. You could then override the deployment target there.
>
> See also:
>   https://lists.swift.org/pipermail/swift-build-dev/Week-of-Mon-20160919/000636.html
>
>  - Daniel
>
> > On Sep 24, 2016, at 4:44 PM, Gmail via swift-users <swift-users at swift.org> wrote:
> >
> > Does anyone know if it’s possible to set the deployment target when building with the Swift Package Manager (SPM)? From what I can tell, it is not currently possible to override it based on the source code itself. In the pbxproj().swift <https://github.com/apple/swift-package-manager/blob/master/Sources/Xcodeproj/pbxproj().swift#L73-L78> file, the MACOSX_DEPLOYMENT_TARGET is hardcoded to 10.10 with a FIXME saying it needs to be configurable.
> >
> > If this currently cannot be overridden, then I’d like to file a feature request so we can build Alamofire 4.0.0 with the SPM. If it can be overridden, I’d really appreciate someone letting me know how.
> >
> > Thanks in advance!
> >
> > _______________________________________________
> > swift-users mailing list
> > swift-users at swift.org
> > https://lists.swift.org/mailman/listinfo/swift-users
>

> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users



More information about the swift-users mailing list