React-native-image-crop-picker: No known class method for selector 'labelColor'

Created on 24 Oct 2019  路  5Comments  路  Source: ivpusic/react-native-image-crop-picker

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.4.2 and v0.25.3 and v 0.25.0
  • react-native v0.60.5

Platform

  • iOS

Expected behaviour

Actual behaviour

Error when build

Steps to reproduce

  1. Add pod 'QBImagePickerController', :path => '../node_modules/react-native-image-crop-picker/ios/QBImagePicker/QBImagePickerController.podspec'

  2. pod install

  3. Build and Error appear

Attachments

Screen Shot 2019-10-24 at 5 39 58 PM 1

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

Most helpful comment

I updated the xcode from 10.3 to 11.1 and it worked

All 5 comments

I updated the xcode from 10.3 to 11.1 and it worked

I have already found out the way to fix it. XCode v 10.1

  1. Remove pod 'QBImagePickerController', :path => '../node_modules/react-native-image-crop-picker/ios/QBImagePicker/QBImagePickerController.podspec'
    cd ios, pod install
  2. Add QBImagePicker.storyboard to "Copy Bundle Resources" and it works.
    Screen Shot 2019-10-29 at 1 53 55 PM

I have already found out the way to fix it. XCode v 10.1

  1. Remove pod 'QBImagePickerController', :path => '../node_modules/react-native-image-crop-picker/ios/QBImagePicker/QBImagePickerController.podspec'
    cd ios, pod install
  2. Add QBImagePicker.storyboard to "Copy Bundle Resources" and it works.
    Screen Shot 2019-10-29 at 1 53 55 PM

From developer site:

A storyboard is a visual representation of the user interface of an iOS application, showing screens of content and the connections between those screens. A storyboard is composed of a sequence of scenes, each of which represents a view controller and its views; scenes are connected by segue objects, which represent a transition between two view controllers.

https://developer.apple.com/library/archive/documentation/General/Conceptual/Devpedia-CocoaApp/Storyboard.html

I don't understand how adding a storyboard actually helps with this problem. What is happening behind the scenes? By doing this, are we unnecessarily increasing the size of the app?

Unable to resolve this issue No known class method for selector 'labelColor'

React-Native: 0.61.5
Xcode version: 10.1
node version: 10.15.3
Os: Mac OS Mojave(10.14.6)
react-native-image-crop-picker : ^0.28.0

Steps to reproduce:

npm i react-native-image-crop-picker

cd iOS && pod install

clean & build on Xcode

help me on this

Have the same issue on XCode 10.

Adding pod 'QBImagePickerController' not worked.
Adding QBImagePicker.storyboard not worked too.

Upgrade react-native-image-crop-picker to 0.28.0 and building with XCode 11 solve this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

victorwpbastos picture victorwpbastos  路  3Comments

cwRichardKim picture cwRichardKim  路  3Comments

habovh picture habovh  路  3Comments

sergiulucaci picture sergiulucaci  路  3Comments

aterribili picture aterribili  路  3Comments