QBImagePicker icon indicating copy to clipboard operation
QBImagePicker copied to clipboard

'Could not find a storyboard named 'QBImagePicker' when creating QBImagePickerController

Open Maxatma opened this issue 9 years ago • 14 comments

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'QBImagePicker' in bundle NSBundle

Users/username/Library/Developer/Xcode/DerivedData/appName-abmmhiarfqtmhtesxwokvxanzrir/Build/Products/Debug-iphonesimulator/FrameworkName.framework

(loaded)'

Maxatma avatar Nov 25 '15 11:11 Maxatma

*** First throw call stack: ( 0 CoreFoundation 0x0000000112e43f45 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x00000001128badeb objc_exception_throw + 48 2 UIKit 0x000000010eb8b159 -[UIStoryboard name] + 0 3 BreezyKit 0x0000000111de92bd -[QBImagePickerController setUpAlbumsViewController] + 109 4 BreezyKit 0x0000000111de9174 -[QBImagePickerController init] + 1092 5 TurboChat 0x000000010dfba5cd -[CreationImagesViewController rightToolBarItemPressed:] + 61

Maxatma avatar Nov 25 '15 11:11 Maxatma

Hello, I also have this issue but only on iPad Pro (Device & Simulator). I've tried to fix it on a fork, but I don't know what's causing it...

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'There doesn't seem to be a valid compiled storyboard at path '/Users/zzz/Library/Developer/CoreSimulator/Devices/3D79E5AF-1E54-4517-A8B9-A1AA33B2032D/data/Containers/Bundle/Application/434B073D-23E3-4074-8205-BAE126FB3DC9/zzz.app/QBImagePicker.bundle/QBImagePicker.storyboardc''
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000112af2f45 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x00000001165bddeb objc_exception_throw + 48
    2   UIKit                               0x00000001154f3159 -[UIStoryboard name] + 0
    3   zzz                             0x0000000110755cad -[QBImagePickerController setUpAlbumsViewController] + 109
    4   zzz                             0x0000000110755b68 -[QBImagePickerController init] + 1096

legranddamien avatar Nov 25 '15 14:11 legranddamien

Same here with 2.5.2 on iOS 9.1. Seems to have to do with the use of Size Classes in this storyboard. When I deactivate that checkbox, it does not crash anymore.

fabb avatar Dec 01 '15 10:12 fabb

Facing Same Issue When using Ipad Simulator.

badalpub1991 avatar Dec 02 '15 11:12 badalpub1991

@Maxatma @legranddamien @fabb @badalpub1991 Do you use any package manager like CocoaPods to install this library?

nek023 avatar Dec 03 '15 06:12 nek023

I'm just wondering if this is happened due to the NSBundle *assetBundle property which I've added for supporting asset bundle of CocoaPods.

nek023 avatar Dec 03 '15 06:12 nek023

I install it via cocoapods. I guess it has something to do with my deployment target being iOS 7.1 which somehow does not support the necessary features of size classes. Maybe also important: I present it in a popover.

fabb avatar Dec 03 '15 06:12 fabb

@fabb Thanks.

Yes it seems to be a problem of Size Classes support. But I'm wondering why it's caused on iPad Pro. I think only the latest iOS runs on iPad Pro and Size Classes must be supported.

nek023 avatar Dec 03 '15 06:12 nek023

Maybe due to deployment target 7, the storyboard is being compiled differently, as iOS 7 only supports a subset of size classes? The issue happens for me on iOS 9.1 with iPad Air 2 simulator.

fabb avatar Dec 03 '15 07:12 fabb

I see. I'll disable the Size Classes feature.

nek023 avatar Dec 03 '15 08:12 nek023

有解决方案不??????你们说了这么多!!!!!!!!!求解!!11

superbobogithub avatar Feb 24 '16 07:02 superbobogithub

same issue for me. I can't use them in ipad.

There doesn't seem to be a valid compiled storyboard at path '/var/mobile/Containers/Bundle/Application/E5F5C196-5D78-41B2-A82E-60761F17D116/HocVui.app/QBImagePicker.bundle/QBImagePicker.storyboardc''

ban9ban3 avatar Feb 29 '16 06:02 ban9ban3

In my case I could keep size classes, the problem was having a Project with 7.1 target and "Build for iOS 8.0" on QBImage Storyboard.

roadst3r avatar Mar 01 '16 14:03 roadst3r

I solved similar problem for gtm_oauth2's GTMOAuth2ViewTouch.xib. Just added link to it in main project and the problem resolved

I tried same work for QBImagePicker.storyboard, but problem was still occured. Then I tried to compare other pod framworks, and I realized QBImagePickerController.framework does not contain QBImagePicker.Storyboard even though the Project has it. For some hour I had tried to reinstall, clean and build many times but the problem was not solved

But I found one solution by googling -http://stackoverflow.com/questions/14598917/could-not-find-a-storyboard-named-storyboard-storyboard-in-bundle-nsbundle

##################################################################

  1. Goto your Pod Project
  2. Find and click QBImagePickerController/Resources/QBImagePicker.storyboard.
  3. Then check on 'QBImagePickerController' in Target Membership at The File inspector(first tab of alt + command + 0)
  4. Build and run ##################################################################

After check on 'QBImagePickerController' in Target Membership, I can find QBImagePicker.storyboardc in QBImagePickerController.framework

But I don't know why QBImagePickerController is not checked and QBImagePickerController-QBImagePicker is checked.

What is QBImagePickerController-QBImagePicker? Did I have something wrong? I just launched 'pod update' and 'pod install'

2sem avatar Jul 08 '16 02:07 2sem