uni-app iOS offline packaging
-
Download the latest 5 + SDK on DCloud
- Unzip the SDK
-
Select HBuilder-Hello, which is an XCode project, double-click HBuilder-Hello.xcodeproj directly to open the project
- Directory Structure
- In HBuilderX, select "Release-Native App-Local Package-Generate Local Packaged App Resources" in the menu, and the console will automatically start compiling the project and generate a www resource package.
4. Replace the www resource package in the XCode project with the resource package generated by yourself
- Open the manifest.json in the resource package, there will be one of our appid, copy it
- Rename the HelloH5 folder directly to the corresponding appid
- Open control.xml in Supporting Files
- There is an appid and appver, all replaced by the appid and version number of your project
- Replace the startup page and app logo
- Then replace the app information in General, the version number must be the same as that in the previous control.xml
- Then compile and run directly, you can run your uni-app project in XCode, or you can export the ipa package to publish the App Store.