Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

library not found for -lQBImagePickerController #27

Closed
kokororin opened this issue Jul 25, 2016 · 13 comments
Closed

library not found for -lQBImagePickerController #27

kokororin opened this issue Jul 25, 2016 · 13 comments

Comments

@kokororin
Copy link

Like #7
pod install success with no warning

Update all pods
Updating local specs repositories

CocoaPods 1.1.0.beta.1 is available.
To update use: `gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.1.0.beta.1

Analyzing dependencies
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `react-native-image-crop-picker` from `../node_modules/react-native-image-crop-picker/ios`
Downloading dependencies
Using QBImagePickerController (3.4.0)
Using RSKImageCropper (1.5.1)
Using React (0.28.0)
Using UIImage-Resize (1.0.1)
Using react-native-image-crop-picker (0.4.3)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 6 dependencies from the Podfile and 5 total
pods installed.

but build failed in XCode..


ld: warning: directory not found for option '-L/Users/Kotori/Library/Developer/Xcode/DerivedData/bosspower-estwxlnmygshocelqgoskkpxmitw/Build/Products/Debug-iphonesimulator/QBImagePickerController'
ld: warning: directory not found for option '-L/Users/Kotori/Library/Developer/Xcode/DerivedData/bosspower-estwxlnmygshocelqgoskkpxmitw/Build/Products/Debug-iphonesimulator/RSKImageCropper'
ld: warning: directory not found for option '-L/Users/Kotori/Library/Developer/Xcode/DerivedData/bosspower-estwxlnmygshocelqgoskkpxmitw/Build/Products/Debug-iphonesimulator/React'
ld: warning: directory not found for option '-L/Users/Kotori/Library/Developer/Xcode/DerivedData/bosspower-estwxlnmygshocelqgoskkpxmitw/Build/Products/Debug-iphonesimulator/UIImage-Resize'
ld: warning: directory not found for option '-L/Users/Kotori/Library/Developer/Xcode/DerivedData/bosspower-estwxlnmygshocelqgoskkpxmitw/Build/Products/Debug-iphonesimulator/react-native-image-crop-picker'
ld: library not found for -lQBImagePickerController
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@ivpusic
Copy link
Owner

ivpusic commented Jul 25, 2016

probably you are missing one step in installation. Follow step by step here https://github.com/ivpusic/react-native-image-crop-picker#ios-step-by-step-installation

@kokororin
Copy link
Author

I followed the steps and created a new RN project, but it still occurred the same error...

@ivpusic
Copy link
Owner

ivpusic commented Jul 25, 2016

I just created new project and did steps from here https://github.com/ivpusic/react-native-image-crop-picker#ios-step-by-step-installation and it worked. Will close this one as probably you are missing something in installation process.

@ivpusic ivpusic closed this as completed Jul 25, 2016
@kokororin
Copy link
Author

Open workspace file, not project file fixed for me.Thank you.

@suinia
Copy link

suinia commented Nov 1, 2016

@kokororin how to fix library not found for -lQBImagePickerController?
use react-native run-ios with error and open workspace file aslo

@kokororin
Copy link
Author

@suinia Sorry, I haven't touch RN in a long time. (version now is 0.10.x while when I use, it is 0.4.x)

@suinia
Copy link

suinia commented Nov 2, 2016

@kokororin 谢谢 Thanks

@tavriaforever
Copy link

@kokororin great! Thanks)

@JKonTiki
Copy link

opening workspace file worked here too :)

anyone have any idea why that might be?

@soroushchehresa
Copy link

soroushchehresa commented Feb 18, 2018

this issue is happening when don't take completely step 2 of Post-install steps.
manual install not working and you can only use Cocoapods.
after install pod and take steps for resolve this error open your-project.xcworkspace file with xcode and run project from here.

NOTE:
your-project.xcworkspace file created after take step 2 of Post-install steps completely in ios folder of your project.

@halileohalilei
Copy link

This happened to me when I used a different iOS version (12.0) on my Podfile other than 8.0. It seems QBImagePicker is abandoned and no new versions have been released for it for over three years. The last iOS version it supports is 8.0, hence the error.

@cchamikara
Copy link

@halileohalilei do we have a solution for this ?

@halileohalilei
Copy link

halileohalilei commented Jul 3, 2019

@cchamikara I seem to have got it working fine, but can't remember what the actual problem was back then. Here's the relevant part of my working Podfile if you want to have a look at it:

platform :ios, '9.0'

#
# https://github.com/CocoaPods/CocoaPods/issues/4370
#
install! 'cocoapods', :deterministic_uuids => false

target 'MyProject' do
  # # this is very important to have!
  rn_path = '../node_modules/react-native'
  pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
  pod 'React', path: rn_path, subspecs: [
    'Core',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket'
  ]

  pod 'RNImageCropPicker', :path =>  '../node_modules/react-native-image-crop-picker'

  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
  pod 'RNCViewpager', :path => '../node_modules/@react-native-community/viewpager'

end
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants