PdfNet issue, as I reinstalled pods, the PDFNet version updated to 11 from 3, and then I started to get following error during build

Failed to archive /Users/builder/clone/ios/BuildWare.xcworkspace. The following build commands failed:

CompileC /Users/builder/Library/Developer/Xcode/DerivedData/BuildWare-cifjyjfpvyoytceociyfprecerej/Build/Intermediates.noindex/ArchiveIntermediates/BuildWare/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/fmt.build/Objects-normal/arm64/format.o /Users/builder/clone/ios/Pods/fmt/src/format.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target ‘fmt’ from project ‘Pods’)

note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target ‘FirebaseCoreExtension-FirebaseCoreExtension_Privacy’ from project ‘Pods’)
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target ‘FirebaseCoreExtension’ from project ‘Pods’)
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target ‘FirebaseCore-FirebaseCore_Privacy’ from project ‘Pods’)
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target ‘FirebaseCore’ from project ‘Pods’)
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target ‘DoubleConversion’ from project ‘Pods’)
note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target ‘BEMCheckBox’ from project ‘Pods’)

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


Your issue seems to stem from a version mismatch or compatibility problem after updating your pods. The error messages you’re encountering indicate problems with the build configuration, particularly related to the Swift optimization level and some C++ compilation issues. This might be due to changes in the dependencies or configuration settings that were updated with the new version of the pods.

Some things you can try:

  • Ensure that your Podfile specifies the correct versions of dependencies and that they are compatible with each other.

  • Check if any additional build settings need to be adjusted for the new version of the PDFNet SDK, especially regarding Swift version and optimization levels.

  • Clean your build folder in Xcode (Product → Clean Build Folder) and then try rebuilding your project.

  • Review the build settings for your project and ensure that they align with the requirements of the updated SDK versions.

  • Ensure that your Xcode and CocoaPods are updated to the latest versions that are compatible with your dependencies.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

Hello, and thank you for reaching out for support through our Forum. After reviewing the error log, it doesn’t seem like anything concerning the Apryse library. It seems there’s an issue with the fmt library? Would you be able to provide more insight as to what this library is? You can create a support ticket here: Submit a ticket : Apryse