Skip to content
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

Add podspec for CocoaPods #96

Merged
merged 1 commit into from
Nov 4, 2019
Merged

Conversation

alexovits
Copy link
Contributor

No description provided.

@saudahmed
Copy link

When will this change be merged

@saudahmed
Copy link

I am working on react native 0.60.4 and autolinking is not working for it because it says

!] use_native_modules! skipped the react-native dependency 'rn-apple-healthkit'. No podspec file was found.

@ty-sang
Copy link

ty-sang commented Aug 27, 2019

Does owner still maintain this ? There are so many open PR, but I really do want this one merge in.

Copy link

@santi8194 santi8194 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better approach would be to use package.json info.

require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
  s.name         = package['name']
  s.version      = package['version']
  s.summary      = package['description']
  s.license      = package['license']

  s.authors      = package['author']
  s.homepage     = package['homepage']
  s.platform     = :ios, "9.0"

  s.source       = { :git => "https://github.com/terrillo/rn-apple-healthkit", :tag => "master" }
  s.source_files  = "RCTAppleHealthKit/*.{h,m}"
  s.requires_arc = true

  s.dependency 'React'
end

@tedcurrent
Copy link

Can we get this merged? Can't make a RN 0.61.1 release build without this fix.

@mifi
Copy link

mifi commented Oct 6, 2019

Temporary fix for now:

add to Podfile:

  pod 'RCTAppleHealthKit', :podspec => '../RTCAppleHealthKit.podspec'

Create a file RCTAppleHealthKit.podspec in react native project root directory:

# https://github.com/terrillo/rn-apple-healthkit/pull/96

Pod::Spec.new do |s|
  s.name         = "RCTAppleHealthKit"
  s.version      = "0.6.5"
  s.summary      = "A React Native package for interacting with Apple HealthKit"
  s.license      = "MIT"
  s.homepage     = "https://github.com/terrillo/rn-apple-healthkit"
  s.authors      = "Terrillo Walls"
  s.platform     = :ios, "9.0"
  s.source       = { :git => "https://github.com/terrillo/rn-apple-healthkit.git", :tag => "0.6.5v" }
  s.source_files = "RCTAppleHealthKit/**/*.{h,m}"

  s.dependency "React"
end

@terrillo terrillo merged commit 5395cd7 into lucaspbordignon:master Nov 4, 2019
c-goettert pushed a commit to afiller/rn-apple-healthkit that referenced this pull request Nov 7, 2019
* upstream/master:
  Hot fix
  0.7.0v
  Added Pods Header in Header Search Path (lucaspbordignon#101)
  Add podspec for CocoaPods (lucaspbordignon#96)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants