I am facing an issue when building a project that builds without issue in Xcode 13.4.1, but hits a build error in Xcode 14. Specifically, this project uses CocoaPods and references a specific pod, "AdobeMobileSDK". In a sample project where I can replicate this issue, my Podfile looks like;
target 'AdobeTestProject' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! # Pods for AdobeTestProject pod "AdobeMobileSDK" end
I receive a build error reporting;
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_ADBMobile", referenced from: objc-class-ref in ContentView.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
After digging around a bit, I'm noticing that in Xcode 13.4, during the linking phase, Xcode issues a command that includes
-lAdobeMobile. However, in Xcode 14, this is not the case. If I manually add
-lAdobeMobile to the Other Linker Flags in my project settings, I can resolve this error, but this workaround is not suitable for all use cases (in a more complex project, adding
-lAdobeMobile does not rectify the issue).
I recognize this is likely some influenced by the SDK itself, but is there any documented change for Xcode 14 that would cause this build error only in Xcode 14 and not Xcode 13.4.1? This issue occurs regardless of whether Xcode 14 is running in Rosetta or not.