react-native-qualtrics podspec is wrong + where can we contribute? | XM Community
Skip to main content
Solved

react-native-qualtrics podspec is wrong + where can we contribute?


The podspec points on the

__dir__
variable.
This result in having a Podfile.lock that is different for every developer on the team.
The code for those SDK should be open-source so that we can contribute back some fixes.
Pod::Spec.new do |s|
s.name = "RNQualtricsDigital"
s.version = "0.0.1"
s.summary = "RNQualtricsDigital"
s.description = <<-DESC
RNQualtricsDigital
DESC
s.homepage = "https://api.qualtrics.com"
s.platform = :ios, "9.0"
s.source_files = "*.{h,m}"
s.requires_arc = true
s.dependency "Qualtrics"
s.source = { :http => 'file:' + __dir__ + '/RNQualtricsDigital.zip' }
s.author = "Qualtrics"
s.dependency "React"
end

Best answer by LaurenK

Hi prozhak! Please be sure to reach out to our SDK specialists on the Web / App Feedback team about this, as they are best able to assist! Thanks!

View original

LaurenK
Former XM Community Team Member
Forum|alt.badge.img+13
  • Former XM Community Team Member
  • August 24, 2020

Hi prozhak! Please be sure to reach out to our SDK specialists on the Web / App Feedback team about this, as they are best able to assist! Thanks!


LaurenK we're also having the same issue. can the SDK specialists or App feedback team post the fix here so devs that get to this point after doing some research have a more handy answer?


prozhak maybe you can also post the fix here and help the community :)


LaurenK any update? i can't reach support center, the link is not working


NickAnderson
Qualtrics Employee
Forum|alt.badge.img+2

Hi emanzanares! If this hyperlink to the Support Portal is not loading correctly, please copy and paste the link below in your web browser and you should be able to fill out a Support Request to get in touch with the Website/App Feedback Team! If you can't access the Support Center, please select "Can't login or don't have an account".
www.qualtrics.com/support-center/
Please let us know if you have any more issues contacting our Support Team 😊


Forum|alt.badge.img

Hi there !

 

I came across the same issue with the following react-native confirugation, with iOS only:

react-native: 0.70.6

react-native-qualtrics: 2.4.1

Qualtrics Pod: 2.12.0

 

I was able to make it work by adding the corresponding podspec file under node_modules/react-native-qualtrics/react-native-qualtrics.podspec

 

I created the podspec file and include some random data:

require 'json'
package = JSON.parse(File.read('./package.json'))

Pod::Spec.new do |s|
  s.name          = package['name']
  s.version       = package['version']
  s.summary       = "RNQualtricsDigital"
  s.description   = "https://api.qualtrics.com"
  s.homepage      = "https://api.qualtrics.com"
  s.license       = 'MIT'
  s.platform      = :ios, "9.0"
  s.requires_arc  = true
  s.source        = { :http => 'file:' + __dir__ + '/ios/RNQualtricsDigital.zip' }
  s.source_files  = "ios/*.{h,m,swift}"
  s.author        = "Qualtrics"
  s.preserve_paths = "README.md", "package.json", "index.js"
  s.dependency    "React-Core"
  s.dependency    "Qualtrics", '2.12.0'
end


 

And then, I used patch-package to keep track of it and it worked perfectly fine.


Forum|alt.badge.img

Thanks it fixed it for me!