section __TEXT/__text address out of range file for architecture arm64

Hi there. I'm trying to run objc app with Iobfs4proxy framework. I got such error.

ld: warning: directory not found for option '-F/Users/ivan/Projects/buddy-onion/Tob/../Carthage/Build/iOS'

ld: in /Users/ivan/Projects/buddy-onion/Tob/Iobfs4proxy.framework/Iobfs4proxy(go.o), section __TEXT/__text address out of range file '/Users/ivan/Projects/buddy-onion/Tob/Iobfs4proxy.framework/Iobfs4proxy' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Device: Air m1(2020) OS: Monterey 12.2.1 XCode: 13.3 iOS: 15.3.1 (real device)

Replies

Hi there. I'm trying to run objc app with Iobfs4proxy framework. I got such error. ld: warning: directory not found for option '-F/Users/ivan/Projects/buddy-onion/Tob/../Carthage/Build/iOS'

If you build the framework and drag it into Xcode and let Xcode link up the framework do you still see this error?

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
  • I, do. (I've dragged into 'Frameworks,Libriaries, and Embedded Content' section).

    Actually restoring a framework can be a little tricky. build.sh was written in golang 6 years ago. So I tried to install it 1.16 (m1 support) and run it. The way I understood that the "gomobile" package that the framework should create has changed too much.

Add a Comment

I got rid of this error by installing XCode 12.0.