Select to view content in your preferred language

Swift Package Manager

2214
10
10-22-2020 01:53 PM
HeathClark
Occasional Contributor

Does the current SDK for iOS support Swift Package Manager?  If not, when will that support be included?

10 Replies
GBreen
by
Occasional Contributor

At the very least make an .xcframework so we can use the binary framework in our swift packages.

See this video for details: https://developer.apple.com/videos/play/wwdc2019/416/

It shouldn't be much work I think

0 Kudos
InterPro
Emerging Contributor

This would also be very beneficial to me and my team as well. 

0 Kudos
Selsoe
by
Occasional Contributor

Supporting SPM or just some sort of dependency manager (but preferably SPM) will greatly ease the management of the framework integration. Also, wrapping the framework in an installer package seems very odd. Why not just put it in a ZIP file?

Installer packages are really inconvenient, especially for something like this. It's very difficult to reason about what changes are made to the system when an installer runs.

Wish list:

1. Make ArcGIS available for Swift Package Manager

If not possible:

2. Make available for Carthage and/or CocoaPods

If not possible:

3. Distribute the framework in a ZIP file.

GBreen
by
Occasional Contributor

So to be fair Esri is available via CocoaPods but not Carthage or SPM

GBreen
by
Occasional Contributor

Good news! In version 100.10.0 Esri is supporting xcframework. Because of that I was able to make a swift package manager version of the framework:

https://github.com/gbreen12/ArcGIS-SPM.git

Not sure how long that will last because I'm not actually 100% I can do this but it's there for now and hopefully Esri will make a native solution soon

InterPro
Emerging Contributor

Great work, but this should still be something supported by Esri.

0 Kudos
GBreen
by
Occasional Contributor

Agreed!

0 Kudos
GBreen
by
Occasional Contributor

Good news. 100.11.0 now supports Swift Package Manager

Ting
by Esri Contributor
Esri Contributor

Yep! It's supported now in 100.11.0! (actually also in 100.10.0 😏)

Please try it out with this repo: https://github.com/Esri/arcgis-runtime-ios !

0 Kudos