Lightweight-Python-Wrappers icon indicating copy to clipboard operation
Lightweight-Python-Wrappers copied to clipboard

iOS Support?

Open peardox opened this issue 2 years ago • 5 comments

Just found this...

https://github.com/beeware/Python-Apple-support

Which sorta implies Delphi Python should also work?

peardox avatar Jul 23 '22 18:07 peardox

Hi @peardox,

Python might work on iOS, but I think we can deploy our apps to the App Store due to run-time code changes.

Have a look in the MethodCallback.pas unit at P4D repo.

lmbelo avatar Jul 25 '22 23:07 lmbelo

For reference I got in this track owing to a youtube (don't worry, it's short and relevant)

https://www.youtube.com/watch?v=VX8gNHCDA3Q

The app he shows is, he says, in Python and it's on the Apple Stores - I've got it on my iPad and it does work.

My note above was the result of a little research and looked the most pertinant from my brief look into the topic

peardox avatar Jul 26 '22 03:07 peardox

His app might not change run-time code.

Check this out:

https://github.com/Embarcadero/python4delphi/blob/3af6852f84f2eaa51c77586e254b4181f62c0ccc/Source/MethodCallBack.pas#L633

https://github.com/Embarcadero/python4delphi/blob/3af6852f84f2eaa51c77586e254b4181f62c0ccc/Source/MethodCallBack.pas#L701

lmbelo avatar Jul 27 '22 16:07 lmbelo

Yeah, I doubt it. He'll be using some pre-packager. The packager may however change runtime.

If making an iOS ARM64 "Hello World" isn't too much work though it'd be interesting to see what happens if it's put through release submission (I've got an Apple Dev account valid til Dec if needed)

Also I understand that there are some REPR apps on the store...

peardox avatar Jul 27 '22 17:07 peardox

I also have this on the roadmap. I will try this as I get an opportunity and a new phone.

lmbelo avatar Jul 27 '22 17:07 lmbelo