Wenfengcheng / xamarin-notes

xamarin journal
MIT License
3 stars 0 forks source link

Xamarin.iOS quicky binding by Cocoapods #18

Open Wenfengcheng opened 5 years ago

Wenfengcheng commented 5 years ago

How to quickly bind iOS third-party libraries:

platform :ios, ‘12.1’
install! ‘cocoapods’, :integrate_targets => false
target ‘ObjectiveSharpieIntegration’ do
 use_frameworks!

pod ‘XXX’
end

Steps

  1. Create a new podfile in your local floder, and copy above code to this file.
  2. Replace XXX to SDK Name(such as SDWebImage, AFNetworking , etc).
  3. Go to Terminal and run cd [Full-Path-To-Podfile] and run pod install --no-repo-update.
  4. Run Sharpie pod bind to complete this binding.

Reference