Closed jalaljanami closed 1 year ago
The way I use is Theos make package
It should also be possible to compile through SPM, I just haven't gotten around to doing it that way since Theos just works ™️
@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?
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?
@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?
@Paisseon Is it the right approach to create a new .dylib file or I'm in another universe at all??!! 😄
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
@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.
How can i create new .dylib file? i tried several ways, can it be done from XCode or i have to use terminal?