『壹』 鑻規灉鎵嬫満濡備綍灝嗚蔣浠朵笅杞藉埌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 鍗沖彲銆