当前位置:网站首页>利用小程序快速生成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即可。
本文首发于凡泰极客博客,作者:胡健辉
边栏推荐
- C# 业务流水号规则生成组件
- 406. reconstruct the queue based on height
- 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?
- Idea common shortcut keys
- 二分查找的理解
- 《用户体验要素:以用户为中心的产品设计》笔记
- Hangzhou AI developer meetup registration opens!
- Tcp/ip family structure and protocol of tcp/ip series overview
- R language arma-garch-copula model and financial time series case
猜你喜欢

Byte flybook Human Resources Kit three sides

vant3+ts+pinia tab选项卡列表页面点击进详情,详情页返回tab高亮在原位置,刷新高亮默认在第一项

TensorFlow求梯度时提示TypeError: unsupported operand type(s) for *: ‘float‘ and ‘NoneType‘

JDBC快速入门教程

The significance of writing technology blog

C#操作数据库增查业务数据值内容案例学校表

C operation database added business data value content case school table

Sizepolicy policy in layout management
Goframe gredis configuration management | comparison of configuration files and configuration methods

R language arma-garch-copula model and financial time series case
随机推荐
The R language uses the tabpct function of the epidisplay package to generate a two-dimensional contingency table, and uses the mosaic diagram to visualize the contingency table (two-dimensional conti
《用户体验要素:以用户为中心的产品设计》笔记
bug记录:更新数据库时报错:Data truncation: Incorrect datetime value:
Is Huishang futures company reliable in opening accounts and safe in trading?
JDBC quick start tutorial
山东大学软件学院项目实训-创新实训-山大软院网络攻防靶场实验平台(二十五)-项目个人总结
Tidb Hackathon 2021 - pcloud: conduct icloud pcloud team interview on the database
Unprecedented analysis of Milvus source code architecture
Soringboot下RestTemplateConfig 配置打印请求响应日志
Alibaba cloud image station supports IPv6!
进阶之大山-asp.net core 路由程序基础使用演示0.1
Vulnhub[DC3]
Compilation optimization of performance optimization
Gerrit triggers Jenkins sonarqube scan
Graphical data model for system design
Kali2022安装armitage
龙芯处理器内核中断讲解
WinForm, crystal report making
32-bit MCU mm32f0040 with smart micro high performance M0 kernel
(7) Loop statement for