1. Open the terminal
2. In the terminal input CD + space to drag the project file directly to the terminal, and then enter
3. In terminal input xcodebuild, enter
Then you can find a build folder in the project file
In the build folder, there is a Release-iphoneos folder in which the. app file is generated in the Release-iphoneos file
4. Enter XCRUN-SDK Iphoneos packageapplication-v in the terminal and drag the. app file directly into the terminal
Because now it's under the current path (this picture is under the test path), so delete the current path (this image removes the path before the test)
5. Continue typing-o + space at the terminal, then drag the. app file directly into the terminal, then change the. App to. IPA, enter
6. Under the current path of the. app file, you find that the. IPA file was generated
IOS package generates IPA files (packaged with terminal commands)