react-native-material-kit icon indicating copy to clipboard operation
react-native-material-kit copied to clipboard

Build failure fix changed <angled> to "quotes" on import <UIView+Reach.h>

Open hammadzz opened this issue 6 years ago • 16 comments

Fixes #371

hammadzz avatar Nov 28 '17 18:11 hammadzz

Thank you for this PR.

Can you tell me what is the RN version you use? Since RN 0.40 iOS headers has been moved (cf https://github.com/facebook/react-native/releases/tag/v0.40.0).

Also it's pretty weird since headers should have been #import <React/UIView+React.h>. Can you try with this one?

Crash-- avatar Nov 29 '17 09:11 Crash--

@Crash-- from my package.json "react-native": "^0.49.5"

This issue is seen with another library as well. I can make a new branch and give that React/UIView+React.h as shot. I also suspect another thing with the way I was double adding react from pods and node_modules. So perhaps I don't even need a fix. Will by tomorrow

hammadzz avatar Nov 29 '17 14:11 hammadzz

+1

Sebastian-Neubert avatar Jan 15 '18 22:01 Sebastian-Neubert

same problem here :( found a solution?

Tamiyadd avatar Feb 15 '18 10:02 Tamiyadd

@Tamiyadd can you check if you have react in your pods file and your package.json? I suspect it was that but I never got back to checking. I just used my fork (this pull request) to get around the issue. I guess I will get back to it when I try to update this library. :(

Kind of tied up with finishing my project.

hammadzz avatar Feb 20 '18 17:02 hammadzz

@hammadzz yes i have react native core in my podfile :(

Tamiyadd avatar Feb 20 '18 17:02 Tamiyadd

@Tamiyadd try without it.

hammadzz avatar Feb 20 '18 17:02 hammadzz

@hammadzz if i remove react from podfile pod will install react 0.11.0

Tamiyadd avatar Feb 22 '18 11:02 Tamiyadd

I'm facing the same issue as well. I'm using the detached expo sdk which tends to mess up linking of other native libraries.

Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'slions' do
  pod 'ExpoKit',
    :git => "http://github.com/expo/expo.git",
    :tag => "ios/2.3.3",
    :subspecs => [
      "Core",
      "CPP"
    ]

  pod 'React',
    :path => "../node_modules/react-native",
    :subspecs => [
      "Core",
      "ART",
      "RCTActionSheet",
      "RCTAnimation",
      "RCTCameraRoll",
      "RCTGeolocation",
      "RCTImage",
      "RCTNetwork",
      "RCTText",
      "RCTVibration",
      "RCTWebSocket",
      "DevSupport",
      "CxxBridge"
    ]
  pod 'yoga',
    :path => "../node_modules/react-native/ReactCommon/yoga"
  pod 'DoubleConversion',
    :podspec => "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec",
    :inhibit_warnings => true
  pod 'Folly',
    :podspec => "../node_modules/react-native/third-party-podspecs/Folly.podspec",
    :inhibit_warnings => true
  pod 'GLog',
    :podspec => "../node_modules/react-native/third-party-podspecs/GLog.podspec",
    :inhibit_warnings => true


  pod 'react-native-video', :path => '../node_modules/react-native-video'

  pod 'react-native-fetch-blob', :path => '../node_modules/react-native-fetch-blob'

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  pod 'react-native-material-kit', :path => '../node_modules/react-native-material-kit'

  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'] << 'EX_DETACHED=1'
        # needed for GoogleMaps 2.x
        config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= []
        config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Base/Frameworks'
        config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Maps/Frameworks'
      end
    end


    if target.pod_name == 'AppAuth'
      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'] << 'RCT_DEV=1'
    end

    end
  end
end

riwu avatar Feb 22 '18 13:02 riwu

I would like to see this merged, it fixed the error somehow.

pencilcheck avatar Apr 09 '18 20:04 pencilcheck

+1

RobTS avatar Apr 26 '18 09:04 RobTS

  • 1

Tamiyadd avatar May 14 '18 16:05 Tamiyadd

Any news on this one?

ericorruption avatar May 24 '18 11:05 ericorruption

merge this please? any reason why this is not merged? @xinthink

badoet avatar Jul 26 '18 06:07 badoet

I don't know. This makes semantically no difference.

Sebastian-Neubert avatar Jul 26 '18 06:07 Sebastian-Neubert

I have opened a competing pull request, #409. This pull request contains the correct solution according to the react-native 0.40.0 release notes. The single-quote vs. double-quote thing was a red herring. The real problem is that the header moved.

swansontec avatar Mar 28 '19 18:03 swansontec