react-native-qualtrics 2.7.0 issue "no visible @interface for selector 'setLastDisplayTimeForInterceptFor:' | XM Community
Skip to main content
Solved

react-native-qualtrics 2.7.0 issue "no visible @interface for selector 'setLastDisplayTimeForInterceptFor:'

  • September 17, 2024
  • 4 replies
  • 178 views

Forum|alt.badge.img+2

I tried to integrate rn-qualtrics 2.7.0 but iOS compilation get me the error below

/node_modules/react-native-qualtrics/ios/RNQualtricsDigital.m:277:34: error: no visible @interface for 'QualtricsProperties' declares the selector 'setLastDisplayTimeForInterceptFor:'

I have no clue why I’m getting this. Some hints will be appreciated. Thanks!

Best answer by dp-goto

😮 I spoke too fast, and it was our fault and not theirs, we were hardcoding the iOS Qualtrics SDK pod version to 2.9.1, upgrading to 2.31.0 fixed the issue

4 replies

  • 1 reply
  • April 29, 2025

@dp-goto Have you had any luck resolving this? I'm encountering the same issue with rn-qualtrics version 2.7.0.


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 7 replies
  • April 29, 2025

No, we kept 2.5.0 for now


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 7 replies
  • September 10, 2025

FYI: This is still an ongoing isue in 2.11.0, I wonder if they test there code.

Anyway a patch commenting the faulty code allow me to continue:

File: react-native-qualtrics+2.11.0.patch

diff --git a/node_modules/react-native-qualtrics/ios/RNQualtricsDigital.swift b/node_modules/react-native-qualtrics/ios/RNQualtricsDigital.swift
index 4e59595..2acc45f 100644
--- a/node_modules/react-native-qualtrics/ios/RNQualtricsDigital.swift
+++ b/node_modules/react-native-qualtrics/ios/RNQualtricsDigital.swift
@@ -291,7 +291,8 @@ class RNQualtricsDigitalImpl: NSObject {
     
     @objc(setLastDisplayTimeForIntercept:)
     func setLastDisplayTimeForIntercept(_ interceptId: String) {
-        Qualtrics.shared.properties.setLastDisplayTimeForIntercept(for: interceptId)
+        // For an unknown reason this is linked to something not existing, commenting it out allow us to make the project compile and boot.
+        //Qualtrics.shared.properties.setLastDisplayTimeForIntercept(for: interceptId)
     }
     
     @objc(setNotificationIconAsset:)

 


Forum|alt.badge.img+2
  • Author
  • Level 1 ●
  • 7 replies
  • Answer
  • September 10, 2025

😮 I spoke too fast, and it was our fault and not theirs, we were hardcoding the iOS Qualtrics SDK pod version to 2.9.1, upgrading to 2.31.0 fixed the issue