Add support for iOS
See original GitHub issueCan we get support on iOS?
pip install psutil on Python 3.7 on iOS Pyto results in…
Querying PyPI ...
Downloading package ...
Extracting archive file ...
Running setup file ...
Traceback (most recent call last):
File "Pyto.app/installer.py", line 6, in <module>
main(sys.argv[1:])
File "Pyto.app/site-packages/pip.py", line 1489, in main
repository.install(pkg_name, ver_spec, dist=dist)
File "Pyto.app/site-packages/pip.py", line 1079, in install
self._install(pkg_name, pkg_info, archive_filename, dependency_dist=dist)
File "Pyto.app/site-packages/pip.py", line 842, in _install
files_installed, dependencies = self.installer.run(pkg_name, archive_filename)
File "Pyto.app/site-packages/pip.py", line 525, in run
return self._run_setup_file(setup_filename)
File "Pyto.app/site-packages/pip.py", line 614, in _run_setup_file
exec(codeobj, namespace, namespace)
File "/private/var/mobile/Containers/Data/Application/88E244A6-EF98-4A77-937A-8D0C39208B36/tmp/41d21074d4e64594933bdfdc412410c2/psutil-5.6.2/setup.py", line 257, in <module>
SystemExit: platform ios is not supported
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to add device support files to Xcode | Mac O'Clock |
Step 1: Get device support files · Step 2: Unzip & place files in Xcode package · Step 3: Restart Xcode.
Read more >Add back support for older iOS version? - Apple Developer
Add back support for older iOS version? ... For different reasons, I'm thinking of making the next version of an app iOS 13...
Read more >Xcode iPhoneOS DeviceSupport files (6.0 - 15.4) - GitHub
iPhoneOSDeviceSupport. Xcode iPhoneOS DeviceSupport (6.0 - 16.0) [WatchOS | tvOS];. Most recent releases: iOS 16.0 - Download iOS 15.6 - Download
Read more >Set up Google Workspace on an iOS device
Tap Allow to download the configuration profile. · Tap Close and then · Depending on your iOS version, do one of the following...
Read more >How to deploy on iOS 16 using Xcode 13 - Cristian Gutu
Xcode 13 or older can do this if you add device support files and turn developer mode ON, this is an extra step...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was wondering if there was any interest in reviving support for iOS. Since I want to add psutil and bpytop to iOS and macOS. Currently when I try to build psutil for iOS. I get this error.
building 'psutil._psutil_osx' extension creating build/temp.macosx-11.0-x86_64-3.9 creating build/temp.macosx-11.0-x86_64-3.9/psutil creating build/temp.macosx-11.0-x86_64-3.9/psutil/arch creating build/temp.macosx-11.0-x86_64-3.9/psutil/arch/osx cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O2 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=11.0 -isystem /Users/haydenseay/GitHub/Procursus/build_base/darwin-amd64/1700//opt/procursus/include -isystem /Users/haydenseay/GitHub/Procursus/build_base/darwin-amd64/1700//opt/procursus/include -F/Users/haydenseay/GitHub/Procursus/build_base/darwin-amd64/1700//opt/procursus/System/Library/Frameworks -F/Users/haydenseay/GitHub/Procursus/build_base/darwin-amd64/1700//opt/procursus/Library/Frameworks -O2 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=11.0 -isystem /Users/haydenseay/GitHub/Procursus/build_base/darwin-amd64/1700//opt/procursus/include -isystem /Users/haydenseay/GitHub/Procursus/build_base/darwin-amd64/1700//opt/procursus/include -F/Users/haydenseay/GitHub/Procursus/build_base/darwin-amd64/1700//opt/procursus/System/Library/Frameworks -F/Users/haydenseay/GitHub/Procursus/build_base/darwin-amd64/1700//opt/procursus/Library/Frameworks -O2 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -miphoneos-version-min=14.0 -isystem /Users/rolex/Procursus/build_base/iphoneos-arm64/1700/usr/include -isystem /Users/rolex/Procursus/build_base/iphoneos-arm64/1700/usr/local/include -F/Users/rolex/Procursus/build_base/iphoneos-arm64/1700/System/Library/Frameworks -F/Users/rolex/Procursus/build_base/iphoneos-arm64/1700/Library/Frameworks -O2 -arch arm64 -miphoneos-version-min=14.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -isystem /Users/rolex/Procursus/build_base/iphoneos-arm64/1700/usr/include -isystem /Users/rolex/Procursus/build_base/iphoneos-arm64/1700/usr/local/include -Wno-error-implicit-function-declaration -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=580 -DPSUTIL_OSX=1 -I/opt/procursus/include/python3.9 -c psutil/_psutil_common.c -o build/temp.macosx-11.0-x86_64-3.9/psutil/_psutil_common.o clang: error: invalid argument '-mmacosx-version-min=11.0' not allowed with '-miphoneos-version-min=14.0' clang: warning: using sysroot for 'iPhoneOS' but targeting 'MacOSX' [-Wincompatible-sysroot] clang: error: invalid argument '-mmacosx-version-min=11.0' not allowed with '-miphoneos-version-min=14.0' clang: warning: using sysroot for 'iPhoneOS' but targeting 'MacOSX' [-Wincompatible-sysroot] error: command '/usr/bin/cc' failed with exit code 1 gmake[1]: *** [python-psutil.mk:18: python-psutil] Error 1 gmake: *** [Makefile:749: rebuild-python-psutil-package] Error 2
I was able to successfully build psutil for macOS on both amd64 and arm64. I was hoping since arm64 for macOS and iOS are pretty similar. That clang was able to compile it correctly however it seems that assumption was wrong. I am guessing this means support for iOS needs to be added by the developers of psutil. If this is not case please let me know. I have very little knowledge on python. So I am sorry ahead of time if this is not the case.
Here is the little progress I made for psutil.
@giampaolo Were you able to get Python working on your iPhone?