3

How can I read a defined variable in podfile? For example,

platform :ios, '8.0'
$myversion = ‘1.0’
target 'rubytest' do
pod 'AFNetworking', '~> 3.0'
end

myversion is the variable, in which module can I read it?

1 Answer 1

7

I am not sure I understand your question correctly but the following example works for me.

FrameworkVersion = '= x.y.z'

target :Application do
  platform :ios, '8.0'
  pod 'Framework', FrameworkVersion
end

(CocoaPods version 1.2.1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.