mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #614] [FEATURE REQUEST] can frpc be built and run on jailbreak iOS devices? #478
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#478
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yi on GitHub (Jan 23, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/614
We have a couple of jailbreak iOS devices and realy wish to run frpc on them in order to provide remote shell access over the internet.
I've learned that golang has a subrepository to support iOS. Would it be possible to build frp for iOS commadline? Could you guys please shred some light on this.
thanks.
@fatedier commented on GitHub (Jan 23, 2018):
I have no plan for that, but you can have a try.
@yi commented on GitHub (Jan 23, 2018):
好的
@frakman1 commented on GitHub (May 4, 2018):
This would be really useful. I've tried to run an ARM/iOS compiled ngrok on an jailbroken phone once and it failed. Please let me know if this works for you @yi
Thanks
@yi commented on GitHub (May 4, 2018):
hi @frakman1
with help from @fatedier , we'd managed to run frpc on iOS. It works quite well on iOS7 actually.
following is the build command.
Run that command on a MacOS, which has XCode installed.
If you encounter errors like:
xcrun: error: SDK "iphoneos" cannot be located. Please set XCode path bysudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/@frakman1 commented on GitHub (May 4, 2018):
Thanks @yi!
I'll try it later when I have my Mac all setup. In the meantime, do you have a copy of the binary I can try?
@caj380 commented on GitHub (May 4, 2018):
Try this: https://drive.google.com/open?id=1N7KWvm3iVwLhsTCqnGc4gs19p0sR8MKS
I went ahead and compiled it for you.
@frakman1 commented on GitHub (May 4, 2018):
Thanks @caj380 !
I just tried it and keep getting this error:
@imKenny-cn commented on GitHub (Jul 27, 2020):
when i run it on ios10.2 ,i get this error:Killed: 9
@imKenny-cn commented on GitHub (Jul 27, 2020):
@frakman1 commented on GitHub (Jul 27, 2020):
Well I decided to try this again.
I compiled it on my Mac using the
CCcommand above (Thanks for that).It created a
Mach-O executable arm_v7binaryWhen it finished, I transferred the file
frpc_darwinto my iOS device and ran into the dreadedKilled: 9error.I then ran this from the iOS terminal:
ldid -S frpc_darwinchmod a+x frpc_darwinand got it to work.
Progress!
Once I added a correctly configured
frpc.inito the filesystem, it now runs correctly on my iOS 10.3.2 jailbroken iPhone.I've attached the file that works on my iPhone:
frpc_darwin.zip
@sazima commented on GitHub (Sep 24, 2022):
Bad CPU type in executableon IOS12.5.5@frakman1 commented on GitHub (Sep 24, 2022):
What iPhone are you on?
You may be on
arm64-only and the binary is compiled forarm_v7architecture.@frakman1 commented on GitHub (Sep 24, 2022):
frpc_darwin_arm64.zip
I tried compiling it on a modern Mac (Ventura, M1 silicon) and finally got it to work.
I had to change:
GOOSfromdarwin->iosGOARCHfromarm->arm64I tested it on the same iPhoneSE and it works
On iPhone:
(I renamed it to
frpc_darwin_arm64)Go environment setup on Mac for reference:
@davidoffxw commented on GitHub (Dec 31, 2022):
thanks for your support!
i uesd the file from you,but i got an error:killed 9.
i try to ldid,but the error stills.
@davidoffxw commented on GitHub (Dec 31, 2022):
i used iphone 6s ios13.5