tbointeractive / bytes

bytes is a set of Swift tools to cover many all-day tasks in iOS development.
MIT License
7 stars 1 forks source link

Use PODS_TARGET_SRCROOT instead of PODS_ROOT in podspec #40

Closed dnkoutso closed 2 years ago

dnkoutso commented 5 years ago

Change from:

  s.pod_target_xcconfig = {
    'SWIFT_INCLUDE_PATHS[sdk=macosx*]' => '$(PODS_ROOT)/bytes/CocoaPods/macosx',
    # etc...
  }

to:

  s.pod_target_xcconfig = {
    'SWIFT_INCLUDE_PATHS[sdk=macosx*]' => '$(PODS_TARGET_SRCROOT)/CocoaPods/macosx',
    # etc...
  }

PODS_ROOT can be different when linting the pod locally or consuming it remotely. PODS_TARGET_SRCROOT will always be correct.