当前位置:网站首页>利用小程序快速生成App,只需七步
利用小程序快速生成App,只需七步
2022-06-12 17:43:00 【speedoooo】
业务背景
如今使用小程序的场景已深入到我们生活中的方方面面,你是否有想过,已开发好的小程序是否不仅能运行在微信平台中,还能运行在我们自己的app中呢?是否可以用一个小程序生成一个app呢?答案是可以的!七个步骤就能完成!闲话少说,我们马上动手试试吧!
一、准备工作
打开FinClip官网https://www.finclip.com/,在开发者中心->资源下载中心,下载并安装FIDE


二、新增小程序
登录finclip官网,在小程序管理->我的小程序新增一个小程序。

比如新增了一个小程序叫newapp3,那么名称写newapp3,分类、标签、简介写其他即可。
三、新增合作应用
应用管理->新增合作应用

给这个应用增加一个Bundle ID

在newapp3一栏点击关联小程序,找到刚刚新建的newapp3,新增关联

四、创建工程
回到桌面,在下载一栏,新增一个空文件夹,命名它为newapp3。打开IDE工具,项目目录选择刚刚创建的newapp3文件夹,APP ID选择newapp3,然后点击完成。

之后,IDE会为我们创建默认的hello world代码。我们不妨以这个hello world作为我们生成app的示例。
五、将小程序提交到云端
1.上传

2.审核
回到finclip官网,在小程序管理->我的小程序找到newapp3->详情->审核版本->新增审核

勾选刚刚上传的首次发布版本,点下一步->下一步->提交

此时,该版本会进入审核的队列。
3.同意审核
我们回到小程序管理->小程序上架审核->详情一栏,点击同意即可同意此次审核。

4.上架
在小程序管理->我的小程序找到newapp3->详情->审核版本->版本上架->确认上架

此时,hello world 的代码就成功提交到云端拉。
六、获得App代码
回到IDE, 点击生成App,下一步->下一步。导出目录选择下载,点击完成,生成的App代码就导出到下载目录了。

App生成成功后,打开所在目录。目录里有iOS和android的代码。我们以iOS为例,把app运行起来。打开终端,cd到finclip_demo/ios/finclip_demo,运行pod install来拉取依赖①。

看到这个绿色的字样则代表依赖拉取成功了,那么finclip_demo就是完整的代码包了拉~
七、运行
双击打开finclip_demo.xcworkspace,选择模拟器,然后点击运行


后记
一、更新app不需要修改app的代码,只需要在小程序中修改代码,然后重复走上文中第五步流程即可。
备注
①需要安装cocoapod,百度搜索如何安装cocoapod即可。
本文首发于凡泰极客博客,作者:胡健辉
边栏推荐
- TensorFlow从网络读取数据
- Figma从入门到放弃
- The R language uses the PDF function to save the visual image results to the PDF file, uses the PDF function to open the image device, uses the dev.off function to close the image device, and customiz
- 新媒体运营素材网站分享,让你创作时事半功倍
- Advanced mountain -asp Net core router basic use demo 0.1
- Use of split method of string
- Continued 2 asp Net core router basic use demonstration 0.2 acquisition of default controller data
- Byte flybook Human Resources Kit three sides
- Evolution and thinking of Taobao native R & D mode | DX R & D mode
- Is Huishang futures company reliable in opening accounts and safe in trading?
猜你喜欢

How to win the "Olympic Games" in retail technology for jd.com, the learning tyrant of the "regular examination"?

Introduction to several common functions of fiddler packet capturing (stop packet capturing, clear session window contents, filter requests, decode, set breakpoints...)

JDBC几个坑

Guitar Pro tutorial how to set up a MIDI keyboard

Cesium parabolic equation

Deep interest evolution network for click through rate prediction

Gerrit triggers Jenkins sonarqube scan

进阶之大山-asp.net core 路由程序基础使用演示0.1

Hangzhou AI developer meetup registration opens!

Evolution and thinking of Taobao native R & D mode | DX R & D mode
随机推荐
Is Huishang futures company reliable in opening accounts and safe in trading?
A variety of Qt development methods, which do you choose?
Introduction to several common functions of fiddler packet capturing (stop packet capturing, clear session window contents, filter requests, decode, set breakpoints...)
MIPS 通用寄存器 + 指令
C# 业务流水号规则生成组件
山东大学软件学院项目实训-创新实训-山大软院网络攻防靶场实验平台(二十五)-项目个人总结
String s = null ; String s = new String();String s =““ ;String s ;有什么区别?
Figma from getting started to giving up
Arm64栈回溯
Arm64 Stack backtrack
Enterprise internal online training system source code
Database SQL operation Basics
Reconnaître l'originalité de la fonction
Use GCC's PGO (profile guided optimization) to optimize the entire system
Idea common shortcut keys
Array sorts in the specified order
徽商期货开户可靠吗?资金安全吗?
Hangzhou AI developer meetup registration opens!
Tensorflow reads data from the network
Some introduction to FPC flexible circuit board design