zip -r output.ipa .
If the ZIP file contains Xcode project files ( .xcodeproj , .xcworkspace ) and source code files ( .swift , .m , .h ), a simple file operation is impossible.
If the Info.plist file is missing or corrupted inside the original ZIP, the IPA will be invalid.
Converting unauthorized or pirated IPAs is illegal in most jurisdictions. This guide is for educational purposes and legitimate development only.