KittyMac / Sextant

High performance JSONPath queries for Swift
MIT License
50 stars 5 forks source link

Cocoapods integration #2

Closed ilkerc closed 2 years ago

ilkerc commented 2 years ago

It would be great to utilize sextant as a cocoapods dependency inside a cocoapods framework. I did some search and looks like spm dependency never got implemented on cocoapods. To do that we should also add cocoapods support to Chronometer, Spanker and Hitch.

Also; I still couldn't find a solution for running ios apps in simulator on an m1 based mac, without enabling rosetta in xCode (not a good idea). Could not find module ‘Sextant’ for target ‘x86_64-apple-ios-simulator’;

What do you think @KittyMac ?

KittyMac commented 2 years ago

@ilkerc I personally don't have much interest in supporting Cocoapods. If you'd like to submit PRs to add support for it I will review them for inclusion.

As far as using Sextant in iOS simulator on an M1, I was unable to reproduce your issue. I created new app project in Xcode on iMac M1, linked to Sextant using the SPM integration in Xcode, added a simple func to use Sextant and ran it on the simulator no problem. I am not certain if I "enabled rosetta in XCode" in the past, and a quick google did not lead to an easy solution to tell me how to remove it if I had enabled it.

ilkerc commented 2 years ago

Regarding SPM; I realized that some of my dependencies still forces x86_64 slices.

Since there are 3 dependencies maybe its not worth the hustle. I better try to ask for updates for the static frameworks I use.