after switching to Xcode 9 I am getting errors, it looks like this.
I blanked the project and classes names, but there is a list of classess ending with .o suffix. In Xcode 8.3.2 everything works. I got 2 projects, one is library that is building without problems. Another project is test app, that is pointing to the library by :path directive in Podfile. In both projects build settings -> architectures is set to standard arichitectures, build active architectures only is set to DEBUG: Yes, RELEASE: No. Have you come across this problem? Thanks upfront for the help.
The error Undefined symbols for architecture arm64: "_OBJC_CLASS_$_SKAdImpression" during the iOS build usually happens if XCode or CocoaPods version is lower than required. To fix it update XCode to 12.5 or higher and CocoaPods to 1.10. 0 or higher.
Why Is the Undefined Symbols for Architecture x86_64: Error Happening? This error is happening due to the lack of included values inside the declared statements in your code. The browser is going to render the information incorrectly and show this error, especially if you are working with Main and Similarity tools.
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_xxx", referenced from: objc-class-ref in yyy.o. This generally means, you are calling "xxx" (it may be a framework or class) from the class "yyy". The compiler can not locate the "xxx" so this error occurs.
A symbol remains undefined when a symbol reference in a relocatable object is never matched to a symbol definition. Similarly, if a shared object is used to create a dynamic executable and leaves an unresolved symbol definition, an undefined symbol error results.
Ran into similar problem. Just post it here in case it can help anyone.
Was using class AbcService from a framework (written in Swift 3 and by ourselves) in our app's Objective-c class B. After upgrading from Xcode8/Swift3 to Xcode9/Swift4 it failed to build an archive for the release config, due to Undefined symbols
error of this class during linking:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$__TtC15XxxabcServices17AbcService", referenced from:
The weird thing is, it worked fine to archive the debug config, and for running in emulator.
Spent almost 1 day to find out the root cause: the Swift class AbcService in the framework was missing a public
modifier.
Simple trick here: Go -> Go To Folder "/Library/Developer/Xcode" delete Derived data next clean your project then Run .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With