‘壹’ 鑻规灉镓嬫満濡备綍灏呜蒋浠朵笅杞藉埌id鍙蜂笂闱㈠幓浜嗭纻
杞绉诲埌ios鍏浣崭唬镰佸湪璁剧疆涓锛屽叿浣扑綅缃濡备笅锛
宸ュ叿锛歩phone12銆乮OS14銆佽剧疆銆
1銆侀栧厛镓揿紑绯荤粺璁剧疆锛岀偣鍑婚氱敤銆
鑻规灉镓嬫満镄勪紭镣
iOS绯荤粺镄勮蒋纭浠堕泦鎴愬害鐩稿綋楂桡纴澶уぇ闄崭绠浜嗗叾鍒嗗寲锛屽湪杩欐柟闱㈣繙杩滀紭浜庝弗閲岖庣墖鍖朅ndroid銆傝繖涔熷炲姞浜嗘暣涓绯荤粺镄勭ǔ瀹氭э纴缁忓父浣跨敤iPhone镄勬湅鍙嬩篃浼氩彂鐜帮纴镓嬫満寰埚皯姝绘満锛屾病链夊弽搴斻
鑻规灉鍦ㄧ晫闱㈣捐′笂鎶曞叆浜嗗ぇ閲忕簿锷涳纴镞犺烘槸浠庡栬傝缮鏄鏄撶敤镐э纴iOS閮借嚧锷涗簬涓虹敤鎴锋彁渚涙渶鐩磋傜殑鐢ㄦ埛浣挞獙銆俰OS绯荤粺缁欎汉镄勭涓镒熻夊氨鏄绠鍗曘佺编瑙伞佹湁姘旇川锛屾搷浣灭亩鍗曪纴鐢ㄦ埛涓婃坠蹇锛岀敤璧锋潵链変竴绉嶈交𨱒俱佹祦鐣呯殑镒熻夈
鑻规灉瀵筰OS鐢熸佺郴缁熼噰鍙栦简灏侀棴鎺鏂斤纴寤虹珛浜嗗畬鏁寸殑寮鍙戣呰よ瘉鍜屽簲鐢ㄧ▼搴忓¤℃満鍒讹纴锲犳ゆ伓镒忕▼搴忓熀链涓婃病链夋満浼氩嚭鐜板湪鑸炲彴涓娿俰OS璁惧囬噰鐢ㄤ弗镙肩殑瀹夊叏鎶链鍜屽姛鑳斤纴浣跨敤璧锋潵闱炲父鏂逛究銆
‘贰’ 鑻规灉镓揿寘ipa链変粈涔堟柟娉
ios镓揿寘ipa镄勫洓绉嶅疄鐢ㄦ柟娉(.app杞.ipa)
镐荤粨涓涓嬶纴鐩鍓.app鍖呰浆涓.ipa鍖呯殑鏂规硶链変互涓嫔嚑绉嶏细
1銆丄pple鎺ㄨ崘镄勬柟寮忥纴鍗冲疄鐢▁code镄刟rchive锷熻兘
Xcode凿滃崟镙->Proct->Archive->涓夐変竴锛屼竴鑸阃夊悗涓や釜銆
灞闄愭э细涓浜哄紑鍙戜竴鑸閲囩敤杩欑嶆柟娉曪纴浣嗘槸褰扑竴涓璇佷功澶氢汉浣跨敤镞跺氨绋嶆樉楹荤储銆备竴鑸澶氢汉寮鍙戞椂閮芥槸閲囩敤provisioning profile+P12鏂囦欢𨱒ヨ繘琛岀湡链鸿皟璇曘备笂杩版柟娉曞湪链钖庡煎嚭ipa鍖呮椂闇瑕佽緭鍏appleID锛岃繖镞惰缮瑕佸悜锲㈤槦镄勫叾浠栦汉瑕併傞噰鐢╬rovisioning profile+P12鐪熸満璋冭瘯镄勬柟寮忎笉瑕佹眰寮鍙戣呯煡阆揳ppleID浠ュ强瀵嗙爜锛屽瘑镰佷竴鑸鏀惧湪leader闾i噷锛
2.浣跨敤宸ュ叿appuploader(鎺ㄨ崘)
鍒╃敤Appuploader涓婃灦IPA姝ラ
Appuploader鍙浠ヨ緟锷╁湪Windows銆乴inux鎴杕ac绯荤粺鐩存帴鐢宠穒OS璇佷功p12锛屽强涓娄紶ipa鍒痨pp Store銆傛柟渚垮湪娌℃湁鑻规灉鐢佃剳𨱍呭喌涓嬩笂鏋禝PA镎崭綔銆
涓銆佷笅杞藉畨瑁卛OS涓婃灦杈呭姪杞浠禔ppuploader
銆銆涓嬭浇鍦板潃锛氢笅杞借蒋浠跺寘钖庤В铡嬬洿鎺ヤ娇鐢锛屾棤闇瀹夎呫
浜屻佺敌璇穒OS鍙戝竷璇佷功锛坧12鏂囦欢锛
銆銆鍙戝竷璇佷功鐢ㄤ簬涓婃灦锛岃瘉涔︽湁p12鍙妋obileprovision涓や釜鏂囦欢锛岄厤濂椾娇鐢锛屽厛鐢宠穚12銆
1銆佺敤鑻规灉寮鍙戣呰处鍙风橱褰昦ppuploader杞浠跺悗锛岀偣鍑诲垱寤鸿娴鏋滆瘉涔
銆銆绫诲瀷锛
銆銆璇佷功钖岖О锛氢笉瑕佷腑鏂囥佷笉瑕佸お闀夸简銆侀殢镒忚剧疆
銆銆闾绠憋细闅忔剰
銆銆瀵嗙爜锛氲瘉涔︾殑瀵嗙爜銆佹瘆濡傝剧疆123杩欐牱锛屼笉鐢ㄥ緢澶嶆潅锛岃板ソ銆佹墦鍖呮椂瑕佺敤銆佸緢閲嶈
銆銆搴旂敤id锛氲繖閲屼笉鐢ㄩ
銆銆镣瑰嚮ok鍒涘缓銆
2銆佸垱寤烘垚锷熷悗锛屾垒鍒板垰鍒涘缓镄勫彂甯冭瘉涔︼纸iOS Distribution杩欎釜绫诲瀷镄勫氨鏄鍙戝竷璇佷功锛屽傛灉涔嫔墠鍒涘缓杩囩湅杩囨湡镞堕棿鎴栬匢D灏辩煡阆揿摢涓鏄鏂板垱寤虹殑浜嗭级锛
镣瑰嚮p12 鏂囦欢锛屼笅杞戒缭瀛.p12璇佷功鏂囦欢鍒扮数鑴戙
涓夈佸垱寤篿OS鍙戝竷鎻忚堪鏂囦欢锛.mobileprovision鏂囦欢锛
1銆佺偣鍑诲彸涓嬭払ACK銆佽繑锲濧ppuploader棣栭〉锛岄夋嫨鎻忚堪鏂囦欢杩涘幓銆
2銆佺偣鍑诲彸涓嬭+ADD锛岃繘鍏ョ敌璇风晫闱锛
銆銆Type锛氢笅𨰾夐夋嫨鍙戝竷鐗坧rofile
銆銆搴旂敤id锛氢笅𨰾夐夋嫨瀵瑰簲镄勫簲鐢╥d锛埚张绉板楄卛d锛宎ppid锛孊undleID锛屽寘钖嶏级
銆銆鏂痨PP涓婃灦闇瑕佸厛娣诲姞涓涓鏂扮殑搴旂敤id锛堟疮涓狝PP瀵瑰簲涓涓搴旂敤id锛夛纴濡傛灉宸茬粡涔嫔墠锷犺繃浜嗙洿鎺ヤ笅𨰾夐夋嫨銆
銆銆璇佷功锛氶変腑鍏ㄩ儴灏辫
銆銆Devices锛氩彂甯幂増涓岖敤阃夎惧
銆銆杈揿叆钖岖О锛氢笉瑕佷腑鏂囷纴闅忔剰锛123涔嬬被镄勫氨琛岋纴娉ㄦ剰涓嶈佽窡涔嫔墠鐢宠疯繃镄勫悕绉颁竴镙凤纴镣瑰嚮ok鍒涘缓銆
3銆侀夋嫨鍒氩垱寤虹殑鍙戝竷鐗堟弿杩版枃浠讹纸iOS Distribution杩欎釜绫诲瀷镄勫氨鏄鍙戝竷鎻忚堪鏂囦欢锛屾垒鍒氩垱寤虹殑杈揿叆镄勫悕绉帮级锛岀偣鍑籇ownload涓嬭浇锛屼缭瀛桦埌鐢佃剳
銆銆鐢宠峰埌p12鍙妋obileprovision杩欎袱涓猧OS璇佷功鏂囦欢鍗冲彲铡绘墦鍖呬简銆
锲涖乮OS镓揿寘IPA
銆銆钖勫紑鍙戣呭伐鍏锋墦鍖呮暀绋嬶纴镙规嵁镊宸变娇鐢ㄧ殑骞冲彴铡绘墦鍖咃纴璇佷功閮芥槸涓镙风敤銆傝繖閲屼粙缁崭简鍑犱釜骞冲彴镄勬墦鍖呮暀绋嬶纴瀵瑰簲镊宸变娇鐢ㄥ钩鍙扮殑鐪嬬湅銆
鐜版垚镄刬pa閲岖炬墦鍖呭悗TestFlight涓婃灦鏁欑▼
寮蹇倾pp骞冲彴镓揿寘缃戠珯鏁欑▼
銆銆杩欓噷浠HBuilder骞冲彴涓轰緥锛
1銆佹墦寮HBuilder宸ュ叿锛岄夋嫨寮鍙戝ソ镄勯”鐩锛岀偣鍑诲彂琛岋纴阃夋嫨鍙戣屼负铡熺敓瀹夎呭寘銆
2銆佹墦鍖呮垚锷熷悗锛屼笅杞绌PA鏂囦欢镊虫湰鍦扮数鑴戙
3.鍒╃敤AppUploader 涓娄紶IPA姝ラ
3.1 阃夋嫨IPA
3.2 璁剧疆涓撶敤瀵嗙爜闾绠憋纴涓庣橱褰曡处鍙蜂笉鐩稿悓
3.3.涓娄紶鎴愬姛涔嫔悗浼氩嚭鐜伴粦灞忕獥鍙o纴链搴曢儴链塖UCCESS 鎻愮ず
4.涓娄紶鎴愬姛涔嫔悗锛岀洿鎺ョ橱褰曡娴鏋滃簲鐢ㄥ晢搴楁瀯寤虹増链鍙浠ラ夋嫨鍒帮纴涓娄紶镄処PA鏂囦欢
3銆乮Tunes𨰾栧叆(鎺ㄨ崘)
杩欑嶆柟娉曞崄鍒嗘柟渚裤傚叿浣撴ラよ风湅锷ㄦ佸浘锛
娉ㄦ剰锛歩tunes閲岀殑钬沧垜镄勫簲鐢ㄧ▼搴忊濇槸鎸囩数鑴戜笂镄勭▼搴忥纴涓嶈佹眰镵旀満锛屽彲浠ユ妸閲岄溃镄刟pp鍒犻櫎
3銆佽嚜锷ㄧ紪璇戣剼链
缂栧啓涓涓鍏ㄨ嚜锷ㄧ紪璇戣剼链锛屼粠钥屼笉鐢ㄦ墦寮XCODE缂栬疟杩愯屽嵆鍙瀹炵幇镓揿寘锛岃繖绉嶆柟娉曚篃鍗佸垎蹇鎹枫傛湁鍏磋叮镄勫彲浠ョ湅杩欑瘒鏂囩珷銆
缂虹偣锛氢笉鍑洪敊杩桦ソ锛屼竴镞︽湁璇娉曢敊璇鎴栬呭叾浠栭敊璇鍑虹幇灏变笉濂藉勭悊
镎崭綔锛
1锛夋墍闇璇鍙ワ纸鍙鐩存帴鍦ㄥ懡浠よ屼腑镓ц岋级
xcodebuild -configuration Release
杩涘叆镓鍦ㄥ伐绋嬬殑镙圭洰褰曟枃浠跺す锛屾墽琛屼笂闱㈢殑璇鍙ワ纴鍗冲彲寮濮嬭嚜锷ㄤ娇鐢╮elease妯″纺build璇ュ伐绋嬫枃浠躲
娉ㄦ剰锛氭枃浠跺繀椤绘坊锷犺瘉涔︺
1.mkdir -p ipa/Payload
2.cp -r ./Release-iphoneos/PRODUCT_NAME.app ./ipa/Payload
3.cd ipa
4.zip -r $FILE_NAME *
杩涘叆鐢熸垚镄刟pp鏂囦欢镓鍦ㄧ殑鏂囦欢澶癸纴镓ц屼笂闱㈢殑璇鍙ワ纴鍙灏哸pp鏂囦欢镓揿寘涓篿pa鏂囦欢銆
娉ㄦ剰锛歛pp鏂囦欢鍙鐩存帴瀵煎叆iTunes钖庣洿鎺ヨ繍琛岋纴浣嗘槸娌℃湁icon锛屽彧闇灏唅con鏀惧叆./ipa鏂囦欢澶逛竴璧锋墦鍖呭嵆鍙銆
app鏂囦欢榛樿ょ敓鎴愯矾寰勶纸鍙淇鏀癸级锛
Xcode3锛氭墍鍦ㄥ伐绋嬫牴鐩褰/build/Debug-iphoneos/PRODUCT _NAME
Xcode4鍙娄互钖庯细./user//Library/Developer/XCode/DerivedData/-/Build/Procts 涓嬫湁锛欴ebug-iphoneos 鍜 Release-iphoneos浠ュ强Debug-iphonesimulator
icon瑕佹眰锛
涓嶅ぇ浜500*500
镙煎纺涓箦pg
锻藉悕涓篿TunesArtwork
涓嶈兘链夊悗缂
2锛夎剼链镄勫啓娉曪纸mac/linux锛
鑴氭湰镙煎纺
1.#!/bin/sh
2.mkdir -p ipa/Payload
3.cp -r ./Release-iphoneos/PRODUCT_NAME.app ./ipa/Payload
4.cd ipa
5.zip -r $FILE_NAME *
6.exit0
鑴氭湰鍒涘缓鏂规硶
镓揿紑缁堢
vim FILE_NAME.sh
鎸 钬渋钬 杩涘叆缂栬緫妯″纺锛岃緭鍏ヨ剼链鍐呭癸纴鎸夆淓SC钬 阃鍑虹紪杈戞ā寮忥纴鎸夆涞Z钬濓纸澶у啓锛変缭瀛桦苟阃鍑恒
鍏充簬𨱒冮檺
浣跨敤ls -l鍙浠ユ煡鐪嫔綋鍓岖洰褰曚笅鏂囦欢鍙婃枃浠跺す镄勬潈闄愩
杩欓噷灏嗘潈闄愭敼涓777鍗冲彲chmod 777 FILE_NAME
铹跺悗閲嶅懡钖崭负.ipa
mv xx.zip xx.ipa
4銆佽В铡嬩慨鏀瑰悗缂钖(链鏂囨帹钻)
杩欑嶆柟寮忔槸鍦▁code缂栬疟浜х敓鍑.app鍖呯殑锘虹涓婅繘琛岃繘涓姝ュ勭悊锛岄氲繃绠鍗旷殑铡嬬缉浠ュ强淇鏀瑰悗缂钖嶅嵆鍙瀹炵幇ipa鍙戝寘銆
杩欑嶆柟寮忎笅鍙埚彲阃氲繃鑴氭湰镊锷ㄥ勭悊浠ュ强镓嫔姩澶勭悊涓ょ嶉斿缎瀹炵幇锛屾帹钻愯剼链鏂规硶锛屼竴锷虫案阃搞
4.1 鑴氭湰镊锷ㄧ敓鎴恑pa鍖
Step1: 鏂板缓鏂囦欢澶癸纴锻藉悕涓"distribute"锛屾柊寤 distribute.sh 鑴氭湰鏂囦欢锛屽唴瀹逛负锛(娉ㄦ剰锛岃剼链涓镓链塧ppName璇峰厛镟挎崲鎴愪綘镄勭湡姝app钖岖О)
1.rm -rf appName
2.mkdir appName
3.mkdir appName/Payload
4.cp -r appName.app appName/Payload/appName.app
5.cp Icon.png appName/iTunesArtwork
6.cd appName
7.zip -r appName.ipa Payload iTunesArtwork
8.
9.exit0
Step2: 灏呜佽浆鍖栫殑.app鏂囦欢鏀惧埌distribute/鏂囦欢澶逛笅
杩欐椂镄勬枃浠跺す鐩褰旷粨鏋勬槸杩欐牱镄勶细(娉ㄦ剰锛岃剼链涓镓链塧ppName璇峰厛镟挎崲鎴愪綘镄勭湡姝app钖岖О)
1.distribute/distribute.sh
2.distribute/appName.app
Step3: 杩愯宒istribute.sh鑴氭湰
镓揿紑Terminal锛宑d鍒癫istribute鏂囦欢澶逛笅锛屾妸distribute.sh𨰾夊埌 terminal 涓镓ц屻傚傛灉鎻愮ず permission denied锛屽垯鐢 "chmod 777 distribute.sh" 锻戒护璧嬩篑𨱒冮檺钖庯纴鍐嶆墽琛屼竴娆distribute.sh銆
Step4: 澶х害鑻ュ共绉掑悗锛屼细鍦╠istribute/鏂囦欢澶逛笅鐢熸垚appName/鏂囦欢澶癸纴閲岄溃镄刟ppName.ipa灏辨槸鎴戜滑𨱍宠佺殑鍖呫
4.2 镓嫔姩铡嬬缉鏀瑰悗缂鏂瑰纺
杩欑嶆柟寮忎笌4.1镄勬柟娉曟湰璐ㄦ槸涓镙风殑銆
Step1: 鏂板缓 "Payload" 鏂囦欢澶癸纴娉ㄦ剰钖嶅瓧瑕佷竴瀛椾笉宸锛
Step2: 灏嗕綘镄 .app 鍖呮斁鍒 Payload 涓锛屾敞镒 app 镄勫悕瀛椾笉锅氢换浣曟洿鏀癸纴灏辩敤 xcode 鐢熸垚镄 app 钖岖О锛
Step3: 鍦≒ayload鏂囦欢澶逛笂鍙抽敭铡嬬缉鎴恴ip锛岀劧钖庡皢鐢熸垚镄 .zip 鏂囦欢钖庣紑鏀规垚 .ipa 鍗冲彲銆