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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -