This is great, and works offline!
This is the only one I have found which generates the codes on device, and for that, it gets five stars.

This utility app scans and generates a wide variety of 1D and 2D barcodes. It features real-time augmented reality scanning and allows for easy export of generated codes. The app also includes face detection capabilities.
2.3.0
November 7, 2023
iOS 17 support Minor stability enhancements
Barcode Factory + can scan a comprehensive list of 1D and 2D barcode symbologies including Aztec, Codabar, Code-128, Code-39, Data Matrix, EAN-13, EAN-8, GS-1 Databar, Interleaved 2 of 5, ITF-14, MicroQR, PDF-417, QR Code, and UPC-E. It also supports inverted scans.
Barcode Factory + allows users to generate barcodes in Aztec, Codabar, Code-128B, Code-39, Interleaved 2 of 5, PDF-417, and QR Code formats. It can also generate inverted versions of these codes.
No, Barcode Factory + is a paid application and does not contain advertisements.
Barcode Factory + is available for iPhone, iPad, and iPod devices.
The latest version, 2.3.0, was released on November 7, 2023. The app is actively maintained by its developer.
Barcode Factory + has an age rating of 4+, making it suitable for a wide range of users.
Yes, Barcode Factory + includes a face detection feature that can detect up to 10 faces at once in real-time during AR scans.
Generated barcodes can be exported by long-pressing to share via email, AirPrint, iMessage, social media, or the Photo Gallery. They can also be dragged and dropped to other apps in split-screen mode.