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>

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

浜岋細鍥?

2. 鏈湴鍒涘缓涓€涓┖鏂囦欢澶癸紝浣滀负鍙戝竷浠撳簱

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

浜岋細鍥?

3. 鎴戣繖閲屼娇鐢ㄤ簡sourcetree绠$悊

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

浜岋細鍥?

4. 鎶婃墦鍖呭ソ鐨刦ramework, 澶嶅埗鍒扮┖鐧界殑鏈湴浠撳簱涓?/p>

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

浜岋細鍥?

5. 鎶奻ramework涓婁紶鍒拌繙绋嬩粨搴擄紝骞跺垱寤簍ag銆倀ag鍛藉悕灏介噺鐢?.0.0 杩欐牱鐨勬牸寮忥紝鍥犱负涓嬮潰閰嶇疆podspec鏃堕渶瑕佺敤鍒般€?/p>

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

浜岋細鍥?



绗笁姝ワ細鍒涘缓涓庨厤缃畃odspec

1. 鏂板缓podspec鏂囦欢, 鍛戒护琛岃緭鍏?br>pod spec create yourSDKName

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

涓夛細鍥?

2. 閫夌敤Xcode鎵撳紑podspec鏂囦欢

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

涓夛細鍥?


iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

涓夛細鍥?

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

5. 閰嶇疆SDK鐨勪緷璧栧簱
鏂板涓嬮潰涓よ
spec.ios.vendored_frameworks = 'LmSDKProject.framework'

spec.frameworks = 'UIKit','Foundation'

鏂板鍏朵粬绗笁鏂逛緷璧栧簱
spec.dependency 'AFNetworking'

spec.dependency 'Masonry'

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

涓夛細鍥?

6. 楠岃瘉podspec . 鍛戒护琛岃緭鍏?br>pod spec lint
楠岃瘉鎴愬姛鍚庣鍙戝竷灏变笉杩滀簡

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

涓夛細鍥?


7. 楠岃瘉涓嶈兘鍑虹幇閿欒鍜岃鍛婏紝濡傛灉鎶ラ敊浜嗗彲浠ユ煡鐪嬭缁嗚鏄庛€傛寜瑕佹眰鏀逛竴涓嬪氨鍙互

iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods

涓夛細鍥?


绗洓姝ワ細鍙戝竷

1. 鍛戒护琛岋紝cd鍒皃odspec鐨勬枃浠跺す锛岃緭鍏?br>pod trunk push./LmSDK.podspec

鍥涳細鍥?


2. 鍙戝竷鎴愬姛. 鎬庝箞楠岃瘉杩欎釜涓嶇敤璇翠簡鍚ю煒?/p>

鍥涳細鍥?



灏忓紵涓嶆墠锛岃嫢鏈夐敊璇箣澶勶紝娆㈣繋鐣欒█璁ㄨ锛堬季_锛撅級

以上是关于iOS - SDK寮€鍙?涓嬮泦) 锛孲DK鍙戝竷鍒癈ocoapods的主要内容,如果未能解决你的问题,请参考以下文章

杩欎釜6宀佺殑瀛╁瓙鑷缂栫▼寮€鍙戜簡7娆惧簲鐢紝琚簱鍏嬮個璇峰埌鑻规灉鍙戝竷浼氾紝浠栫殑鎴愰暱缁忓巻鏄€庢牱鐨勶紵

PyCharm | 寮€鍙戝伐鍏蜂笌Python鐨勫畬缇庣粨鍚堬紙闄勮棰戞暀绋嬶級

Playgrounds鍙互鍦╩acOS绯荤粺涓婁娇鐢ㄥ暒

鎶€鏈彂甯?| Forge Viewer涓嶧orge API Node.js瀹㈡埛绔疭DK鐨凾ypeScript澹版槑鏂囦欢鍙戝竷锛?/h1>