title: OneSignal not working on iOS
body: <p>I am working on a react native app (detached) and tried to install OneSignal for push notification, it works perfectly fine on android, but I am having issues on ios.</p>
  
  <p>Initially I got this error: <strong>'React/RCTAnimationType.h'</strong> file not found.
  Then after googling the error, I saw that I need to specify OneSignal into pod file(OneSignal documentation doesn't say about this, or I missed it).</p>
  
  <p>After I added the following into pod file:</p>
  
  <pre><code>pod 'react-native-onesignal', 
          :path =&gt; '../node_modules/react-native-onesignal'
  </code></pre>
  
  <p>then it complained about pod spec something, well I found this file as well on their GitHub OneSignal repo.</p>
  
  <p>so I changed as:</p>
  
  <pre><code>pod 'react-native-onesignal', 
          :podspec =&gt; "../node_modules/react-native-onesignal/react-native-onesignal.podspec",
          :path =&gt; '../node_modules/react-native-onesignal'
  </code></pre>
  
  <p>Run the command <strong>pod install</strong></p>
  
  <p>Looked like it resolved something but then I get another error as following:</p>
  
  <p><a href="https://github.com/danieljvdm/react-native-onesignal/blame/620717a0027538999cd98e1f225d0e4d9a804445/react-native-onesignal.podspec" rel="nofollow noreferrer">https://github.com/danieljvdm/react-native-onesignal/blame/620717a0027538999cd98e1f225d0e4d9a804445/react-native-onesignal.podspec</a></p>
  
  <blockquote>
    <p>[!] Error installing react-native-onesignal [!] /usr/local/bin/git
    clone
    git+<a href="https://github.com/geektimecoil/react-native-onesignal.git.git" rel="nofollow noreferrer">https://github.com/geektimecoil/react-native-onesignal.git.git</a>
    /var/folders/hp/96xj1gkj76s_x7hbh3rd2vs80000gn/T/d20180504-46105-1fdo6c6
    --template= --single-branch --depth 1 --branch v3.1.4</p>
    
    <p>Cloning into
    '/var/folders/hp/96xj1gkj76s_x7hbh3rd2vs80000gn/T/d20180504-46105-1fdo6c6'...
    fatal: Unable to find remote helper for 'git+https'</p>
  </blockquote>
  
  <p>My final podfile looks as below:</p>
  
  <pre><code>source 'https://github.com/CocoaPods/Specs.git'
  platform :ios, '9.0'
  
  target 'my app' do
    pod 'ExpoKit',
      :git =&gt; "http://github.com/expo/expo.git",
      :tag =&gt; "ios/2.4.4",
      :subspecs =&gt; [
        "Core",
        "CPP",
        "GL"
      ]
  
    pod 'React',
      :path =&gt; "../node_modules/react-native",
      :inhibit_warnings =&gt; true,
      :subspecs =&gt; [
        "Core",
        "ART",
        "RCTActionSheet",
        "RCTAnimation",
        "RCTCameraRoll",
        "RCTGeolocation",
        "RCTImage",
        "RCTNetwork",
        "RCTText",
        "RCTVibration",
        "RCTWebSocket",
        "DevSupport",
        "CxxBridge"
      ]
    pod 'yoga',
      :path =&gt; "../node_modules/react-native/ReactCommon/yoga",
      :inhibit_warnings =&gt; true
    pod 'DoubleConversion',
      :podspec =&gt; "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec",
      :inhibit_warnings =&gt; true
    pod 'Folly',
      :podspec =&gt; "../node_modules/react-native/third-party-podspecs/Folly.podspec",
      :inhibit_warnings =&gt; true
    pod 'glog',
      :podspec =&gt; "../node_modules/react-native/third-party-podspecs/glog.podspec",
      :inhibit_warnings =&gt; true
    pod 'react-native-onesignal', 
      :podspec =&gt; "../node_modules/react-native-onesignal/react-native-onesignal.podspec",
      :path =&gt; '../node_modules/react-native-onesignal'
  
    post_install do |installer|
      installer.pods_project.main_group.tab_width = '2';
      installer.pods_project.main_group.indent_width = '2';
  
      installer.pod_targets.each do |target|
  
      if target.pod_name == 'ExpoKit'
        target.native_target.build_configurations.each do |config|
          config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
          config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] &lt;&lt; 'EX_DETACHED=1'
  
          # needed for GoogleMaps 2.x
          config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= []
          config.build_settings['FRAMEWORK_SEARCH_PATHS'] &lt;&lt; '${PODS_ROOT}/GoogleMaps/Base/Frameworks'
          config.build_settings['FRAMEWORK_SEARCH_PATHS'] &lt;&lt; '${PODS_ROOT}/GoogleMaps/Maps/Frameworks'
        end
      end
  
  
      if ['Amplitude-iOS','Analytics','AppAuth','Branch','CocoaLumberjack','FBSDKCoreKit','FBSDKLoginKit','FBSDKShareKit','GPUImage','JKBigInteger2'].include? target.pod_name
        target.native_target.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
        end
      end
      # Build React Native with RCT_DEV enabled
      next unless target.pod_name == 'React'
      target.native_target.build_configurations.each do |config|
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] &lt;&lt; 'RCT_DEV=1'
      end
  
      end
    end
  end
  </code></pre>
  
  <p>I just have the feeling that I am doing too much of what needs to be done maybe, can anyone let me know what am I doing wrong here?</p>
  
  <p>Forgot to mention, I linked the library using <strong>react-native link react-native-onesignal</strong> for both android and iOS before doing anything.</p>