iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods
Posted iOS寮€鍙戠簿楂?/a>
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods相关的知识,希望对你有一定的参考价值。
绗竴姝ワ細鍑嗗Pod璐﹀彿
1. 鍦ㄥ懡浠よ涓緭鍏?pod trunk me 锛屾煡鐪嬭嚜宸辩殑璐﹀彿淇℃伅銆?/p>
涓€锛氬浘1
2. 濡傛灉娌℃湁璐﹀彿鐨勮瘽锛岃緭鍏?nbsp;
pod trunk register 12345678@xx.com 'YourName' --verbose
鎴愬姛鍚庨渶瑕佸埌閭鎵撳紑閲岄潰鐨勯摼鎺ワ紝鍗冲彲娉ㄥ唽鎴愬姛銆傚畬鎴愬悗鍐嶅洖鍒版楠?鏌ョ湅鑷繁璐﹀彿鍗冲彲锛堣繖閲屽伔鎳掓病鍥撅紝璇疯嚜琛岃剳琛ワ級馃槃
绗簩姝ワ細寤虹珛鍙戝竷浠撳簱
1. 澶у鍙互閫夌敤github锛屼笉杩囦负浜嗘柟渚匡紝鎴戜娇鐢ㄤ簡gitee寮€婧愪腑鍥斤紝鐢ㄨ捣鏉ラ兘涓嶅樊涓嶅銆?br>鍙傜収涓嬪浘閰嶇疆濂藉氨OK浜?/p>
浜岋細鍥?
2. 鏈湴鍒涘缓涓€涓┖鏂囦欢澶癸紝浣滀负鍙戝竷浠撳簱
浜岋細鍥?
3. 鎴戣繖閲屼娇鐢ㄤ簡sourcetree绠$悊
浜岋細鍥?
4. 鎶婃墦鍖呭ソ鐨刦ramework, 澶嶅埗鍒扮┖鐧界殑鏈湴浠撳簱涓?/p>
浜岋細鍥?
5. 鎶奻ramework涓婁紶鍒拌繙绋嬩粨搴擄紝骞跺垱寤簍ag銆倀ag鍛藉悕灏介噺鐢?.0.0 杩欐牱鐨勬牸寮忥紝鍥犱负涓嬮潰閰嶇疆podspec鏃堕渶瑕佺敤鍒般€?/p>
浜岋細鍥?
绗笁姝ワ細鍒涘缓涓庨厤缃畃odspec
1. 鏂板缓podspec鏂囦欢, 鍛戒护琛岃緭鍏?br>pod spec create yourSDKName
涓夛細鍥?
2. 閫夌敤Xcode鎵撳紑podspec鏂囦欢
涓夛細鍥?
涓夛細鍥?
5. 閰嶇疆SDK鐨勪緷璧栧簱
鏂板涓嬮潰涓よ
spec.ios.vendored_frameworks = 'LmSDKProject.framework'
spec.frameworks = 'UIKit','Foundation'
鏂板鍏朵粬绗笁鏂逛緷璧栧簱
spec.dependency 'AFNetworking'
spec.dependency 'Masonry'
涓夛細鍥?
6. 楠岃瘉podspec . 鍛戒护琛岃緭鍏?br>pod spec lint
楠岃瘉鎴愬姛鍚庣鍙戝竷灏变笉杩滀簡
涓夛細鍥?
7. 楠岃瘉涓嶈兘鍑虹幇閿欒鍜岃鍛婏紝濡傛灉鎶ラ敊浜嗗彲浠ユ煡鐪嬭缁嗚鏄庛€傛寜瑕佹眰鏀逛竴涓嬪氨鍙互
涓夛細鍥?
绗洓姝ワ細鍙戝竷
1. 鍛戒护琛岋紝cd鍒皃odspec鐨勬枃浠跺す锛岃緭鍏?br>pod trunk push./LmSDK.podspec
鍥涳細鍥?
2. 鍙戝竷鎴愬姛. 鎬庝箞楠岃瘉杩欎釜涓嶇敤璇翠簡鍚ю煒?/p>
鍥涳細鍥?
灏忓紵涓嶆墠锛岃嫢鏈夐敊璇箣澶勶紝娆㈣繋鐣欒█璁ㄨ锛堬季_锛撅級
以上是关于iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods的主要内容,如果未能解决你的问题,请参考以下文章
杩欎釜6宀佺殑瀛╁瓙鑷缂栫▼寮€鍙戜簡7娆惧簲鐢紝琚簱鍏嬮個璇峰埌鑻规灉鍙戝竷浼氾紝浠栫殑鎴愰暱缁忓巻鏄€庢牱鐨勶紵
PyCharm | 寮€鍙戝伐鍏蜂笌Python鐨勫畬缇庣粨鍚堬紙闄勮棰戞暀绋嬶級
鎶€鏈彂甯?| Forge Viewer涓嶧orge API Node.js瀹㈡埛绔疭DK鐨凾ypeScript澹版槑鏂囦欢鍙戝竷锛?/h1>