2

Sorry to have to ask this. This relates to Undefined symbols for architecture x86_64 when building for ARM64, but I only have Xcode 4 and 5 for testing.

Does Xcode 6 use x86_64 for the iOS simulator?


This seems to be related: Xcode 6 iOS Simulator (iPad2, iPhone5) now Release Mode now running x86_64. Debug i386. But I can't quite make out the finer points the person asking the question is making.

Community
  • 1
  • 1
jww
  • 97,681
  • 90
  • 411
  • 885

1 Answers1

5

It depends. It uses x86_64 when building for a 64-bit simulated device. It uses i386 when building for a 32-bit simulated device.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
  • 1
    Thanks @rmaddy. So I'm clear when Xcode 6 is being used... When I build a fat library for iOS using the SDK from the command line, then I should include ARMv7 (device), ARMv7s (device), ARM64 (device), i386 (simulator) and x86_64 (simulator) architectures? Is that correct? – jww Jan 22 '15 at 00:26
  • 1
    This is interesting... I just built a test app under Xcode 5/iOS 7 for ARM64 - iPad Retina (64-bit) Simulator. It used i386: `Non-fat file: .../Library/Developer/Xcode/DerivedData/ios-test-fnfmgifegrbmzffiwuillterfkcp/Build/Products/Debug-iphonesimulator/ios-test.app/ios-test is architecture: i386`. So Xcode 6 did indeed change if the information in your answer is accurate. – jww Jan 22 '15 at 00:51
  • This is interesting, too... I can build it with Xcode 5/iOS 7 by using `-miphoneos-version-min=8`. – jww Jan 22 '15 at 03:05