Installation
Add the NexPDF Swift package to an iOS or macOS app with Swift Package Manager or CocoaPods.
Add the package
In Xcode, choose File > Add Package Dependencies, enter
https://github.com/nexdevit/nexpdf-swift and pick version 1.1.0. Add the NexPdf product to
your app target, and NexPdfUI too if you want the ready-made reader.
The released package downloads NexPdfCore.xcframework from the
v1.1.0 release.
Link the C++ runtime
If the app fails to link with missing C++ symbols, add -lc++ to Other Linker Flags
(OTHER_LDFLAGS). The NexPDF iOS demo app sets it.
Check the installation
import NexPdf
print("NexPDF", NexPdf.version)Bundle the license
Add nexpdf_license.xml to the app target so it is copied into the bundle, then activate it at
start-up as described in License.