[GH-ISSUE #1469] 如何为iOS编译 #1158

Closed
opened 2026-05-05 12:44:39 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @the-eric-kwok on GitHub (Oct 16, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1469

手头有一台iPhone 6s,打算做一个远程下载服务器,发现没有适合在iOS上面运行的二进制文件,直接修改Makefile.cross-compile试着生成 Darwin Arm64 的二进制文件,结果报错:

env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o ./frps_darwin_arm64 ./cmd/frpc# github.com/fatedier/frp/cmd/frpc
/usr/lib/go-1.12/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld:无法识别的选项‘-pagezero_size’
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status

make: *** [Makefile.cross-compiles:11:app] 错误 2

也试过用iOS来编译但是iOS上面的go版本太低了……

Originally created by @the-eric-kwok on GitHub (Oct 16, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1469 手头有一台iPhone 6s,打算做一个远程下载服务器,发现没有适合在iOS上面运行的二进制文件,直接修改Makefile.cross-compile试着生成 Darwin Arm64 的二进制文件,结果报错: ``` env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o ./frps_darwin_arm64 ./cmd/frpc# github.com/fatedier/frp/cmd/frpc /usr/lib/go-1.12/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /usr/bin/ld:无法识别的选项‘-pagezero_size’ /usr/bin/ld: use the --help option for usage information collect2: error: ld returned 1 exit status make: *** [Makefile.cross-compiles:11:app] 错误 2 ``` 也试过用iOS来编译但是iOS上面的go版本太低了……
Author
Owner

@HaidyCao commented on GitHub (Oct 21, 2019):

iOS可以在App Store下载,搜索FRP即可

<!-- gh-comment-id:544540111 --> @HaidyCao commented on GitHub (Oct 21, 2019): iOS可以在App Store下载,搜索FRP即可
Author
Owner

@the-eric-kwok commented on GitHub (Oct 21, 2019):

我的是越狱的iOS,希望把frp做成一个daemon放在后台运行

在 2019年10月21日,22:28,Haidy notifications@github.com 写道:

iOS可以在App Store下载,搜索FRP即可


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<!-- gh-comment-id:544542235 --> @the-eric-kwok commented on GitHub (Oct 21, 2019): 我的是越狱的iOS,希望把frp做成一个daemon放在后台运行 > 在 2019年10月21日,22:28,Haidy <notifications@github.com> 写道: > > iOS可以在App Store下载,搜索FRP即可 > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
Author
Owner

@fatedier commented on GitHub (Oct 22, 2019):

可以尝试下 gomobile 这个项目。

<!-- gh-comment-id:544786822 --> @fatedier commented on GitHub (Oct 22, 2019): 可以尝试下 gomobile 这个项目。
Author
Owner

@ZepengW commented on GitHub (Aug 23, 2021):

iOS可以在App Store下载,搜索FRP即可

你好,现在在App Store搜不到FRP了,请问是国区下架了吗?请问还能在哪里下载吗?

<!-- gh-comment-id:903692284 --> @ZepengW commented on GitHub (Aug 23, 2021): > iOS可以在App Store下载,搜索FRP即可 你好,现在在App Store搜不到FRP了,请问是国区下架了吗?请问还能在哪里下载吗?
Author
Owner

@davidoffxw commented on GitHub (Dec 31, 2022):

iOS可以在App Store下载,搜索FRP即可

你好,现在在App Store搜不到FRP了,请问是国区下架了吗?请问还能在哪里下载吗?

我最近也想搞一下iPhone6s的frpc 请问你有编译好嘛?
我在issue里面找到几年前一位用户编译的朋友,但是我运行依旧killed 9

<!-- gh-comment-id:1368224380 --> @davidoffxw commented on GitHub (Dec 31, 2022): > > iOS可以在App Store下载,搜索FRP即可 > > > > 你好,现在在App Store搜不到FRP了,请问是国区下架了吗?请问还能在哪里下载吗? 我最近也想搞一下iPhone6s的frpc 请问你有编译好嘛? 我在issue里面找到几年前一位用户编译的朋友,但是我运行依旧killed 9
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1158
No description provided.