ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.13k stars 1.56k forks source link

'TOCropViewConstants.h' file not found in the Swift project #1294

Open ghost opened 4 years ago

ghost commented 4 years ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

The TOCropViewController library reports an error in the swift project

Attachments

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

srshah19 commented 4 years ago

+1 I'm using react-native-image-crop-picker v0.31.2 and react-native v0.63.2

kipertech commented 4 years ago

I'm having the same issue, anyone else has come to a working solution for this matter?

AliRehman7141 commented 3 years ago

+1

here is my pod file, I'm integrating the native module for that extra pods are required and I have used this use_frameworks!

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '10.0'

def shared_pods
  pod "PryntTrimmerView"
  pod 'DKImagePickerController'
  pod "TTRangeSlider"
  pod "RappleProgressHUD"
  pod 'imglyKit2'
  pod "FilterCam"
  pod 'DPVideoMerger-Swift'
end

target 'RYSE_Upgraded' do
  use_frameworks!
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])

  shared_pods

  permissions_path = '../node_modules/react-native-permissions/ios'
  pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
  pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary.podspec"
  pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone.podspec"
  pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary.podspec"
  pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways.podspec"
  pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse.podspec"

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

  pod 'react-native-blur', :path => '../node_modules/@react-native-community/blur'

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

  pod 'RNMusicMetadata', :path => '../node_modules/react-native-music-metadata'

  target 'RYSE_UpgradedTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  #  use_flipper!
  #  post_install do |installer|
  #    flipper_post_install(installer)
  #  end
end

target 'RYSE_Upgraded-tvOS' do
  # Pods for RYSE_Upgraded-tvOS

  target 'RYSE_Upgraded-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end
end
AliRehman7141 commented 3 years ago

@ivpusic @TimOliver @regularberry Any update on this issue?? it is required me to add use_frameworks! but when I add this in my pod file I am getting this problem

System:
    OS: macOS 11.0.1
    CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
    Memory: 20.39 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.18.0 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.0.10 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.0 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
    Android SDK:
      API Levels: 23, 26, 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.2
      System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.6953283
    Xcode: 12.2/12B45b - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_275 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.3 => 0.63.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
sergioutama commented 3 years ago

@AliRehman7141 @Michael-lu-ke can you provide sample repo where this issue can be replicated?

AliRehman7141 commented 3 years ago

I have been fixed it by removing those modules which are requiring use_frameworks!

On Wed, Jan 6, 2021 at 1:24 PM Sergio Utama notifications@github.com wrote:

@AliRehman7141 https://github.com/AliRehman7141 @Michael-lu-ke https://github.com/Michael-lu-ke can you provide sample repo where this issue can be replicated?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ivpusic/react-native-image-crop-picker/issues/1294#issuecomment-755157557, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5C37GJKTLA7FSOPSFOKK3SYQM2RANCNFSM4NM2PKTA .

sergioutama commented 3 years ago

@AliRehman7141 which modules that require use_frameworks! ?

@Michael-lu-ke is it resolved for you as well ?

AliRehman7141 commented 3 years ago

these two

pod 'DKImagePickerController'

pod 'imglyKit2'

mrcwbr commented 3 years ago

I'm facing the same issue. ist there a way to use this library with use_frameworks! in the pod file?

rohanvasishth commented 1 year ago

Any update on this?

Abhishek1792 commented 10 months ago

any update ?