-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run iOS App test targets when pendo installed via pod #17
Comments
@benjamin-es-hall |
Thanks for the quick reply!
I just tried this and seemingly there was no issue, irrespective of pod or SPM installation. This has made me lean more towards a specific project setup but I'm yet to pinpoint what.
Tested on 15.5 (sim, Xcode cloud)
Yeah this is peculiar. Another test I tried was to add a different pod other than pendo and see if there is the same issue. My thinking was that this is the first new pod added to the project in a while so it may not actually be pendo related. However, it seems removing pendo and adding a different pod still allowed the tests to run. I don't think this rules out a project configuration issue, but is one more datapoint. I'll update with any further details tomorrow |
@benjamin-es-hall |
So here's a fun one. I tried playing around with other Pods and noticed an old version of Firebase Crashlytics/Analytics installed. I bumped it up to newest version and the tests seemingly started working. I then went to my fresh project to see if adding the old versions of Firebase as well as Pendo caused the hanging when launching tests (all tests have been launched from Xcode rather than command line, apart from Xcode Cloud which I imagine launches from command line). And it did! 🤔 Here is the sample PodFile I used: # Uncomment the next line to define a global platform for your project
platform :ios, '15.0'
target 'PendoTest' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for PendoTest
pod 'Firebase/Crashlytics','7.1.0'
pod 'Firebase/Analytics', '7.1.0'
pod 'Pendo', '2.18.0.6298'
target 'PendoTestTests' do
inherit! :search_paths
# Pods for testing
end
target 'PendoTestUITests' do
# Pods for testing
end
#Comment the next line if you don't want to use dynamic frameworks
post_install do |installer|
# Disable code coverage for all Pods and Pods Project
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Below only included as building to sim on M1 machine and Firebase pods listed above didn't include arm64 versions
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
end
end
end If that also causes issues for you it seems a weird combination of something in Firebase in that version (newest 9.6.0 doesn't seem to trigger hang) and Pendo is causing launch hang in tests only 🤔 ======== Answers to your comment:
Xcode locally, I imagine command line with Xcode cloud
After build and when launching app to test, eventually times out with no tests run and fails
Yes
Let me know if PodFile above is enough, if not I'll prepare the sample Thanks again! |
@benjamin-es-hall |
@benjamin-es-hall |
Hi @MikePendo no problem! Thank you so much for looking into it so quickly and I'm glad we could find a repeatable way to trigger it! Also good tip about pausing the debugger, I didn't think of that! We definitely can update our fire base dependency (it was on the todo list anyway), but I'm glad you have found a solution within Pendo as well! Thanks again! |
@benjamin-es-hall |
We are having issues when trying to run our tests with pendo (v2.18.0) installed via cocoa pods. This manifests as the app/simulator failing to launch when running tests, both locally and over CI (Xcode Cloud in our case). When Pendo is installed via SPM the issue does not seem to arise.
The issue seems somewhat similar to this https://developer.apple.com/forums/thread/704899
Let me know if I can provide more information.
The text was updated successfully, but these errors were encountered: