terrylinla / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.
MIT License
691 stars 450 forks source link

Errors While Building application #226

Closed bsrinath4839 closed 1 year ago

bsrinath4839 commented 2 years ago

The following error messages are coming in XCode while building my mobile app. Every time I am running cd ios && rm -rf Pods/ && rm -rf Podfile.lock && pod deintegrate && pod install to resolve.

Showing All Messages

Undefined symbol: _OBJC_CLASS_$_RCTViewManager
Undefined symbol: _OBJC_METACLASS_$_RCTViewManager
Undefined symbol: __RCTLogNativeInternal
Undefined symbol: _OBJC_CLASS_$_RCTConvert
Undefined symbol: _RCTRegisterModule

Please provide a permanent solution.

I even have the following in my Podfile:

pre_install do |installer|
  # Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}

  installer.pod_targets.each do |pod|
    if pod.name.eql?('RNScreens') || pod.name.eql?('RNCMaskedView') || pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')
      def pod.build_type
        Pod::BuildType.static_library
      end
    end
  end
end
nnguyendinhphong commented 1 year ago

+1 Same issue