react-native-photo-editor icon indicating copy to clipboard operation
react-native-photo-editor copied to clipboard

react-native-photo-editor giving Linking error while run the project

Open arjundalal opened this issue 4 years ago • 39 comments

When we install react-native-photo-editor library on IOS react native it will give linking error please help me to solve it. the error is as follows Screenshot 2019-11-12 at 2 54 59 PM please help me tp solve this error.

arjundalal avatar Nov 12 '19 09:11 arjundalal

+1 same issue! is there any way to install library on IOS with cocoapods ? I'm using RN 0.60. If we have to link library manual, please tell me know exact steps? the instruction seem not work for me :( Thanks all !

DarkbaronHUST avatar Nov 12 '19 10:11 DarkbaronHUST

When we install react-native-photo-editor library on IOS react native it will give linking error please help me to solve it. the error is as follows Screenshot 2019-11-12 at 2 54 59 PM please help me tp solve this error.

Did U find how to slove this issue. It's work fine on Android, but I can not make its work on iOS ! pls help !

DarkbaronHUST avatar Nov 14 '19 11:11 DarkbaronHUST

No i am not able to solve this issue Please help me

On Thu, 14 Nov 2019, 4:33 pm Darkbaron, [email protected] wrote:

When we install react-native-photo-editor library on IOS react native it will give linking error please help me to solve it. the error is as follows [image: Screenshot 2019-11-12 at 2 54 59 PM] https://user-images.githubusercontent.com/54262572/68658960-6ce07180-055c-11ea-935a-53724f2553b4.png please help me tp solve this error.

Did U find how to slove this issue. It's work fine on Android, but I can not make its work ! pls help !

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/prscX/react-native-photo-editor/issues/93?email_source=notifications&email_token=AM57WLGQW4F24LUS57T5GELQTUWAVA5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEBONII#issuecomment-553838241, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM57WLCCIKRY5DE3NPCJNJLQTUWAVANCNFSM4JMATKHA .

arjundalal avatar Nov 14 '19 11:11 arjundalal

i'm able to get throw this error by adding :

pod 'RNPhotoEditor', :path => '../node_modules/react-native-photo-editor/ios' use_frameworks! pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master'

to Podfile, then run pod update

(if u get error when run app, its because libraris conflict when use_frameworks! ==> Add s.static_framework = true to podspec to get throw this error)

When APP builded, im going to edit image, but nothing happend, log from xcode show that :

picturemessage_mzo3ql23 e3l

and now, i'm stuck here.

help !

DarkbaronHUST avatar Nov 14 '19 11:11 DarkbaronHUST

  1. Double check your Pod file and make sure you have removed the "#" sign before "use_frameworks!"
  2. make sure you have added the below code to your pod file.
use_native_modules!

  pod 'RNPhotoEditor', :path => '../node_modules/react-native-photo-editor/ios'

  use_frameworks!

  pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master'
  1. run pod update
  2. in case of getting error like The 'Pods-xxxxx' target has transitive dependencies that include statically linked binaries: So you can easily fix it by adding the code below to your xxxxx target in your pod file
pre_install do |installer|
  Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
  end

beobungbu avatar Nov 24 '19 20:11 beobungbu

Thanks @arjundalal for raising the issue.

I have updated installation steps, could you please try this with RN61, since it has better support for use_frameworks!.

Thanks </ Pranav >

prscX avatar Dec 01 '19 04:12 prscX

Hiii Pranav and all Till i am getting the same issue can any one help me to solve this issue.

Regards, Arjun Dalal. On Sun, 1 Dec 2019, 10:22 am Pranav Raj Singh Chauhan, < [email protected]> wrote:

Thanks @arjundalal https://github.com/arjundalal for raising the issue.

I have updated installation steps, could you please try this with RN61, since it has better support for use_frameworks!.

Thanks </ Pranav >

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prscX/react-native-photo-editor/issues/93?email_source=notifications&email_token=AM57WLG53ILRPCY6DP7JDQDQWM7JNA5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQ4J6A#issuecomment-560055544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM57WLCE6QTEHSKTZHOC5RLQWM7JNANCNFSM4JMATKHA .

arjundalal avatar Dec 01 '19 05:12 arjundalal

Hi Team Still i am getting error can you help me to resolve it.

Regards, Arjun Dalal

On Sun, 1 Dec 2019 at 10:33, Arjun Dalal [email protected] wrote:

Hiii Pranav and all Till i am getting the same issue can any one help me to solve this issue.

Regards, Arjun Dalal. On Sun, 1 Dec 2019, 10:22 am Pranav Raj Singh Chauhan, < [email protected]> wrote:

Thanks @arjundalal https://github.com/arjundalal for raising the issue.

I have updated installation steps, could you please try this with RN61, since it has better support for use_frameworks!.

Thanks </ Pranav >

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prscX/react-native-photo-editor/issues/93?email_source=notifications&email_token=AM57WLG53ILRPCY6DP7JDQDQWM7JNA5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQ4J6A#issuecomment-560055544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM57WLCE6QTEHSKTZHOC5RLQWM7JNANCNFSM4JMATKHA .

arjundalal avatar Dec 02 '19 11:12 arjundalal

okay, i fixed it by doing:

  1. if you getting stuck at Google's Libraries like GMap, Firebase, ... just add it manually,
  2. you can replace use_frameworks! by use_modular_headers!
  3. If you can't replace it with use_modular_headers!, then add code bellow right after use_frameworks!
$dynamic_frameworks = ['RxCocoa', 'RxSwift']

pre_install do |installer|
  installer.pod_targets.each do |pod|
    if !$dynamic_frameworks.include?(pod.name)
      puts "Overriding the static_framework? method for #{pod.name}"
      def pod.build_type;
        Pod::Target::BuildType.static_library
      end
    end
  end
end

Hi Team Still i am getting error can you help me to resolve it. Regards, Arjun Dalal On Sun, 1 Dec 2019 at 10:33, Arjun Dalal @.> wrote: Hiii Pranav and all Till i am getting the same issue can any one help me to solve this issue. Regards, Arjun Dalal. On Sun, 1 Dec 2019, 10:22 am Pranav Raj Singh Chauhan, < @.> wrote: > Thanks @arjundalal https://github.com/arjundalal for raising the issue. > > I have updated installation steps, could you please try this with RN61, > since it has better support for use_frameworks!. > > Thanks > </ Pranav > > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <#93?email_source=notifications&email_token=AM57WLG53ILRPCY6DP7JDQDQWM7JNA5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQ4J6A#issuecomment-560055544>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AM57WLCE6QTEHSKTZHOC5RLQWM7JNANCNFSM4JMATKHA > . >

beobungbu avatar Dec 02 '19 12:12 beobungbu

@arjundalal: Could you please share your app software stack.

Thanks </ Pranav >

prscX avatar Dec 02 '19 12:12 prscX

yes

On Mon, 2 Dec 2019 at 18:01, Pranav Raj Singh Chauhan < [email protected]> wrote:

@arjundalal https://github.com/arjundalal: Could you please share your app software stack.

Thanks </ Pranav >

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prscX/react-native-photo-editor/issues/93?email_source=notifications&email_token=AM57WLBQE5EYUJJYAY5PCADQWT5ZDA5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTKUQY#issuecomment-560376387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM57WLGBTGMLNQXGSJRTRT3QWT5ZDANCNFSM4JMATKHA .

arjundalal avatar Dec 02 '19 12:12 arjundalal

i am getting this error after installing library. and my podfile look like this use_native_modules! pod 'RNPhotoEditor', :path => '../node_modules/react-native-photo-editor/ios' use_frameworks! $dynamic_frameworks = ['RxCocoa', 'RxSwift']

pre_install do |installer| installer.pod_targets.each do |pod| if !$dynamic_frameworks.include?(pod.name) puts "Overriding the static_framework? method for #{pod.name}" def pod.build_type; Pod::Target::BuildType.static_library end end end end pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master' post_install do |installer| installer.pods_project.targets.each do |target| if target.name.include?('iOSPhotoEditor') target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '5' end end end end

On Mon, 2 Dec 2019 at 18:02, Arjun Dalal [email protected] wrote:

yes

On Mon, 2 Dec 2019 at 18:01, Pranav Raj Singh Chauhan < [email protected]> wrote:

@arjundalal https://github.com/arjundalal: Could you please share your app software stack.

Thanks </ Pranav >

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prscX/react-native-photo-editor/issues/93?email_source=notifications&email_token=AM57WLBQE5EYUJJYAY5PCADQWT5ZDA5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTKUQY#issuecomment-560376387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM57WLGBTGMLNQXGSJRTRT3QWT5ZDANCNFSM4JMATKHA .

arjundalal avatar Dec 02 '19 13:12 arjundalal

Hii Team, I am getting 194 linking error please help me to solve it. the screen shot of error are as follows

Regards, Arjun Dalal

On Mon, 2 Dec 2019 at 19:11, Arjun Dalal [email protected] wrote:

i am getting this error after installing library. and my podfile look like this use_native_modules! pod 'RNPhotoEditor', :path => '../node_modules/react-native-photo-editor/ios' use_frameworks! $dynamic_frameworks = ['RxCocoa', 'RxSwift']

pre_install do |installer| installer.pod_targets.each do |pod| if !$dynamic_frameworks.include?(pod.name) puts "Overriding the static_framework? method for #{pod.name}" def pod.build_type; Pod::Target::BuildType.static_library end end end end pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master' post_install do |installer| installer.pods_project.targets.each do |target| if target.name.include?('iOSPhotoEditor') target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '5' end end end end

On Mon, 2 Dec 2019 at 18:02, Arjun Dalal [email protected] wrote:

yes

On Mon, 2 Dec 2019 at 18:01, Pranav Raj Singh Chauhan < [email protected]> wrote:

@arjundalal https://github.com/arjundalal: Could you please share your app software stack.

Thanks </ Pranav >

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prscX/react-native-photo-editor/issues/93?email_source=notifications&email_token=AM57WLBQE5EYUJJYAY5PCADQWT5ZDA5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTKUQY#issuecomment-560376387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM57WLGBTGMLNQXGSJRTRT3QWT5ZDANCNFSM4JMATKHA .

arjundalal avatar Dec 02 '19 15:12 arjundalal

Use xcode 10 instead of xcode 11 please. Add the swift path to libraries search path in your target

beobungbu avatar Dec 02 '19 17:12 beobungbu

But there are other libraries which give error on xcode 10

On Mon, 2 Dec 2019, 11:08 pm beobungbu, [email protected] wrote:

Use xcode 10 instead of xcode 11 please. Add the swift path to libraries search path in your target

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prscX/react-native-photo-editor/issues/93?email_source=notifications&email_token=AM57WLHZHGKWG6MHDR6YX7DQWVBY3A5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFUI2UI#issuecomment-560500049, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM57WLCX3GJVTMURN4Q4EBDQWVBY3ANCNFSM4JMATKHA .

arjundalal avatar Dec 03 '19 03:12 arjundalal

okay, i fixed it by doing:

1. if you getting stuck at Google's Libraries like GMap, Firebase, ... just add it manually,

2. you can replace use_frameworks! by use_modular_headers!

3. If you can't replace it with use_modular_headers!, then add code bellow right after use_frameworks!
$dynamic_frameworks = ['RxCocoa', 'RxSwift']

pre_install do |installer|
  installer.pod_targets.each do |pod|
    if !$dynamic_frameworks.include?(pod.name)
      puts "Overriding the static_framework? method for #{pod.name}"
      def pod.build_type;
        Pod::Target::BuildType.static_library
      end
    end
  end
end

Hi Team Still i am getting error can you help me to resolve it. Regards, Arjun Dalal On Sun, 1 Dec 2019 at 10:33, Arjun Dalal @.> wrote: Hiii Pranav and all Till i am getting the same issue can any one help me to solve this issue. Regards, Arjun Dalal. On Sun, 1 Dec 2019, 10:22 am Pranav Raj Singh Chauhan, < _@**.**_> wrote: > Thanks @arjundalal https://github.com/arjundalal for raising the issue. > > I have updated installation steps, could you please try this with RN61, > since it has better support for use_frameworks!. > > Thanks > </ Pranav > > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <#93?email_source=notifications&email_token=AM57WLG53ILRPCY6DP7JDQDQWM7JNA5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQ4J6A#issuecomment-560055544>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AM57WLCE6QTEHSKTZHOC5RLQWM7JNANCNFSM4JMATKHA > . >

Hi guys,

I also got it to work on Android, but iOS gets me from error to error. After following these steps I get a 100 'undefined symbol' errors. I'm an iOS newby, so can't really make sense of it.

My stack:

  • react-native = 0.60
  • Xcode = 11.2.1
  • Podfile =
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'SIWI' do

  pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
    end
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for SIWI
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../node_modules/react-native/React'
  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  # Required by RSKImageCropper
  pod 'RSKImageCropper', :git => 'https://github.com/trivetechnology/RSKImageCropper.git'

  pod 'RNFastImage', :path => '../node_modules/react-native-fast-image'
  pod 'react-native-contacts', :path => '../node_modules/react-native-contacts'

  # Third party deps podspec link
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  target 'SIWI-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
    pod 'RNFastImage', :path => '../node_modules/react-native-fast-image'

  end

  target 'SIWITests' do
    inherit! :search_paths
    # Pods for testing
  end
  use_native_modules!

  pod 'RNPhotoEditor', :path => '../node_modules/react-native-photo-editor/ios'

  use_frameworks!
  $dynamic_frameworks = ['RxCocoa', 'RxSwift']

  pre_install do |installer|
    installer.pod_targets.each do |pod|
      if !$dynamic_frameworks.include?(pod.name)
        puts "Overriding the static_framework? method for #{pod.name}"
        def pod.build_type;
          Pod::Target::BuildType.static_library
        end
      end
    end
  end

  
  pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master'

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.name.include?('iOSPhotoEditor')
        target.build_configurations.each do |config|
          config.build_settings['SWIFT_VERSION'] = '5'
        end
      end
    end
  end
end

maxmijn avatar Dec 04 '19 12:12 maxmijn

I fixed the above errors by adding an empty swift file to my project, based on this thread: https://stackoverflow.com/a/56176956

maxmijn avatar Dec 04 '19 13:12 maxmijn

when we launch it on simulator it throw exception.

libc++abi.dylib: terminating with uncaught exception of type NSExceptio

On Wed, 4 Dec 2019 at 19:01, Max Mijnheer [email protected] wrote:

I fixed the above errors by adding an empty swift file to my project, based on this thread: https://stackoverflow.com/a/56176956

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prscX/react-native-photo-editor/issues/93?email_source=notifications&email_token=AM57WLEBTNDF7ZWQA7F56KDQW6WMBA5CNFSM4JMATKHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF5A23Y#issuecomment-561646959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM57WLGP2DEEIWEHQARZ6LLQW6WMBANCNFSM4JMATKHA .

arjundalal avatar Dec 05 '19 12:12 arjundalal

Hello Team, How can i resolve above error. please help

arjundalal avatar Jan 07 '20 08:01 arjundalal

Hello, @arjundalal Could you share Podfile if you solve this problem? Thanks

mobilestar0223 avatar Jan 18 '20 10:01 mobilestar0223

My stack:

  • RN: 0.61.5
  • Xcode: 11.1
  • Cocoapod: 1.8.4

I have checked all above things, but failed to build iOS project.

Please help me!

mobilestar0223 avatar Jan 18 '20 10:01 mobilestar0223

yes sure My pod file is as follows:

pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" pod 'React', :path => '../node_modules/react-native/' pod 'React-Core', :path => '../node_modules/react-native/' pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon" pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

pod 'RNSketchCanvas', :path => '../node_modules/@terrylinla/react-native-sketch-canvas'

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons' pod 'Firebase/Messaging' pod 'Firebase/Core' pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios'

use_native_modules!

pod 'RNPhotoEditor', :path => '../node_modules/react-native-photo-editor/ios'

use_frameworks!

pod 'iOSPhotoEditor', :git => 'https://github.com/prscX/photo-editor', :branch => 'master'

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

post_install do |installer|

rnfirebase = installer.pods_project.targets.find { |target| target.name == 'RNFirebase' }
rnfirebase.build_configurations.each do |config|
  config.build_settings['HEADER_SEARCH_PATHS'] = '$(inherited) ${PODS_ROOT}/Headers/Public/**'
end

installer.pods_project.targets.each do |target|
  if target.name.include?('iOSPhotoEditor')
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '5'
    end
  end
end

end

arjundalal avatar Jan 18 '20 10:01 arjundalal

please check my pod file data

arjundalal avatar Jan 18 '20 10:01 arjundalal

Thanks for your reply.

[!] The 'Pods-PikadishApp' target has transitive dependencies that include statically linked binaries: (FirebaseAuth, FirebaseCore, FirebaseCoreDiagnostics, GoogleDataTransportCCTSupport, GoogleDataTransport, FirebaseInstanceID, and FirebaseFirestore)

I got this error during pod install.

mobilestar0223 avatar Jan 18 '20 10:01 mobilestar0223

have you install this pod manually

arjundalal avatar Jan 18 '20 10:01 arjundalal

Yes. According to installation document, I edited Podfile and run pod install.

mobilestar0223 avatar Jan 18 '20 10:01 mobilestar0223

I copy/paste below code on Podfile from your Podfile, and got above issue.

post_install do |installer|
rnfirebase = installer.pods_project.targets.find { |target| target.name == 'RNFirebase' }
rnfirebase.build_configurations.each do |config|
  config.build_settings['HEADER_SEARCH_PATHS'] = '$(inherited) ${PODS_ROOT}/Headers/Public/**'
end

installer.pods_project.targets.each do |target|
  if target.name.include?('iOSPhotoEditor')
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '5'
    end
  end
end

mobilestar0223 avatar Jan 18 '20 10:01 mobilestar0223

i think this is pod installation issue. please delete pod folder and re-install it. in react 0.61.5 pod link automatically by running command pod install

arjundalal avatar Jan 18 '20 10:01 arjundalal

actually i use firebase so i write code like this. post_install do |installer| rnfirebase = installer.pods_project.targets.find { |target| target.name == 'RNFirebase' } rnfirebase.build_configurations.each do |config| config.build_settings['HEADER_SEARCH_PATHS'] = '$(inherited) ${PODS_ROOT}/Headers/Public/**' end

installer.pods_project.targets.each do |target| if target.name.include?('iOSPhotoEditor') target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '5' end end end

arjundalal avatar Jan 18 '20 10:01 arjundalal

if you dont use firebase than use only this code post_install do |installer| installer.pods_project.targets.each do |target| if target.name.include?('iOSPhotoEditor') target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '5' end end end

arjundalal avatar Jan 18 '20 10:01 arjundalal