Skip to content

Swift Package Manager and Release Builds Fix #136

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

paulsolt-ofsw
Copy link
Contributor

@paulsolt-ofsw paulsolt-ofsw commented May 23, 2025

Adds Swift Package Manager for GeoPackage, GARS, and MGRS dependencies.

To test: pod install to remove old Cocoapods and then update Swift Package Cache in Xcode.

  • Enables release builds with optimizations (size) enabled and Archives without problems. (Previously was archiving the Debug builds because C enum symbols were missing)
  • Integrates changes to all NGA dependencies to use NS_ENUM() for all enums in SimpleFeatures (sf-ios 5.0.0) and others.
  • Removes Cocoapods from the NGA repositories
  • Integrates with the new Swift modules

Mage Dependencies

  1. mgrs-ios (MGRS 2.0.0): Adds Swift Package Manager Support and removes Cocoapods mgrs-ios#3
  2. gars-ios (GARS 2.0.0): Swift Package Manager Support gars-ios#1
  3. geopackage-ios (GeoPackage 9.0.0): Swift Package Manager Support and NS_ENUM Interoperability geopackage-ios#58
  4. grid-ios (Grid 2.0.0): Swift Package Support for Grid and NS_ENUM Fix grid-ios#3
  5. sf-proj-ios (SimpleFeaturesProjections 7.0.0): Swift Package Support and NS_ENUM Fix simple-features-proj-ios#8
  6. projections-ios (Projections: 3.0.0): Swift Package Manager Support + NS_ENUM Fixes projections-ios#13
  7. PROJ (9.4.0 SPM Branch): 9.4.0 release - Swift Package Manager (Do Not Merge) PROJ#2
  8. crs-ios (CoordinateReferenceSystems 2.0.0): Add Swift Package Manager and Update NS_ENUM For Swift Interoperability coordinate-reference-systems-ios#1
  9. tiff-ios (TIFF 5.0.0): Add Swift Package Manager Support tiff-ios#20
  10. ogc-api-features-json-ios (OGC_APIFeaturesJSON 5.0.0): Adds Swift Package Manager support and NS_ENUM updates ogc-api-features-json-ios#1
  11. color-ios (Color 2.0.0): Adds Swift Package Manager support for 2.0.0 color-ios#1
  12. sf-geojson-ios (SimpleFeaturesGeoJSON 5.0.0): Update NS_ENUM and Add Swift Package Manager Support simple-features-geojson-ios#5
  13. simple-features-wkb-ios (SimpleFeaturesWKB 5.0.0): Update NS_ENUM and Add Swift Package Manager Support simple-features-wkb-ios#14
  14. simple-features-wkt-ios (SimpleFeaturesWKT 3.0.0): Update NS_ENUM and Add Swift Package Manager Support simple-features-wkt-ios#2
  15. sf-ios (SimpleFeatures 5.0.0): Update NS_ENUM and Add Swift Package Manager Support simple-features-ios#7

@paulsolt-ofsw paulsolt-ofsw changed the base branch from master to develop May 23, 2025 20:30
…nd MGRS (and their dependencies).

* Fixed C enum issue by using NS_ENUM in all NGA dependencies (i.e. sf-ios - SimpleFeatures 5.0.0)
* Re-enabled Optimizations in builds with the fixes above
* Archiving works on Release builds again
* Fixed unit test that had incorrect date logic based on UIDatePicker behavior
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