扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流
1. 建立一个flutter项目的命令
成都创新互联成立于2013年,是专业互联网技术服务公司,拥有项目网站制作、成都网站设计网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元沭阳做网站,已为上家服务,为沭阳各地企业和个人服务,联系电话:028-86922220
2. 在ios文件夹下,生成pods文件夹
3. Xcode环境签名设置;
把错误的版本删除再添加,可解决签名错误问题;必须先删除再添加,直接修改可能不起作用。团队开发,必须使用团队的签名。
4.运行创建的flutter项目;
选择真机、模拟机,点击运行按钮,或使用命令运行:
下面两步是赠送的:
5.新加一款插件,所涉及的命令;
ios 端所涉及的命令
6. 刚更新的插件和已有的插件有冲突怎么办?
可以试一试以下步骤:
需要在命令行操作
但是我查出来的并没有我的包名
6.成功了,现在在安装APP,就ok了
Love is like a butterfly. It goes where it pleases and it pleases where it goes.
爱情就像一只蝴蝶,它喜欢飞到哪里,就把欢乐带到哪里。
If I had a single flower for every time I think about you, I could walk forever in my garden.
假如每次想起你我都会得到一朵鲜花,那么我将永远在花丛中徜徉。
Within you I lose myself, without you I find myself wanting to be lost again.
有了你,我迷失了自我。失去你,我多么希望自己再度迷失。
At the touch of love everyone becomes a poet.
每一个沐浴在爱河中的人都是诗人。
Look into my eyes - you will see what you mean to me.
看看我的眼睛,你会发现你对我而言意味着什么。
Distance makes the hearts grow fonder.
距离使两颗心靠得更近。
I need him like I need the air to breathe.
我需要他,正如我需要呼吸空气。
If equal affection cannot be, let the more loving be me.
如果没有相等的爱,那就让我爱多一些吧。
Love is a vine that grows into our hearts.
爱是长在我们心里的藤蔓。
If I know what love is, it is because of you.
因为你,我懂得了爱。
Love is the greatest refreshment in life.
爱情是生活最好的提神剂。
Love never dies.
爱情永不死。
The darkness is no darkness with thee.
有了你,黑暗不再是黑暗。
We cease loving ourselves if no one loves us.
如果没有人爱我们,我们也就不会再爱自己了。
There is no remedy for love but to love more.
治疗爱的创伤唯有加倍地去爱。
When love is not madness, it is not love.
如果爱不疯狂就不是爱了。
A heart that loves is always young.
有爱的心永远年轻。
Love is blind.
爱情是盲目的。
1.A bad workman always blames his tools. 拙匠总怪工具差。
2.A contented mind is a perpetual feast. 知足长乐。
3.A good beginning is half the battle. 好的开端等于成功一半。
4.A little pot is soon hot. 壶小易热,量小易怒。
5.All lay loads on a willing horse. 好马重负。
6.A merry heart goes all the way. 心情愉快,万事顺利 。
7.Bad excuses are worse than none. 狡辩比不辩护还糟 。
8.Character is the first and last word in the success circle.
人的品格是事业成功的先决条件。
9.Cleanliness is next to godliness. 整洁近于美德 。
10.Courtesy costs nothing. 彬彬有礼,惠而不费 。
11.Doing nothing is doing ill. 无所事事,必干坏事。
12.Early to bed, early to rise, make a man healthy, wealthy, and wise.
睡得早,起得早,聪明、富裕、身体好 。
13.Empty vessels make the most noise. 满瓶子不响,半瓶子晃荡 。
14.Every man hath his weak side. 人皆有弱点 。
15.Everything ought to be beautiful in a human being: face, dress, soul and idea.
人的一切都应当是美丽的:容貌、衣着、心灵和思想。
16.Extremes are dangerous. 凡事走向极端是危险的 。
17.Good advice is harsh to the ear. 忠言逆耳 。
18.Grasp all, lose all. 欲尽得,必尽失 。
19.Great hopes make great men. 伟大的理想造就伟大的人物。
20.Handsome is he who does handsomely. 行为美者才真美。
21.Have but few friends, though many acquaintances. 结交可广,知己宜少。
22.Hear all parties.兼听则明,偏听则暗 。
23.He is a wise man who speaks little. 智者寡言。
24.He is not laughed at that laughs at himself first.
有自知之明者被人尊敬。
25.He is rich enough that wants nothing.
无欲者最富有,贪欲者最贫穷。
26.He is truly happy who makes others happy.
使他人幸福的人,是真正的幸福。
27.Honesty is the best policy. 诚实乃上策。
28.Hope for the best and prepare for the worst.?? 抱最好的希望,作最坏的准备 。
29.Idleness is the root of all evil. 懒惰是万恶之源 。
30.If we dream, everything is possible. 敢于梦想,一切都将成为可能。
31.Kind hearts are the gardens, kind thoughts are the roots, kind words are flowers and kind deeds are the fruits.
仁慈的心田是花园,崇高的思想是根茎,友善的言语是花朵,良好的行为是果实。
32.Laugh, and the world laughs with you; Weep, and you weep lone.
欢笑,整个世界伴你欢笑。哭泣,只有你独自向隅而泣 。
33.Life is measured by thought and action not by time.
衡量生命的尺度是思想和行为,而不是时间。
34.Life is not all beer and skittles. 人生并非尽是乐事 。
35.Long absent, soon forgotten. 别久情疏 。
36.Look before you leap. 三思而后行 。
37.Lookers-on see most of the game. 旁观者清,当局者迷。
38.Manners make the man.观其待人而知其人 。
39.Misfortune tests the sincerity of friends. 患难识知交。
40.No cross, no crown.没有苦难,就没有快乐 。
41.Nobody's enemy but his own. 自寻苦恼 。
42.One man's fault is another man's lesson. 前车之覆,后车之鉴 。
43.Pardon all men, but never thyself. 严以律已,宽以待人。
44.Reason is the guide and light of life. 理智是人生的灯塔 。
45.Sadness and gladness succeed one another. 乐极生悲,苦尽甘来 。
46.Still waters run deep.流静水深,人静心深 。
47.The fire is the test of gold; adversity of strong men. 烈火炼真金,逆境炼壮士 。
48.The fox may grow grey, but never good. 江山易改,本性难移 。
49.The more a man learns, the more he sees his ignorance. 知识越广博,越感已无知 。
50.Virtue is a jewel of great price. 美德是无价之宝 。
51.Weak things united become strong. 一根筷子易折断,十根筷子硬如铁 。
52.We can't judge a person by what he says but by what he does.
判断一个人,不听言语看行动 。
53.Where there is a will there is a way. 有志者,事竟成 。
54.Will is power. 意志就是力量 。
55.Wise men are silent; fools talk. 智者沉默寡言,愚者滔滔不绝 。
56.Wise men learn by others' harm, fools by their own.
智者以他人挫折为鉴,愚者必自身碰壁方知觉。
1
夏天的飞鸟,飞到我的窗前唱歌,又飞去了。
秋天的黄叶,它们没有什么可唱,只叹息一声,飞落在那里。
stray birds of summer come to my window to sing and fly away.
and yellow leaves of autumn, which have no songs, flutter and fall
there with a sign.
2
世界上的一队小小的漂泊者呀,请留下你们的足印在我的文字里。
o troupe of little vagrants of the world, leave your footprints in my words.
3
世界对着它的爱人,把它浩翰的面具揭下了。
它变小了,小如一首歌,小如一回永恒的接吻。
the world puts off its mask of vastness to its lover.
it becomes small as one song, as one kiss of the eternal.
4
是大地的泪点,使她的微笑保持着青春不谢。
it is the tears of the earth that keep here smiles in bloom.
5
无垠的沙漠热烈追求一叶绿草的爱,她摇摇头笑着飞开了。
the mighty desert is burning for the love of a bladeof grass who
shakes her head and laughs and flies away.
6
如果你因失去了太阳而流泪,那么你也将失去群星了。
if you shed tears when you miss the sun, you also miss the stars.
7
跳舞着的流水呀,在你途中的泥沙,要求你的歌声,你的流动呢。你肯挟
瘸足的泥沙而俱下么?
the sands in your way beg for your song and your movement, dancing
water. will you carry the burden of their lameness?
8
她的热切的脸,如夜雨似的,搅扰着我的梦魂。
her wishful face haunts my dreams like the rain at night.
9
有一次,我们梦见大家都是不相识的。
我们醒了,却知道我们原是相亲相爱的。
once we dreamt that we were strangers.
we wake up to find that we were dear to each other.
10
忧思在我的心里平静下去,正如暮色降临在寂静的山林中。
sorrow is hushed into peace in my heart like the evening among
the silent trees
A star has 5 ends;
A square has 4 ends;
A triangle has 3 ends;
A line has 2 ends;
A life has one end.
But I hope your happiness has no end.
1. 记住该记住的,忘记该忘记的。改变能改变的,接受不能改变的。
Remember what should be remembered, and forget what should be forgotten. Alter what is changeable, and accept what is mutable.
2.鱼对水说你看不到我的眼泪,因为我在水里。水说我能感觉到你的眼泪,因为你在我心里。
“You couldn’t see my tears cause I am in the water.” Fish said to water.
“But I could feel your tears cause you are in my heart.” Answered water.
3.人生短短几十年,不要给自己留下了什么遗憾,想笑就笑,想哭就哭,该爱的时候就去爱,无谓压抑自己。
Your life only lasts for a few decades, so be sure that you don't leave any regrets. Laugh or cry as you like, and it‘s meaningless to oppress yourself.
4. 生命中,不断地有人进入或离开。于是,看见的,看不见了;记住的,遗忘了。生命中,不断地有得到和失落。于是,看不见的,看见了;遗忘的,记住了。然而,看不见的,是不是就等于不存在?记住的,是不是永远不会消失?
There is someone that is coming or passing away in your life around the clock, so you may lose sight of those seen, and forget those remembered. There is gain and loss in your life, so you may catch sight of those unseen, and remember those forgotten. Nevertheless, doesn’t the unseen exist for sure? Will the remembered remain forever?
5. 后悔是一种耗费精神的情绪。后悔是比损失更大的损失,比错误更大的错误。所以不要后悔。
Penitence is something that enervates our spirit, causing a greater loss than the loss itself and making a bigger mistake than the mistake itself. So never regret.
签名:
keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
【~/key.jks】生成文件的路径和文件名
keytool -importkeystore -srckeystore C:/test/key.jks -destkeystore C:/test/key.jks -deststoretype pkcs12
迁移到行业标准格式 PKCS12
在project/android下创建key.properties文件
文件内容
在Projects\android\app\build.gradle里的 android{ 上边添加
def keystorePropertiesFile = rootProject.file("key.properties")
def keystoreProperties =new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android{
buildTypes{
release{
signingConfig signingConfigs.release
}
}
修改成
signingConfigs{
release{
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
buildTypes{
release{
signingConfig signingConfigs.release
}
}
之后在执行 flutter build apk打包就签名了。
在有签名文件的情况下获取应用签名:
keytool -list -v -keystore 签名文件路径
MD5就是文件签名:复制出来去掉:就可以使用了。
Xcode编译经常遇到各种问题,处理起来费时费力,挺打击学习积极性的。记录下这些问题,方便自己也帮助后来人。
编译的时候遇到:
网上有很多解决方法,我是用这个方法解决的:
编译的时候遇到:
解决办法:
Project - User-Defined - FLUTTER_ROOT 改成本地 flutter SDK路径
感谢 issues 上的小哥,给你个????
在项目目录下执行 flutter run 可以正常运行到手机,但是在Xcode build 还是有问题。
这时需要手动添加 FLUTTER_ROOT 到 User-Defined :
添加之后:
就可以正常在Xcode build 安装到手机了。
flutter build ios 后出现:
pod install 后出现:
解决办法:
这是因为terminal没有走代理的流量,
使用 git config --global http.proxy "localhost:port" ,设置代理。
port是端口号,根据不同的vpn不一样,我的端口是10080。
执行 git config --global http.proxy "localhost:10080"
Xcode build 的时候出现:
解决办法:打开 ios/Podflie 文件:
关于 bitcode 的问题,我检查了下用到的第三方SDK,应该是百度地图的问题,我引入了个第三方插件(吐槽下没官方插件),百度地图有支持和不支持 bitcode 的两个SDK,我取消这个插件就没有报这个错了,奇怪的是,再次引入同一个插件,也可以正常打包,所以说这个问题还没有完全解决。
大家可以试下这个处理方法:
TARGETS - Build Seettings 搜 arm ,试一下把其他删除,只留下armv7跟armv7s或者只留下armv7
解决办法:
我是clean Xcode之后就可以了
解决办法:
用的是P12证书,改成手动签名:
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流