fiskaly / fiskaly-sdk-swift

fiskaly Cloud-TSE SDK for Swift/iOS
MIT License
5 stars 5 forks source link

[SPM] Add support for swift package manager #35

Open havocked opened 3 years ago

havocked commented 3 years ago

Feature

Swift Package support

Motivation

We would like to add FiskalySDK framework with Swift Package Manager.

Pitch

Swift Package is getting increasingly more attention by developers. This PR shows that it's possible add this support without too much efforts and can benefits everyone!

What's going on?

How to improve this PR

Notes:

~In FiskalySDK.xcodeproj/project.pbxproj, I've excluded arm64 architecture for iphone simulator in order to build, because I'm using XCode Version 12.2 (12B45b)~

~Debug/Release config:~ ~"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;~ I had to remove this flag in order to pass CI

havocked commented 3 years ago

For now it works with XCode 11.3 for testing. But if using, later XCode version (12.2 for ex.), building will fail because of missing build settings: EXCLUDE_ARCHS -> ARM64