CocoaPods: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 79: Line 79:
* [https://medium.com/flawless-app-stories/create-your-own-cocoapods-library-da589d5cd270 Create your own CocoaPods library]
* [https://medium.com/flawless-app-stories/create-your-own-cocoapods-library-da589d5cd270 Create your own CocoaPods library]
* [https://www.raywenderlich.com/5823-how-to-create-a-cocoapod-in-swift How to Create a CocoaPod in Swift]
* [https://www.raywenderlich.com/5823-how-to-create-a-cocoapod-in-swift How to Create a CocoaPod in Swift]
* [https://stackoverflow.com/questions/40599454 Use the <code>`$(inherited)`</code> flag]
* [https://stackoverflow.com/questions/40599454 Use the <code>'$(inherited)'</code> flag]
* [https://stackoverflow.com/questions/55011171 Unable to load contents of file list]
* [https://stackoverflow.com/questions/55011171 Unable to load contents of file list]
* [https://medium.com/flawless-app-stories/getting-started-with-reusable-frameworks-for-ios-development-f00d74827d11 Reusable Frameworks for iOS]
* [https://medium.com/flawless-app-stories/getting-started-with-reusable-frameworks-for-ios-development-f00d74827d11 Reusable Frameworks for iOS]

Revision as of 08:01, 21 December 2019

Install

pod --version
pod repo update
cd /opt/dev/cki_workspaces/
cd ./init_workspace/chorke-init-iosapp/

pod init
vim Podfile 
open -a xcode Podfile
pod install

Fixing

pod deintegrate
sudo gem install cocoapods-clean
cd /opt/dev/cki_workspaces/
cd ./init_workspace/chorke-init-iosapp/
pod clean
pod setup
pod install

Podspec

pod lib create AcademiaCoreGUI
cd AcademiaCoreGUI/

pod lib lint AcademiaCoreGUI.podspec 
pod repo push academia-apps-iosgui AcademiaCoreGUI.podspec 
ls -la ~/.cocoapods/repos/academia-apps-iosgui/AcademiaCoreGUI.podspec/
pod repo add AcademiaCoreGUI https://github.com/chorkeorg/academia-apps-iosgui.git
pod spec create AcademiaCoreGUI
open -a Xcode AcademiaCoreGUI.podspec
pod spec lint AcademiaCoreGUI.podspec
pod lib lint
:'
git tag -d v1.0.0
git push --delete origin -d v1.0.0
'
git tag v1.0.0
git push origin v1.0.0
pod trunk register [email protected] 'Chorke Academia' --description='Chorke Academia, Inc.'
pod trunk push
pod install
# pod repo update
pod update AcademiaCoreGUI
pod install --repo-update

Private Podspec

pod repo add AcademiaCoreLIB bit.chorke.org:chorkeorg/academia-core-ioslib.git
cd ~/.cocoapods/repos/AcademiaCoreLIB/; pod repo lint .
pod repo push AcademiaCoreLIB AcademiaCoreLIB.podspec
pod repo remove AcademiaCoreLIB
# add to podfile as pod dependency
pod 'AcademiaCoreLIB', :git => 'bit.chorke.org:chorkeorg/academia-core-ioslib.git'

References