Build Pods project fail on Xcode 13

Hello,

I have an ionic Capacitor app that is building correctly on Xcode 12. Also it builds correctly on web using ionic serve. I have a new MacBook and I downloaded Xcode 13. I pulled from GIT all my project files. The project builds correctly as described above, but when I try to build it in Xcode the Pods project fails.

  • I do have also few Cordova plug-ins that were added via Capacitor.

This is the error I am seeing:

Showing Recent Errors Only
Ld /Users/shlomoavigdor/Library/Developer/Xcode/DerivedData/App-atulfwlyklheuwfnukergpjygoqu/Build/Products/Debug-iphonesimulator/CordovaPlugins/CordovaPlugins.framework/CordovaPlugins normal (in target ‘CordovaPlugins’ from project ‘Pods’)
cd /Users/shlomoavigdor/Development/KliksApp/Git/kliksapp/ios/App/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios12.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk -L/Users/shlomoavigdor/Library/Developer/Xcode/DerivedData/App-atulfwlyklheuwfnukergpjygoqu/Build/Products/Debug-iphonesimulator/CordovaPlugins -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk/usr/lib/swift -F/Users/shlomoavigdor/Library/Developer/Xcode/DerivedData/App-atulfwlyklheuwfnukergpjygoqu/Build/Products/Debug-iphonesimulator/CordovaPlugins -F/Users/shlomoavigdor/Library/Developer/Xcode/DerivedData/App-atulfwlyklheuwfnukergpjygoqu/Build/Products/Debug-iphonesimulator/CapacitorCordova -filelist /Users/shlomoavigdor/Library/Developer/Xcode/DerivedData/App-atulfwlyklheuwfnukergpjygoqu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CordovaPlugins.build/Objects-normal/x86_64/CordovaPlugins.LinkFileList -install_name @rpath/CordovaPlugins.framework/CordovaPlugins -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/shlomoavigdor/Library/Developer/Xcode/DerivedData/App-atulfwlyklheuwfnukergpjygoqu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CordovaPlugins.build/Objects-normal/x86_64/CordovaPlugins_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/shlomoavigdor/Library/Developer/Xcode/DerivedData/App-atulfwlyklheuwfnukergpjygoqu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CordovaPlugins.build/Objects-normal/x86_64/CordovaPlugins.swiftmodule -framework AVFoundation -framework AudioToolbox -framework Cordova -framework CoreMotion -framework Foundation -framework MessageUI -framework MobileCoreServices -framework StoreKit -framework WebKit -weak_framework AudioToolbox -weak_framework MessageUI -weak_framework Social -framework AudioToolbox -framework AVFoundation -framework CoreMotion -framework Foundation -framework MessageUI -framework MobileCoreServices -framework StoreKit -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/shlomoavigdor/Library/Developer/Xcode/DerivedData/App-atulfwlyklheuwfnukergpjygoqu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CordovaPlugins.build/Objects-normal/x86_64/CordovaPlugins_dependency_info.dat -o /Users/shlomoavigdor/Library/Developer/Xcode/DerivedData/App-atulfwlyklheuwfnukergpjygoqu/Build/Products/Debug-iphonesimulator/CordovaPlugins/CordovaPlugins.framework/CordovaPlugins

Undefined symbols for architecture x86_64:
“type metadata accessor for UniformTypeIdentifiers.UTType”, referenced from:
CordovaPlugins.ChooserUIDocumentPickerViewController.__allocating_init(forOpeningContentTypes: [UniformTypeIdentifiers.UTType], asCopy: Swift.Bool) → CordovaPlugins.ChooserUIDocumentPickerViewController in Chooser.o
CordovaPlugins.ChooserUIDocumentPickerViewController.init(forOpeningContentTypes: [UniformTypeIdentifiers.UTType], asCopy: Swift.Bool) → CordovaPlugins.ChooserUIDocumentPickerViewController in Chooser.o
@objc CordovaPlugins.ChooserUIDocumentPickerViewController.init(forOpeningContentTypes: [UniformTypeIdentifiers.UTType], asCopy: Swift.Bool) → CordovaPlugins.ChooserUIDocumentPickerViewController in Chooser.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any help is appriciated.

1 Like

Hey…i’m also facing the same issue, did you find any solution?