ios - Editing locked files from a CocoaPods framework -


i have xcode workspace uses cocoapods include several third-party frameworks. edit line of source code within 1 of these dependencies. however, when so, xcode warns me file locked , changes make may not saved. question is: changes source code discarded when run pod install/update? if not, there other scenario, possibly unrelated cocoapods, discard changes? , finally, there way can edit source code without running such problems?

thanks in advance.

you can not make changes in original pod file. if want add more features have fork particular repo.

follow steps :

  1. find library want use on git.
  2. fork library.
  3. update podfile refer forked version. suppose want fork gpuimage library. point fork in podfile given.

pod 'gpuimage', :git => 'https://github.com/username/gpuimage.git'

  1. make changes.
  2. commit/push changes forked repo.
  3. submit pull request original author of library.
  4. if pull request accepted , pod updated, revert podfile use public pod.

you can create category (objective c) or extension (swift) extend or add features existing class.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -