Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4614392
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:41:36+00:00 2026-05-22T01:41:36+00:00

Hey all. Something which has been bugging me quite a bit recently is this

  • 0

Hey all. Something which has been bugging me quite a bit recently is this custom movie player I’ve put together. It’s largely based on a working one, NGMoviePlayer.

The issue is this: I have the .xib in a UIKit-friendly resource bundle. When I call:

[MyMoviePlayerViewController initWithNibName:@"MyMoviePlayerViewController"
 bundle:[NSBundle bundleWithPath:
         [[NSBundle mainBundle] bundlePath]
          stringByAppendingPathComponent:@"MyMoviePlayerViewController.bundle"]];

..on my custom class, and then access the view (thus calling loadView) it doesn’t throw any errors, but nor does it actually load the outlets properly. I am presented with a white screen, and debugging shows that all visual elements are 0x0, but there was no error as would be expected.

EDIT: I’ve also now tried just loading the .xib outside of a resource bundle in my target app, and the same thing happens (white screen).

The particular ones I was looking for was either:

  • Could not load NIB <nibname>... if it wasn’t found at all, or
  • ...loaded the <nibname> NIB but the view outlet was not set if it was found but not connected properly

The xib is in the local app (I understand that static libs can’t contain xibs). I’ve tried using this same resource bundle with the NGMoviePlayerDemo project provided by the author of NGMoviePlayer, and it does throw an error:

Could not load NIB in bundle:
'/Users/.../MyMoviePlayerViewController.bundle (not yet loaded)'
 with name 'MyMoviePlayerViewController'

I have navigated to the path it displays for the bundle and there exists a MyMoviePlayerViewController.xib file at that location.

I’ve also tried using bundle:nil in case Xcode combined the resources of bundle directories with the main one for some reason. Both cases throw no error and display a white screen in my actual project. Both cases throw a Could not load NIB error in the NGMoviePlayerDemo project.

EDIT: I have tried the same .xib separate from a resource bundle in the NGMoviePlayerDemo app and it works fine.

All input is greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:41:37+00:00Added an answer on May 22, 2026 at 1:41 am

    Solution: Pay attention to Unknown class <classname> in Interface Builder file. messages.

    I had the code for the movie player in a static lib, and the parent view controller for the movie player was being included in the project as an external header, but the subviews weren’t included as headers, so they weren’t being located properly. Because the only place they were being referenced in my target app was within the .xib file, there were no compile errors to do with those subclasses, but when it came time to load the .xib those classes could not be found, so none of their properties were set. And that just so happened to include all of the controls for the player, which probably then made the initialisation code silently fall over.

    I merged all of the code and ivars from the subclasses into the parent movie player class, and it’s working fine now 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all, I have something of an interesting requirement for my project. I need
Hey all, my Computational Science course this semester is entirely in Java. I was
Hey all. We're sending quite a few emails (around 23k) using IIS6 SMTP service
Hey all, I'm pulling my hair out on this one. I've checked all my
Hey folks, I have a question which feels stupid but I can't quite say
Hey all, I am trying to accomplish something very simple yet getting an error
Hey all, so I'm trying to allow some text input which goes through a
Hey all, this will contain a few questions since I don't seem to really
Hey all, this is a follow up to this question: Regex syntax highlighting question
Hey all. Newbie question time. I'm trying to setup JMXQuery to connect to my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.