unsupported Swift architecture - Could not build Objective-C module

Hi, I did a migration to Xcode 14.1 and compiled my library to be distributed with Pods, after of that the library worked perfectly, but now I have the next error when I try to use it in my project:

  • Could not build Objective-C module 'BCPCoreResourcesCommon'
  • Unsupported Swift architecture

I don't now if the problem is with some extra configuration when I build the library or in my project to install it correctly.

The library is compiled though a Job using:

  • xcodebuild clean build -project ./Example/Pods/Pods.xcodeproj -scheme LibraryScheme -configuration Release OTHER_CFLAGS=-fembed-bitcode ENABLE_BITCODE=YES BITCODE_GENERATION_MODE=bitcode -sdk iphonesimulator
  • xcodebuild clean build -project ./Example/Pods/Pods.xcodeproj -scheme LibraryScheme -configuration Release OTHER_CFLAGS=-fembed-bitcode ENABLE_BITCODE=YES BITCODE_GENERATION_MODE=bitcode -sdk iphoneos

and using lipo to generate a fat file

unsupported Swift architecture - Could not build Objective-C module
 
 
Q