Hi!
Xcode 14.3 on MacOS 13.3.1
I'm developing in iOS app targeting iOS 14.0 and higher. I've included 4 cocoa pods in my project and my code has compiled and run just fine.
When I started to try to build an archive to submit to the app store, things started falling apart.
Now nothing compiles for simulators and test devices and I end up with linking errors with undefined symbols. I've tried clean builds, pod updating, pod installing, explicitly importing the modules in my swift code. I'm ready to pull my hair out.
Undefined symbols for architecture arm64: "OBJC_CLASS$_SFGeometryUtils", referenced from: objc-class-ref in MGRS.o ld: symbol(s) not found for architecture arm64
Any suggestions? Randomly I can get past this road block and then I run into:
cannot find type 'TIFFImage' in scope var tiffImage: TIFFImage!
Then randomly back to unresolved symbols by linker.
Thanks,
Bobby
Here are the steps I've taken to get around this.
- Close Xcode
- rm -rf Pods
- rm Podfile.lock
- pod install
- remove Xcode cache from ~/Library/Developer/Xcode/DerivedData/
- re-start Xcode, re-load project workspace and then build.
Seems to be that how cocoapods are added to an Xcode project is somewhat flaky?