Cocoapods, for some reason, doesn't include libTestFlight.a
in the TestFlight target. So to fix this issue, each time you run pod install
, you must:
- Open the
Pods-TestFlightSDK
target in the Pods.xcodeproj
project
- Open
Build Phases
tab
- Add (via "Add Other...")
libTestFlight.a
to Link Binary With Libraries
dropdown
libTestFlight.a
can be found in your [$SRCROOT]/Pods/TestFlightsSDK
folder.
Do the same with Flurry and you're good to go!
Update May 1st 2014
It looks like "missing library integration" is a symptom of using the --no-integrate
flag (e.g., pod install --no-integrate
).
And to make life easier, I've written a script to automatically add the libraries after running pod (update|install) --no-integrate
Adjust as necessary and add this to the bottom of your Podfile
:
# Use post_install to automatically include required libraries
post_install do |installer_representation|
installer_representation.project.targets.each do |target|
if target.name == 'Pods-TestFlightSDK'
libFile = installer_representation.project.new_file('TestFlightSDK/libTestFlight.a')
end
if target.name == 'Pods-Brightcove-Player-SDK'
libFile = installer_representation.project.new_file('Brightcove-Player-SDK/Library/libBCOVPlayerSDK.a')
end
unless libFile.nil?
puts " - Adding %s to %s Frameworks Build Phases" % [libFile, target.name]
target.frameworks_build_phase.add_file_reference(libFile)
end
end
end