十年网站开发经验+多家企业客户+靠谱的建站团队
量身定制+运营维护+专业推广+无忧售后,网站问题一站解决
1.建立一个flutter项目的命令
2.在ios文件夹下,生成pods文件夹
3.Xcode环境签名设置;
把错误的版本删除再添加,可解决签名错误问题;必须先删除再添加,直接修改可能不起作用。团队开发,必须使用团队的签名。
4.运行创建的flutter项目;
选择真机、模拟机,点击运行按钮,或使用命令运行:
下面两步是赠送的:
5.新加一款插件,所涉及的命令;
ios端所涉及的命令
6.刚更新的插件和已有的插件有冲突怎么办?
可以试一试以下步骤:
需要在命令行操作
但是我查出来的并没有我的包名
6.成功了,现在在安装APP,就ok了
Loveislikeabutterfly.Itgoeswhereitpleasesanditpleaseswhereitgoes.
爱情就像一只蝴蝶,它喜欢飞到哪里,就把欢乐带到哪里。
IfIhadasingleflowerforeverytimeIthinkaboutyou,Icouldwalkforeverinmygarden.
假如每次想起你我都会得到一朵鲜花,那么我将永远在花丛中徜徉。
WithinyouIlosemyself,withoutyouIfindmyselfwantingtobelostagain.
有了你,我迷失了自我。失去你,我多么希望自己再度迷失。
Atthetouchofloveeveryonebecomesapoet.
每一个沐浴在爱河中的人都是诗人。
Lookintomyeyes-youwillseewhatyoumeantome.
看看我的眼睛,你会发现你对我而言意味着什么。
Distancemakestheheartsgrowfonder.
距离使两颗心靠得更近。
IneedhimlikeIneedtheairtobreathe.
我需要他,正如我需要呼吸空气。
Ifequalaffectioncannotbe,letthemorelovingbeme.
如果没有相等的爱,那就让我爱多一些吧。
Loveisavinethatgrowsintoourhearts.
爱是长在我们心里的藤蔓。
IfIknowwhatloveis,itisbecauseofyou.
因为你,我懂得了爱。
Loveisthegreatestrefreshmentinlife.
爱情是生活最好的提神剂。
Loveneverdies.
爱情永不死。
Thedarknessisnodarknesswiththee.
有了你,黑暗不再是黑暗。
Weceaselovingourselvesifnoonelovesus.
如果没有人爱我们,我们也就不会再爱自己了。
Thereisnoremedyforlovebuttolovemore.
治疗爱的创伤唯有加倍地去爱。
Whenloveisnotmadness,itisnotlove.
如果爱不疯狂就不是爱了。
Aheartthatlovesisalwaysyoung.
有爱的心永远年轻。
Loveisblind.
爱情是盲目的。
1.Abadworkmanalwaysblameshistools.拙匠总怪工具差。
2.Acontentedmindisaperpetualfeast.知足长乐。
3.Agoodbeginningishalfthebattle.好的开端等于成功一半。
4.Alittlepotissoonhot.壶小易热,量小易怒。
5.Alllayloadsonawillinghorse.好马重负。
6.Amerryheartgoesalltheway.心情愉快,万事顺利。
7.Badexcusesareworsethannone.狡辩比不辩护还糟。
8.Characteristhefirstandlastwordinthesuccesscircle.
人的品格是事业成功的先决条件。
9.Cleanlinessisnexttogodliness.整洁近于美德。
10.Courtesycostsnothing.彬彬有礼,惠而不费。
11.Doingnothingisdoingill.无所事事,必干坏事。
12.Earlytobed,earlytorise,makeamanhealthy,wealthy,andwise.
睡得早,起得早,聪明、富裕、身体好。
13.Emptyvesselsmakethemostnoise.满瓶子不响,半瓶子晃荡。
14.Everymanhathhisweakside.人皆有弱点。
15.Everythingoughttobebeautifulinahumanbeing:face,dress,soulandidea.
人的一切都应当是美丽的:容貌、衣着、心灵和思想。
16.Extremesaredangerous.凡事走向极端是危险的。
17.Goodadviceisharshtotheear.忠言逆耳。
18.Graspall,loseall.欲尽得,必尽失。
19.Greathopesmakegreatmen.伟大的理想造就伟大的人物。
20.Handsomeishewhodoeshandsomely.行为美者才真美。
21.Havebutfewfriends,thoughmanyacquaintances.结交可广,知己宜少。
22.Hearallparties.兼听则明,偏听则暗。
23.Heisawisemanwhospeakslittle.智者寡言。
24.Heisnotlaughedatthatlaughsathimselffirst.
有自知之明者被人尊敬。
25.Heisrichenoughthatwantsnothing.
无欲者最富有,贪欲者最贫穷。
26.Heistrulyhappywhomakesothershappy.
使他人幸福的人,是真正的幸福。
27.Honestyisthebestpolicy.诚实乃上策。
28.Hopeforthebestandpreparefortheworst.抱最好的希望,作最坏的准备。
29.Idlenessistherootofallevil.懒惰是万恶之源。
30.Ifwedream,everythingispossible.敢于梦想,一切都将成为可能。
31.Kindheartsarethegardens,kindthoughtsaretheroots,kindwordsareflowersandkinddeedsarethefruits.
仁慈的心田是花园,崇高的思想是根茎,友善的言语是花朵,良好的行为是果实。
32.Laugh,andtheworldlaughswithyou;Weep,andyouweeplone.
欢笑,整个世界伴你欢笑。哭泣,只有你独自向隅而泣。
33.Lifeismeasuredbythoughtandactionnotbytime.
34.Lifeisnotallbeerandskittles.人生并非尽是乐事。
35.Longabsent,soonforgotten.别久情疏。
36.Lookbeforeyouleap.三思而后行。
37.Lookers-onseemostofthegame.旁观者清,当局者迷。
38.Mannersmaketheman.观其待人而知其人。
39.Misfortuneteststhesincerityoffriends.患难识知交。
40.Nocross,nocrown.没有苦难,就没有快乐。
41.Nobody'senemybuthisown.自寻苦恼。
42.Oneman'sfaultisanotherman'slesson.前车之覆,后车之鉴。
43.Pardonallmen,butneverthyself.严以律已,宽以待人。
44.Reasonistheguideandlightoflife.理智是人生的灯塔。
45.Sadnessandgladnesssucceedoneanother.乐极生悲,苦尽甘来。
46.Stillwatersrundeep.流静水深,人静心深。
47.Thefireisthetestofgold;adversityofstrongmen.烈火炼真金,逆境炼壮士。
48.Thefoxmaygrowgrey,butnevergood.江山易改,本性难移。
49.Themoreamanlearns,themoreheseeshisignorance.知识越广博,越感已无知。
50.Virtueisajewelofgreatprice.美德是无价之宝。
51.Weakthingsunitedbecomestrong.一根筷子易折断,十根筷子硬如铁。
52.Wecan'tjudgeapersonbywhathesaysbutbywhathedoes.
判断一个人,不听言语看行动。
53.Wherethereisawillthereisaway.有志者,事竟成。
54.Willispower.意志就是力量。
55.Wisemenaresilent;foolstalk.智者沉默寡言,愚者滔滔不绝。
56.Wisemenlearnbyothers'harm,foolsbytheirown.
智者以他人挫折为鉴,愚者必自身碰壁方知觉。
1
夏天的飞鸟,飞到我的窗前唱歌,又飞去了。
秋天的黄叶,它们没有什么可唱,只叹息一声,飞落在那里。
straybirdsofsummercometomywindowtosingandflyaway.
andyellowleavesofautumn,whichhavenosongs,flutterandfall
therewithasign.
2
世界上的一队小小的漂泊者呀,请留下你们的足印在我的文字里。
otroupeoflittlevagrantsoftheworld,leaveyourfootprintsinmywords.
3
世界对着它的爱人,把它浩翰的面具揭下了。
它变小了,小如一首歌,小如一回永恒的接吻。
theworldputsoffitsmaskofvastnesstoitslover.
itbecomessmallasonesong,asonekissoftheeternal.
4
是大地的泪点,使她的微笑保持着青春不谢。
itisthetearsoftheearththatkeepheresmilesinbloom.
5
无垠的沙漠热烈追求一叶绿草的爱,她摇摇头笑着飞开了。
themightydesertisburningfortheloveofabladeofgrasswho
shakesherheadandlaughsandfliesaway.
6
如果你因失去了太阳而流泪,那么你也将失去群星了。
ifyoushedtearswhenyoumissthesun,youalsomissthestars.
7
跳舞着的流水呀,在你途中的泥沙,要求你的歌声,你的流动呢。你肯挟
瘸足的泥沙而俱下么?
thesandsinyourwaybegforyoursongandyourmovement,dancing
water.willyoucarrytheburdenoftheirlameness
8
她的热切的脸,如夜雨似的,搅扰着我的梦魂。
herwishfulfacehauntsmydreamsliketherainatnight.
9
有一次,我们梦见大家都是不相识的。
我们醒了,却知道我们原是相亲相爱的。
oncewedreamtthatwewerestrangers.
wewakeuptofindthatweweredeartoeachother.
10
忧思在我的心里平静下去,正如暮色降临在寂静的山林中。
sorrowishushedintopeaceinmyheartliketheeveningamong
thesilenttrees
Astarhas5ends;
Asquarehas4ends;
Atrianglehas3ends;
Alinehas2ends;
Alifehasoneend.
ButIhopeyourhappinesshasnoend.
1.记住该记住的,忘记该忘记的。改变能改变的,接受不能改变的。
Rememberwhatshouldberemembered,andforgetwhatshouldbeforgotten.Alterwhatischangeable,andacceptwhatismutable.
2.鱼对水说你看不到我的眼泪,因为我在水里。水说我能感觉到你的眼泪,因为你在我心里。
“Youcouldn’tseemytearscauseIaminthewater.”Fishsaidtowater.
“ButIcouldfeelyourtearscauseyouareinmyheart.”Answeredwater.
3.人生短短几十年,不要给自己留下了什么遗憾,想笑就笑,想哭就哭,该爱的时候就去爱,无谓压抑自己。
Yourlifeonlylastsforafewdecades,sobesurethatyoudon'tleaveanyregrets.Laughorcryasyoulike,andit‘smeaninglesstooppressyourself.
4.生命中,不断地有人进入或离开。于是,看见的,看不见了;记住的,遗忘了。生命中,不断地有得到和失落。于是,看不见的,看见了;遗忘的,记住了。然而,看不见的,是不是就等于不存在?记住的,是不是永远不会消失?
Thereissomeonethatiscomingorpassingawayinyourlifearoundtheclock,soyoumaylosesightofthoseseen,andforgetthoseremembered.Thereisgainandlossinyourlife,soyoumaycatchsightofthoseunseen,andrememberthoseforgotten.Nevertheless,doesn’ttheunseenexistforsureWilltherememberedremainforever
5.后悔是一种耗费精神的情绪。后悔是比损失更大的损失,比错误更大的错误。所以不要后悔。
Penitenceissomethingthatenervatesourspirit,causingagreaterlossthanthelossitselfandmakingabiggermistakethanthemistakeitself.Soneverregret.
签名:
keytool-genkey-v-keystore~/key.jks-keyalgRSA-keysize2048-validity10000-aliaskey
【~/key.jks】生成文件的路径和文件名
keytool-importkeystore-srckeystoreC:/test/key.jks-destkeystoreC:/test/key.jks-deststoretypepkcs12
迁移到行业标准格式PKCS12
在project/android下创建key.properties文件
文件内容
在Projects\android\app\build.gradle里的android{上边添加
defkeystorePropertiesFile=rootProject.file("key.properties")
defkeystoreProperties=newProperties()
keystoreProperties.load(newFileInputStream(keystorePropertiesFile))
android{
buildTypes{
release{
signingConfigsigningConfigs.release
}
修改成
signingConfigs{
keyAliaskeystoreProperties['keyAlias']
keyPasswordkeystoreProperties['keyPassword']
storeFilefile(keystoreProperties['storeFile'])
storePasswordkeystoreProperties['storePassword']
之后在执行flutterbuildapk打包就签名了。
在有签名文件的情况下获取应用签名:
keytool-list-v-keystore签名文件路径
MD5就是文件签名:复制出来去掉:就可以使用了。
Xcode编译经常遇到各种问题,处理起来费时费力,挺打击学习积极性的。记录下这些问题,方便自己也帮助后来人。
编译的时候遇到:
网上有很多解决方法,我是用这个方法解决的:
解决办法:
Project-User-Defined-FLUTTER_ROOT改成本地flutterSDK路径
感谢issues上的小哥,给你个
在项目目录下执行flutterrun可以正常运行到手机,但是在Xcodebuild还是有问题。
这时需要手动添加FLUTTER_ROOT到User-Defined:
添加之后:
就可以正常在Xcodebuild安装到手机了。
flutterbuildios后出现:
podinstall后出现:
这是因为terminal没有走代理的流量,
port是端口号,根据不同的vpn不一样,我的端口是10080。
Xcodebuild的时候出现:
解决办法:打开ios/Podflie文件:
关于bitcode的问题,我检查了下用到的第三方SDK,应该是百度地图的问题,我引入了个第三方插件(吐槽下没官方插件),百度地图有支持和不支持bitcode的两个SDK,我取消这个插件就没有报这个错了,奇怪的是,再次引入同一个插件,也可以正常打包,所以说这个问题还没有完全解决。
大家可以试下这个处理方法:
TARGETS-BuildSeettings搜arm,试一下把其他删除,只留下armv7跟armv7s或者只留下armv7