Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build ios target #595

Closed
qokelate opened this issue Jul 21, 2020 · 1 comment
Closed

How to build ios target #595

qokelate opened this issue Jul 21, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@qokelate
Copy link

qokelate commented Jul 21, 2020

Describe the bug

Crash on startup:

NPClient`github.com/klauspost/cpuid.getProcFeatures:
-> 0x1002bdee0 <+0>: mrs x0, ID_AA64PFR0_EL1 //Thread 6: EXC_BAD_INSTRUCTION (code=1, subcode=0xd5380400)
0x1002bdee4 <+4>: str x0, [sp, #0x8]
0x1002bdee8 <+8>: ret
0x1002bdeec <+12>: .long 0x00000000 ; unknown opcode

To Reproduce
Steps to reproduce the behavior:

  1. git clone 'https://github.com/ehang-io/nps.git' --recursive
  2. rename main to other package name
  3. gomobile bind -target=ios ./cmd/npc
  4. link sdk to ios project
  5. start demo

Client (please complete the following information):

  • OS: ios 9.0.1
  • ARCH: arm64
  • Tunnel TCP
  • Version commit:54743588bb90e4ae4d1ebddf685e73287d8d43e0
@qokelate qokelate added the bug Something isn't working label Jul 21, 2020
@ffdfgdfg
Copy link
Collaborator

ffdfgdfg commented Aug 1, 2020

https://github.com/ffdfgdfg/npc_sdk/blob/b095c2e011f813b28e56aeb4767de2d49a3cd50a/build.sh
Demo here, you should not build npc directly
But android sdk crash too, there are some issue with go mobile

kiririx pushed a commit to kiririx/nps that referenced this issue Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants