Paisseon / SatellaJailed

Jailed in-app purchase cracker (iOS 12-16)
GNU Affero General Public License v3.0
1.01k stars 100 forks source link

Create New .dylib #36

Closed jalaljanami closed 1 year ago

jalaljanami commented 1 year ago

How can i create new .dylib file? i tried several ways, can it be done from XCode or i have to use terminal?

Paisseon commented 1 year ago

The way I use is Theos make package

Paisseon commented 1 year ago

It should also be possible to compile through SPM, I just haven't gotten around to doing it that way since Theos just works ™️

jalaljanami commented 1 year ago

@Paisseon Thanks for answering my question, I was reading about what you recommended in the past several days, but i couldn't get my specific result. I want to Create/export a .dylib file from my existing swift package, a package like what you have in this repo source code. in another word, can I manipulate the code and export it as the .dylib?

Paisseon commented 1 year ago

Yes, as long as the code is correct it can be changed however and compile. Are you having an error using make package with Theos?

jalaljanami commented 1 year ago

@Paisseon sorry for over-asking the same problem! I don't know how to use theos to make a new .dylib file, maybe we aren't on the same page, or because of my lack of knowledge about this topic I can fully understand it, let me ask it in another way! we have the source files in the '/src' directory, right! now I want to create a new .dylib file from it like 'SatellaJailed.dylib', how can I Create a new .dylib file using theos command line?

jalaljanami commented 1 year ago

@Paisseon Is it the right approach to create a new .dylib file or I'm in another universe at all??!! 😄

Paisseon commented 1 year ago

Nah you're on the right track. It's just go in terminal to SatellaJailed directory (where the Makefile is!) and run make package. Then you can get the dylib from .theos/obj/SatellaJailed.dylib

jalaljanami commented 1 year ago

@Paisseon I tried this command so many times in so many ways and different directories, and it always returning by the error 'no rule to make package' or something like that! thank you for your help i think something run with my theos. at least i know i was on the right path because of your help, thank you🙏, i will trying to find the issue with theos.