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

'Could not load NIB in bundle ... .app (loaded) with name 'HTY360PlayerVC' #21

Open
hdinhof1 opened this issue Aug 11, 2017 · 1 comment

Comments

@hdinhof1
Copy link

Hello I have a question about integration with CocoaPods, I am getting the fatal error listed in the title every time I try to present the player.

func testHTY360Player() {

        guard let hty360Player = HTY360PlayerVC(nibName: "HTY360PlayerVC", bundle: nil, url: url)
                else { return }
        present(hty360Player, animated: true, completion: nil)

    }

Additionally I have tried to get the bundle this way. Unfortunately that gets an empty bundleURL, so you never get to the bundle.

let podBundle = Bundle(for: HTY360PlayerVC.classForCoder())
if  let bundleURL = podBundle.url(forResource: "HTY360Player", withExtension: "bundle"),
    let bundle = Bundle(url: bundleURL) {
        // ... never gets to here
}

Thank you for your consideration in advance with regards to this matter, I really appreciate it.

Best,
Henry

@AndreyMomot
Copy link

Had the same problem.
Solved it only by using it as a external library.
You can find an example here:
https://github.com/AnchorFreePartner/HTY360Player

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

2 participants