i integrated PDFTron with cocoapods.
I can build the project on the simulator, but not on a real device.
The error message is: “building for iOS, but linking in dylib file built for iOS Simulator for architecture arm64”
It is possible that with older versions of Xcode, you may need to clean the project/workspace when switching from a simulator destination to a device destination. Does cleaning the project/workspace help?
Unfortunately we’re not able to reproduce the linker error on our end, using Xcode version 12.5.
Otherwise, it might be necessary to update Xcode to the latest version, as there have been recent improvements to the XCFramework support in Xcode.