Hi Team while integrating rudder stack sdk in flu...
# support
d
Hi Team while integrating rudder stack sdk in flutter I got below issue
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (Rudder-Firebase)
so I tried below in podfile
use_frameworks! :linkage=> :static
this solved the linkage issue but it created another below issue
Copy code
Error (Xcode): Unable to load contents of file list: '/Users/vikramkumar/Documents/wealthy/hail/app/ios/Pods/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-dev-input-files.xcfilelist'
due to this I am not able to build in ios I tried few solutions posted in stackoverflow but its not working please help me stuck in this from past few days here are packages version used
Copy code
rudder_sdk_flutter: ^2.3.2
rudder_integration_firebase_flutter: ^2.0.4
c
Hey @delightful-sundown-12602, Add this in your Podfile:
Copy code
pod 'FirebaseCore', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true
And comment out
Copy code
use_frameworks!
:linkage=> :static
.
d
same issue
current podfile
@calm-yak-10773
c
Can you please put this line and try again:
Copy code
use_frameworks! :linkage=> :static
use_modular_headers!
You can also refer to our Flutter repo it contains Firebase integration: https://github.com/rudderlabs/rudder-sdk-flutter
d
same issue @calm-yak-10773
@calm-yak-10773 the main issue is this only
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (Rudder-Firebase)
in above rudder flutter repo
Copy code
use_frameworks! :linkage=> :static
above works because it has static linkage dependencies but in our app dynamic linkage dependencies are there so solving one will cause issue in another can we get dynamic linkage pod of rudder firebase
c
CC: <!subteam^S04QT1G74Q3|@sdk-team>
Hey @delightful-sundown-12602, I have notified our team about this feature request and will keep you updated on any developments.
d
Thanks @calm-yak-10773 one more important info I want to share which i found while debugging if i add Rudder-Facebook in podfile app is building fine because it
doesn't
have
s.static_framework = true
in its podspec while if i add Rudder-Firebase in podfile build is failing because it has
s.static_framework = true
in its podspec so its quite clear we have to disable
s.static_framework = true
in firebase pod to fix the issue
👍 1
<!subteam^S04QT1G74Q3|@sdk-team> @calm-yak-10773 any updates?
đź‘€ 1
k
Hey @delightful-sundown-12602, Please allow us some time to look into this issue. In the mean time, I would like to clarify that even the the official Flutter Firebase packages as well are static frameworks as defined here. And can you please let us know what exactly is the issue you are facing with your dynamic frameworks when you add the line
use_frameworks! :linkage=> :static
? Because we had tried with the exact same flutter and iOS cocoapods as you had shared but we are not facing any issues
d
By
use_frameworks! :linkage=> :static
this solved the linkage issue but it created another below issue
Copy code
Error (Xcode): Unable to load contents of file list: '/Users/vikramkumar/Documents/wealthy/hail/app/ios/Pods/Target Support
Files/Pods-Runner/Pods-Runner-frameworks-Debug-dev-input-files.xcfilelist'
due to this I am not able to build in ios @kind-carpenter-27609
k
I am not sure, if this error is related to Rudderstack. Can you please share more details about this file ?
d
I dont know about this it comes whenever i do use_frameworks! :linkage=> :static
k
I see, but I do not think this error is related to Rudderstack’s SDK. As the error is pointing to an .xcfilelist, when you are statically linking frameworks, can you try cleaning the project once and then run it ?
d
i will try & let you know
still same issue did clean issue deleted derived data also @kind-carpenter-27609
issue is fixed I had to manually delete
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
from pbxproj & then build clean install was not working @kind-carpenter-27609 thanks
k
awesome, great to hear that