粉丝635获赞2134


hi, there flutter developer if you're watching this video i'm going to assume you've already created a flutter app that looks and feels great on ios and now you're ready to deploy it to the app store like the wondrous app that i have here before we jump in there's a few prerequisites that you'll need to have first to build a release in ios app make sure that you have xcode installed on your mac computer second to publish your app to the app store make sure that your app adheres to the app store review guidelines and finally you'll need to be enrolled in the apple developer program no worries if you're not you can find a link to sign up below now that we've got those pre rex out of the way let's get started start by registering your app's bundle id you can register a bundle id with your apple development team by going to apple's identifiers page under certificates ids and profiles and then filling out the details of your app if you haven't heard of a bundle id before it's a unique identifier for your app apple encourages reverse domain name notation to avoid conflicts with other apps let's say you work at a company where you use the domain my company com in that case all of your app bundle ids might start with com my company if you created an app called my app the entire bundle id could look something like this com my company dot my app once that's done create a record for your app in app store connect which you'll use to submit and manage your app head over to the apps page under app store connect and click the plus button to create a new record next fill in the details like the name and the target platform then select the bundle id that you registered now that you're all set with your record head over to xcode to double check some project settings oh and by the way if you're looking for more information on how flutter works with xcode then check out our video flutter for ios developers open up the relevant ios files in xcode by right clicking on the ios folder in your flutter app project or run this command on the terminal from your project root directory to view your app settings open up the runner target take a look at the general tab add a category and a display name for your app and check the bunnel identifier if you don't explicitly set your org footer fills it in with a placeholder reversed domain com example plus the name of your app quick tip you can save time and skip this step by passing your reverse domain org as a parameter when you create a flutter project or just modify the settings in vs code so all your new flutter apps will use that org domain either way you'll need to make sure that this bundle identifier matches the one you registered earlier in addition to confirming the identity of your app make sure that the deployment information is correct specify the minimum version of ios that your app users must have if your app or plug ins make use of newer apis you'll need to make sure that this meets the minimum requirement next up head to the signing and capabilities tab before we talk through the settings it's helpful to understand just what code signing is code signing assures users that your app is from a known and approved source and hasn't been tampered with before your app can be run on a device or submitted to the app store its binary must be signed with a certificate that's issued by apple the certificate basically says that you are who you say you are and when you're ready to distribute your app a provisioning profile is used to tie your certificates to your app id and often arises your app to use particular services thankfully xcode has a setting to automatically manage app signing for you and flutter projects haven't enabled by default to use it specify the development team that should publish the app now on to adding your app icon you may have noticed that flutter creates a placeholder icon the infamous flutter f in xcode click on assets in the runner project here you see the different sized icons based on their usage historically developers would use an app icon generator to create all the different file sizes based on the single input, but if you're using xcode 14 or later you can just change the setting to use a single 1024 by 1024 image and upload one icon okay so we have our settings finished up in xcode let's head back to our flutter repository before you build an archive for a new version of your app you'll want to increment its version number in ios this is tracked under the cf bundle version core foundation key this key is a machine readable string composed of one to three period separated integers such as two dot zero dot 13 the first number represents a pretty major overhaul of the app like changing the design system the second number likely represents minor changes like a few new features and the last number represents a patch so pretty minor changes like little bug pixes in flutter apps we change change the virgin by modifying the pub spec yammo file you can also optionally include a build number to track different builds during development finally you're ready to create a build archive and upload it to apps or connect to build an app means to compile the source code and app assets into something that can be run or distributed when you're debugging and testing your app you're usually running your app whether you're working in an id and pressing the run button or using the flutter run command both processes create a dot app bundle in debugged mode and launches it on the connected simulator or device debug mode means that the compilation is optimized for fast development cycles so you can quickly make changes and by the magic of flutters hot reload you can see those changes reflected almost immediately on the device when it's time to distribute your app you'll want to build in release mode release mode compilation is optimized for fast startup, fast execution and small package sizes to build your app in release mode run flutter build release this creates a dot app bundle, which is good for local development and testing, but to distribute the app you'll need a dot ipa in excode and app bundle is used to create an archive which is then used to create an ipa in flutter we do the same thing only we've tried to simplify this process by creating a single command flutter build ipa when building an ipa, you have the option to prepare your app to be distributed inside or outside of the app store by default we prepare the ipa for the app store, but you can use the export method flag to change this for example you may want to use the enterprise export method, which allows you to distribute your app to users in your organization you can also consider adding the office skate and split to bug info flags to office skate your dark code so that it's more difficult to reverse engineer once you've run the build ipa command you can find the xcode build archive in your projects build ios archive directory and the ipa file in the build ios ipa, now we're in the home stretch it's time to add your ipa file to app store connect there are a few different ways to do this, but the easier this is to use the apple transport macos app drag and drop the ipa into the transport app and wait for it to process once it's already deliver it to app store connect over an app store connect you can choose whether or not you want to deploy your app to the app store or to test light test flight lets you push your apps to internal and external testers before making it available to a larger audience just create your groups of testers to get started keep in mind if you choose to invite external testers your app is submitted to beta app review which means that you may need to wait a few days before your app becomes available to testers testers can install the test flight app on their device and use it to install your app and share feedback when you're ready to release your app to the world complete all the required fields and click ad for review apple will notify you when the review process is complete and your app is live in the app store and that's how you deploy your flutter app in the app store in seven steps。


一个开园免费抓包工具,支持 windows mac androido 全平台系统使用 flatter 框架开发,持手机扫码连接,不用手动配置 wifi 代理,包括配置同步, 所有终端都可以互相扫码连接转发流量默认 h t t p s。 不是开启的,需要点击加锁图标安装跟证书后开启,因为不安转证书 h t t p s。 会访问失败。 guitar 地址 h t t p s guitar come one hundred p net at war proxy flutter 国内 h t t p s git e come one hundred p net at war gun proxy gun flutter releases 应用下载地址, safari 浏览 器打开 h t t p s test flight apple come drawing the g h 六 b 四,只能使用 test flight 提交测试版,国内没法上架 app store, mac 会提示以损坏 需要到系统偏好设置,刚安全性与隐私,刚允许任何来源。

![[跟我一起学Flutter] 第一课、初识Flutter #Flutter #跨平台 #编程开发](https://p3-pc-sign.douyinpic.com/image-cut-tos-priv/9dbe4a95b971f7e698c88e4a5e472abc~tplv-dy-resize-origshort-autoq-75:330.jpeg?lk3s=138a59ce&x-expires=2111864400&x-signature=vxMBgMbFkoKhiHDhaVa1lmgJLL4%3D&from=327834062&s=PackSourceEnum_AWEME_DETAIL&se=false&sc=cover&biz_tag=pcweb_cover&l=20261206054447643A8C75160B6572A5BA)
哈喽,大家好,我是欧阳锋,二零二四年了,如果你还不知道 flat 那你就 out 了,赶紧带上你的电脑跟我一起学习 flat 吧。好,我们开始第一课啊,那么首先呢啊我们先来认识一下 flat 啊,那么 flat 到底是什么呢 啊?简单来说呢 flat 就是一个跨平台的前端开发框架啊,性能堪比原声 啊,目前呢已经支持编译成安卓 ios, 麦克 os, windows, linux 以及以及外部应用,也就是说呢它基本上是呃覆盖了全平台啊, 那么 flat 的这个框架使用的语言呢是 dat 啊, dat 呢是一个呃面向对象的静态类型的编程语言啊,那如果你还不知道呃 flat 可以啊,开发什么样的一一一个应用呢?这里我可以简单的给大家看一下啊,我使用 flat 啊开发的一些案例啊啊这里给大家介绍两个两个应用啊,第一个呢是象棋助手啊,我可以打开给大家看一下象棋助手。 好,那这个呢就是使用 flat 啊开发的一个啊应用啊,这个大。目前大家看到的这个呢是一个呃桌面平台的这样一个应用啊啊这个是一个呃打谱软件啊啊我们可以看一个这个棋谱啊, 那这个呢就是使用 flat 啊开发的一个呃象棋打谱呃学习软件啊,目前呢它已经是呃覆盖了全平台 啊,安卓 ios 啊, windows, mac, linux 都可以用啊。那么这个呢是使用啊 flat 开发的啊啊目前已经有啊大量的用户在使用这个软件啊,那么再给大家看一个软件啊,这个软件呢是 呃我在二零二一年啊开发的一个呃,开园的啊 啊,桌面软件啊,他其实是类似于锤子科技的这个 handshack 啊,是一个安卓的手机助手,通过这个软件呢,你可以去管理你手机上的像这个图片啊,照片呀,然后还可以呢,去管理你的你的应用 啊,那么还可以去管理你手机的通讯录啊啊,软件的这个啊, 卸载等等啊,那么这个软件呢,大家可以通过 github 呢去找到啊,这里呢,我也给大家放了链接,我可以打开给大家看一下啊, 但这个软件呢,呃,我在当时做的时候呢,其实对 flat 呢啊并不熟悉啊,所以这个代码其实写的也并不好啊,那么这个我们可以将来有时间呢,我们可以自一起去完善它啊。 好,这个就是大家看到的这样一个啊,开源的这样一个软件啊,这个也是使用 flat 开发的啊,这是我啊使用 flat 开发的两个呃,这个软件的一个案例啊, 所以大家就知道这个 flat 它的这个表现形式其实是呃非常强的啊啊,这个是桌面应用 啊,然后刚才说的这个相机助手呢,其实他不仅仅是桌面应用啊,既有桌面的又有移动端的啊,两端都有,甚至有外部端的啊,这个呢,大家可以私下里去了解啊, 好,了解了这个啊 flat 开发的两个案例之后呢,我们就继续往后面学习啊啊,那么在学习 flat 之前呢 啊,我们假设你已经至少掌握了最基础的大腿与法啊,并且呢已经了解了最基本的 android ios 的应用开发知识 啊,这个是因为呢,呃,尽管我们的 flat 它是一个前端的开开发框架,但是我们难免会与原声应用呢有一个呃打交道,所以呢,你至少应该了解最基础的安卓 ios 的应用开发知识 啊,那么这个我相信大家呢,呃应该是不难的啊,那么第一个呢,你至少已经掌握最基础的大腿语法啊,因为我们的 flat 是使用大的语言进行开发的啊,所以在呃使用 flat 之前呢,你应该去 了解并且掌握最基础的大腿语法啊,那么这个呢,我们在呃讲解的过程中呢,如果遇到一些生僻的一些语法呢,也会有一些简单的介绍啊。 呃,当然最好呢是你已经掌握了他,那么这个这个时候呢,你在呃听我们这个课程的时候呢,就会呃比较轻车熟路啊。好,那么接下来呢,我们就开始搭建这个 flat 的开发款开发环境啊,那么这里呢,我是以 mac os 作为一个开发平台啊,使用 vs code 呢,作为我的主要开发工具啊,所以这里呢,我们先打开官网啊,呃, flat flat 点 d, e, v, 然后通过官网呢,我们给大家讲解一下啊,这个具体应该怎么样去做?你看这里有一个安装 flat, 点击它,然后呢,我们选择 mac os, 选择麦克 os, 我们开发的应用假设是一个 ios 的应用啊,点击它,然后我们继续往下啊 安装 flat 啊,这里呢,我们选择下载和安装,然后这个时候呢,大家看,这里提供了两个链接啊,一个一个呢是英特尔的这个啊处理器,一个是啊,苹果的处理器啊,这个呢要根据大家的 呃购买的这个电脑的情况来选择啊,你像我的电脑呢,是啊, m 系列的芯片,所以这个时候呢,我要选择这个啊,选择这个, 然后下载完了之后呢啊,你可以把这个 zip 包解压啊,解压放到一个目录下边啊,放到你的呃, 你自己想放的这样一个目录啊,这里呢,他推荐是放到这个地方啊,我们的用户目录的 development 这个目录下面啊,这个当然是呃看你自己的喜好了啊, 然后翻到这个目录下面之后呢,我们还要去配置他的环境变量啊,这个怎么配呢?这个可以给大家讲解一下哈,例如说我们可以看一下当前啊呃大部分同学呢你你的终端默认 的使用是 banch 啊,作为一个呃终端啊,作为一个你的一个终端类型,但是我的这个终端呢是 z s h 啊,如果是 z s h 的话呢,那我们需要配置的环节变量应该是在呃,我是习惯于在点 z s h r c, 也就是说当前这个目录下面,大家注意看左边这个波浪线,这个目录下面会有这样一个文件啊, 点 z s h r c 啊,就这个文件啊,我是习惯配置在这里好,到了这里之后呢,我们可以往下 啊看一下我配置的啊,往下还要往下。好,大家看这里这里,你看我配置的这个 呃 flat 的这个黄金变量啊,这里的配置的方法呢就是我们呃, 首先呢是 dollar pass, 这个指的是呃原来的这个呃 pass 的环境变量,然后往后面通过冒号附加一个啊 flat 的一个并目录的这样一个环境变量啊,这样子呢,就配置好了 啊,然后下面这个是什么呢?下面这个其实就是说我们的呃, flat 的一些依赖呢 啊,使用中文的这个网站里面的一个镜像啊,中文网的一个镜像,这样子呢,我们在下载依赖的时候呢,就会呃快一点啊,如果你是中国大陆的这个环境呢,就会快一点, ok, 好,那么通过这两这样的几个步骤哈,我们的这个环 环境变量就已经配置好了,那怎么样验证这个环境变量配置是否 ok 呢?也很简单啊,我们使用 flat 啊,干干 version 啊,这个呢是通过他去看我们 flat 的一个版本啊,还有一个更好的方式呢,是通过 flat doctor, 那这个意思就是说 flat 的呃,医生啊,执意过来就 flat 的医生。通过这个命令呢,我们可以看到我们当前配置的这个啊, flat 环境的一些问题啊,我们回车啊,然后等它执行完啊,等它检测完。 好,那这个时候大家看,如果你是正常的,那是打勾的,那这个时候安卓,安卓的工具链啊,它提示我们有一个,有两个 c m d line tours 是缺失的,还有 enjoy the lessons 是未知的,让我们运行这个命令去啊,同意这些啊,证书等等, 那下面的全是勾啊,就表示我们当前的安卓工具链呢,是有一点点问题的啊,这里呢我就不去改了啊。啊,那么这个大家如果在配置过程中遇到问题的话呢,可以在啊通过弹幕告诉我们啊,也可以在视频下方给我们留言, ok, 好, 那这个呢就是我们去配置 flat 的一个开发环境啊,那环境配置好了之后呢啊,我们就可以呃 进行开发了啊,这里呢,我们,呃还有一个步骤啊,我们刚才遗漏了啊,就是去配置我们的 vs code, 因为我的这个开发工具呢用的是 vs code 啊,那 vs code 大家去 微软的官网啊,去下载一个,下载完了之后呢,我们在这里点击它,就这个地方啊有一个 extensions 啊 extensions, 然后呢我们搜索 flat, 搜索它好,搜索到 flat 之后会这个地方呢会有一个插件,这里我已经安装好了,如果你没有安装的话呢,你点这里的 install 安装,安装好了之后呢,包括这个 flat, 包括这个大的环境呢,都会自动给你安装好, 那么安装好了之后呢,就可以使用这个 vs code 呢进行啊 flat 软件的开发了啊, 好,那么呃配置好了按 flat 开发环境之后呢,我们就开始啊编写我们的第一个 flat 应用啊,这个我们是呃还 是按照这个比较俗套的方式来给大家进行讲解啊,那么怎么怎么样去创建呃第一个 flat 应用呢啊,这里啊,我给大家演示一下啊, 这里呢,我们使用命令函句创建第一个 flat 应用啊,首先第一个 flat great, 然后这个后面啊 flat great, 后面呢就可以呃写我们的这个 flat 应用的名称啊,这里呢,我们就叫做 hello world 啊,回车, 好,那么这个时候呢,我们的 flat 这个项目呢就已经创建好了啊,我们可以通过 vs code 呢打开给大家看一下啊,点击它啊,这里我们先去新建一个窗体,好 cd 啊, open 点,然后呢我们去打开它, hello word 往上面一拖。 好,那么这个呢,就是 hello world 的一个项目结构啊,这里的 lab 呢,就是我们的原码部分啊,然后这里的 android 啊,其实它是对应我们原声的一一部分代码啊, 最后呢,我们打包也都是通过这个安卓的下面的这个文件夹去生成的啊,通过这个 lab 呢,呃,下面的这个原码呢,会编译成啊, so 文件啊, ios 也是一样的啊,那么我们首先来看一下这个 flat 的一个原码,点击它。好,那这个呢,就是它的一个原码啊,这里目前大家可能还看不懂啊,这里呢,我先运行啊,给大家看一下啊, 怎么运行它呢?这里需要用到一个命令啊, flat run 杠 d, 杠 d 呢,就指的是我们运行到哪一个平台啊,这里呢,我们直接运行到一个 chrome 浏览器里面吧啊,回车 稍微等待一会,好,这个呢就是 hello world 应用的一个样子啊,我们点击右下方的这个加号,这个中间的数字呢会递增啊,大家看 好,这个呢,就是一个最基础的一个 flat 应用啊,最基础的一个 flat 应用。 好,那么这节课程呢,我们就到这里啊啊,这个课程呢,主要是给大家啊,主要是主要是带大家简单 认识一下 flat 啊,了解这个 flat 呢啊,是什么样的一个东西啊,怎么样去配置他的开发环境啊,怎么样去 编写它的第一个应用啊,那么下节课呢,我们再来给大家讲解啊, flat 当中的一些啊具体的知识点啊。好,今天的课程呢,我们就先到这里啊,大家可以先点击关注啊,我们下节课再见。

经过一番搜索后,我们发现是因为我们用错了 coco pos 版本啊。为了将 flat 和 nit f 融合,我们需要运用 coco pos 一点一零以上的版本, 所以我们又又一次使用 homber 来安装 coco pos, 因为这样可以指定 coco pos 的版本。 这是红红布的主页面, 我们先来安装红哺乳,也需要呃一定的时间。 安装完成后, 我们看 coco pos 当前还是一点八点四,我们需要先把呃主机上的 coco pos 卸载掉, 然后使用哺乳因 stoco 各个 pose 的方法 可以安装最新的可可 pose。 安装完成后,我们再回到艾维斯的工程,重新用 x 扣的来啊启动项目可以看到这一次就没有啊错误提示了。

大家好,今天分享一下那个 flatter 学习资料。呃,看这两个就够了。首先第一个的话其实就是 dart, 就像这些代码的话其实都是 dat, dat 的话直接去 bilibi, 然后搜 flat 教程, 看这个就够了。 dart, dat 语言这个讲的是很细的,这个 dat 我觉得还是有必要过一下的,如果你们觉得没必要的话,那么可以跳个 da dat 这个语言的学习啊, 因为跟那个 coderlin 有点像,语法还是跟 coldering 还是蛮像的,代表学完之后的话,直接开始弗拉特学习,这个弗拉特 直接看这本书就 ok 了,就这本书有 get up 地址,然后把这个这本书看完之后完整的看完啊,东西很多,我目前才看到了 第四张,东西还是蛮多的,讲的很细。嗯,怎么说呢,刚开始讲的东西可能你看起来会比较懵逼一些,比如这些东西 还是有些,我看着还是有些难度的,就是有点不太明白讲的什么东西,云里雾里的。嗯,但是怎么说呢?嗯,我目前还是先看, 然后就是后面如果把这本书看完之后,如果有不懂的,然后再去进一个回顾,二刷或者怎么样,这也是一个比较好的一个 学习方法,看不懂不要纠结,继续往下看。把这本书看完之后,后面还有一个 demo, 应该是把这本书看完之后就基本上就 ok 了。我觉得其他教程的话我觉得没必要看了, 因为这个教程我看讲的弗拉特的话,其实还是蛮基础的一些,深一些不如看书啊。书的话讲的还是蛮细的。这个书这个视频的话,如果你们有时间的话可以过一下,我目前还没有过完, 这个书讲的还是可以的,其实 flat 学习这两个就够了,可以了,已经能把这个学完。 那么今天就分享这个 flatter 学习的一个就是学习资料,这个 地址你们自己拷贝一下其实就 ok 了,直接搜都有的住宿合影免费看的。 嗯,今天就分享这个 flat 学习,喜欢我的可以关注一下,谢谢大家。