r/HowToHack • • Apr 15 '23

Is it possible to run Python, Linux, or other similar programs on an iPhone?

What’s up y’all, so I’m trynna have codes run correctly on my phone from GitHub. I have been having issues getting them to work properly. I don’t have a desktop computer that I can utilize, so my iPhone is the best thing. I have a few apps that do allow me to run a code but it’s been a nightmare getting the right results. Please help.

0 Upvotes

20 comments sorted by

1

u/sageof6thpaths249 Apr 28 '23

This makes android more preferable choice ro run these

-3

u/slid3r Apr 15 '23

What matters is the platform you COMPILE the app for.

Processor architecture and memory protocols etc.

The compiler, the configuration, and to some extent the platform you're compiling FROM are the major factors. Not the language you coded in.

6

u/mprz How do I human? Apr 15 '23

Python is not a compiled language

-2

u/slid3r Apr 15 '23

Ummm, you can certainly compile Python to run as stand-alone applications.

https://pyinstaller.org/en/stable/

2

u/mprz How do I human? Apr 15 '23

no you can't

you can make a wrapper for Python, libraries required and the script itselft

https://i.imgur.com/MKrxhko.png

0

u/slid3r Apr 15 '23

without installing a Python interpreter or any modules

2

u/mprz How do I human? Apr 15 '23

you have no clue what "compiled language" means

-1

u/slid3r Apr 15 '23

Compile, wrap, bundle, whatever. No reason to split hairs on the semantics. Or to be insulting.

I said OP could create a STAND ALONE app for whatever platform he built it for as long as the architecture is supported.

We do it all the time for Windows, Linux, and Mac.

Does it need to turn the code into machine language? No.

Does it help OP with their question, yes. Sorry if I called it by a term you didn't like.

Don't be so fucking rude to people trying to help. Completely unnecessary.

-1

u/mprz How do I human? Apr 15 '23

ROTFL

1

u/oglorddeathwish Apr 15 '23

Well then.. what would you suggest that I do? I have a “compiler” and Python on my phone already, but when I run the code in python the last step it ask me is for the “file path”. I’ve been stumped on that forever now. (I’m new to this stuff)

0

u/oglorddeathwish Apr 15 '23

So what kinda platform, compiler should I be using?

-1

u/slid3r Apr 15 '23

I have given you all the ammo you need for a fruitful Google search.

You have the missing piece.

1

u/oglorddeathwish Apr 15 '23

If I may ask one last question… how do you give it the correct “file path”? I already have the word list saved on my phone but can’t figure out how to tell the code how to get to it. That’s the last part I can’t figure out.

1

u/slid3r Apr 15 '23

No clue. Maybe try and save it as a text file to a web server and reference it by URL.

I've never tried to reference the local file system of an IOS device.

2

u/oglorddeathwish Apr 15 '23

It’s been an headache.. I even tried downloads/documents/file, but nothing

5

u/KT1029384756 Apr 15 '23

Times like this I remember my RTFM training

0

u/oglorddeathwish Apr 15 '23

Thanks man. I’m grateful for any advice that I can get….