#Building for ios

2 messages · Page 1 of 1 (latest)

unique elm
#

Getting a strange error when compiling anything that needs cc for aarch64-apple-ios on an x86_64 mac host.

I've tried uninstalling/reinstalling rustup and xcode simulators.

Compiling glob v0.3.1
error: linking with `cc` failed: exit status: 1
  |
  = note: env -u IPHONEOS_DEPLOYMENT_TARGET -u SDKROOT -u TVOS_DEPLOYMENT_TARGET PATH="/Users/A/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/bin:...[snip, bunch of stuff.]..."
  = note: ld: warning: ignoring file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libSystem.B.tbd': tapi error: missing required architecture x86_64 in file libSystem.B.tbd (4 slices)
          ld: warning: ignoring file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libSystem.B.tbd': tapi error: missing required architecture x86_64 in file libSystem.B.tbd (4 slices)
          ld: warning: ignoring file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libSystem.B.tbd': tapi error: missing required architecture x86_64 in file libSystem.B.tbd (4 slices)
          ld: Undefined symbols: [... snip, system syms ...]

Some relevant env vars:

CFLAGS=-I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos.sdk/usr/include -L /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos.sdk/usr/lib --target=aarch64-apple-ios
CFLAGS_aarch64-apple-ios=-I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos.sdk/usr/include -L /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos.sdk/usr/lib --target=aarch64-apple-ios
LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos.sdk/usr/lib:/usr/local/lib:/usr/lib:/lib
unique elm