-1

I'm trying to bridge an Objective-C file to Swift, and I've done everything outlined in this Apple tutorial: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html

Regardless, I go to run my app, and the build fails every time, complaining to me about a Mach-O Linker Error.

This is the exact error message:

 Undefined symbols for architecture x86_64:
   "_OBJC_CLASS_$_LeDiscovery", referenced from:
       objc-class-ref in LeDataService.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see invocation)
adamsloma
  • 179
  • 1
  • 1
  • 8

2 Answers2

0

Try this

GO to your Target -> Select your project -> Build Settings

set Build Active Architectures Only to NO.

Hope it helps.

Pradumna Patil
  • 2,180
  • 3
  • 17
  • 46
0

Add arm64 to your valid architectures.

Target -> Build Settings -> Architectures -> Valid Architectures

my valid architectures are:

arm64 armv7 armv7s
AliNadi
  • 500
  • 4
  • 12