uni-app iOS offline packaging

uni-app iOS offline packaging

  1. Download the latest 5 + SDK on DCloud

    • Unzip the SDK

image

  1. Select HBuilder-Hello, which is an XCode project, double-click HBuilder-Hello.xcodeproj directly to open the project

    • Directory Structure

image

  1. 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.

image

4. Replace the www resource package in the XCode project with the resource package generated by yourself

image

  1. Open the manifest.json in the resource package, there will be one of our appid, copy it

image

image

  1. Rename the HelloH5 folder directly to the corresponding appid

image

image

  1. Open control.xml in Supporting Files

image

  1. There is an appid and appver, all replaced by the appid and version number of your project

image

  1. Replace the startup page and app logo

image

image

  1. Then replace the app information in General, the version number must be the same as that in the previous control.xml

image

  1. 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.

Guess you like

Origin www.cnblogs.com/liuxiaokun/p/12684739.html