Missing proxy for identifier UIStoryboardPlaceholder [duplicate] - objective-c

This question already has answers here:
Xcode - How to fix 'NSUnknownKeyException', reason: … this class is not key value coding-compliant for the key X" error?
(79 answers)
Closed 7 years ago.
Hi I seem to have stumbled upon weird thing while developing a storyboard app.
My app is halted right after splash screen and in console I get error message:
Missing proxy for identifier UIStoryboardPlaceholder
Now, if I try to let the app continue running, I get new messages into console, which I believe are related to the fact, that there is something wrong with the first error message
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason:
'[<IntroViewController 0x6e35f40> setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key sceneViewController.
What is strange I get this error only when working with iOs 5.1 Simulator. It works fine on iOs 6 simulator and also on devices with both iOs 6 and iOs 5.1
I tried to find answer, but google says it could not find any results for the word UIStoryboardPlaceholder, let alone the whole error message. I made sure, I don't have the word 'UIStoryboardPlaceholder' anywhere within my xcode project(not even inside nib files) and also there's nowhere mentioned 'sceneViewController'. Any idea what might be wrong?
EDIT: I tried to reset simulator and cleaning project, but to no avail

We had the same problem: a view controller in a storyboard file with its interface defined in a separate XIB file. (Using Xcode 6.3.1, iOS 8.3 and Swift 1.2.)
We are using Swift so we had added the #objc() declaration to the class declaration:
#objc(TestViewController) class TestViewController: UIViewController
We could instantiate the view controller just fine from another view controller using self.storyboard?.instantiateViewControllerWithIdentifier( "TestViewController" ) but when presenting the view controller (using self.presentViewController( viewController, animated: true, completion: nil )) the app crashed with the same "missing proxy" and "not key value coding-compliant for the key sceneViewController" error.
Our solution which we found after much frustrated trial-and-error-like debugging was simply make sure the view controller's Storyboard ID in the storyboard file is not the same as the class name.
When we renamed the Storyboard ID from "TestViewController" to "testViewController" (only difference being the lower-case first letter), everything worked…
Strange? You betcha, but everything seems to be working now.

I had the same problem. Try cleaning the project and restoring the simulator.

I was getting the same error with an app that I was converting from .xib files to storyboards. My app contained a UITabBarController, and tapping on certain tabs would trigger the error.
In my case, the problem was that I had copied view controllers into the storyboard that used the "NIB name" property to load the view controller's view from an external .xib file. Storyboard view controllers do not support loading views from .xib files, so my storyboard contained a view controller that had no view.
I opened the external .xib file, copied the view, pasted it into the corresponding view controller in my storyboard, and made sure that the pasted view was subordinate (indented under) the view controller in the storyboard scene. Then I re-connected the view to the outlets in the view controller.
When I re-ran the application, the error was gone.

Add me to the list. I get this error after "refactoring - rename" on a class. The class I am renaming is a custom ViewController with its own .xib. I use Storyboard which launches a viewController containing a "Container View", which has my custom ViewController embedded in it upon launch.
The only way out of this so far is to NOT use my refactored .xib (disconnect it from the container view).
My semi-solution:
I have restored my app from a prior working snapshot and created a new custom ViewController and .xib from scratch instead of refactoring. Connected it to Storyboard and I got the error message again. Cleaned the build and deleted the app from the simulator and re-ran, and then it magically ran without error. For this reason I believe there is a bug in Xcode with Refactor-Rename, which corrupts some storyboard file behind-the-scenes. Once I confirmed that the new .xib was attaching to storyboard without error, I copied/pasted the class code into the new custom viewController class, and went through the process of reconnecting the class objects to the .xib, as you'd expect. Ran it and everything still worked.
FYI - here are some of the FAILED steps I took in my attempt to recover from the error (before giving up and restoring snapshot).
1. Cleaning Build.
2. Deleting App in iOS simulator.
3. Deleting all views in the custom ViewController .xib.
4. Naming the custom ViewController something else.
5. In Storyboard, adding a blank view to the ViewController representing my custom Viewcontroller class. This worked and allowed my app to run, however my custom class was neither able to load its own views in place of this default blank view, nor were it's own views visible upon making the default blank view transparent. Debugging showed my custom class .xib views being nil when assigned to self.view.
I am presently avoiding Xcode's Refactor-Rename for files having a .xib.

I had the same errors, finally solved it.
My problem was that I had :
[[storyboard instantiateViewControllerWithIdentifier:#"TripDetail"] methodThatDoesNotExist:#"param"]

Related

Main.storyboard: warning: Unsupported Configuration

Hello I have this warning.
how can I solved this ?
Main.storyboard: warning: Unsupported Configuration: Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:.
In the Storyboard, select the view controller you want to load when the app launches, and make sure to select the "Is Initial View Controller" checkbox on the right.
This warning is comes up if an unconnected view controller exists in a scene. In the image below for example I have disconnected a segue from the button to the small view controller below it to cause the warning. During development this can be ignored as long as you keep track of the VCs you disconnected.
In the image below the warning is gone because the small view controller is now "connected" via segue.
for some more information:
Any project consists of two classes, AppDelegate and ViewController.
If you open AppDelegate class you can see UIApplicationMain.
The #UIApplicationMain attribute at the top of the file designates the AppDelegate class as the entry point for the module.It is a requirement for using storyboards that your application delegate inherits from UIResponder and that it has a UIWindow property.
it is done in info.plist.
“Main storyboard file base name” specify the name of the storyboard that must be loaded when the app starts.
The arrow pointing at the view controller from the left indicates that it is the initial view controller to be displayed for this storyboard.
sometimes when you build you get error like "failed to load: entry point not set". it is clear that you not set an entry point, meaning you not set initial view controller to load.
To fix this just open Attribute inspector. Check the box : is initial view controller.
Even you can verify for some more details:
https://www.raywenderlich.com/113388/storyboards-tutorial-in-ios-9-part-1

NSViewController loadView loaded the "(null)" nib but no view was set

I am hoping that someone else has run into this problem before.
In an Xcode Cocoa Application project I create a *.xib file with a single view, and some random sub views. I create a *ViewController.m and inherit from NSViewController. I set the file owner in the *.xib to my controller and set the outlet view to the main view. I then create a new controller instance in the AppDelegate's applicationDidFinishLaunching: and add its view as a child to self.window.contentView.
Here is the weird part... this works JUST fine in a fresh Xcode Cocoa project. The view from the *.xib is added to the main window as expected. However in the project I am currently working on I get [NSViewController loadView] loaded the "(null)" nib but no view was set no matter what I do. At one point in time this worked in this project, it now errors every time. I have even reverted the entire repo from an old Git commit! I assume i'm seeing an Xcode bug?
EDIT More info:
This seems to be connected to having the project as a child of another Xcode project. If I open the project individually (Rather than the parent project) it runs as expected.
I had a similar problem: I wrote a ViewController then added a xib and changed the File's Owner there. Then I added a ViewController object in my MainMenu.xib and changed the Custom Class of this object to my ViewController.
What I forgot and what caused the same exception: In the MainMenu.xib I had to click on the ViewController object and in the Attributes Inspector I needed to specify the Nib Name which should be loaded when the ViewController gets created. Sadly Xcode needed a restart for getting my changes.
Anyway, I hope this helps everyone who checked every view connection twice but still got the exception.
Although not an explanation of why it was happening, I found out how to fix this. I changed the entire project over to a workspace and my runtime error vanished. Originally it was a parent project, with 2 children projects.
Well knowing well that this code SHOULD work.
I did a simple experiment.
I simply recreated the xib for that particular item and the issue went away.
So IMHO this is a bug from apple.
I sure have a long list of them piling up here and there.
...
This whole thing started after i noticed very slow performance on the NSCollectionView, originally i had the cells into their own nib, but it appears this is not needed anymore, since you can define the custom NSCollectionViewItem in the same xib as the NSCollectionView.
Cocoa will then call a copyWithZone: and will be fine.
I guess my fault for not having adapted to some of the new patters from Apple.

using a storyboard from another project

I am working on an Iphone Application, and I want to get a storyboard from another project.
I added the storyboard and all the viewcontrollers and images to my project (I copy Paste them from the other project)
Then I set it as the main storyboard in the info,plist file.
I get no compile errors or warnings however if I try to run the project I get a signal SIGABRT error.
(If i return to my original storyboard the app runs normally)
Any idea what might be causing the problem?
Thanks a lot for any help
Have you wired all storyboard object to proper ViewController ?
I often forget wiring delegate =)
In the summary tab make sure that the main storyboard is selected under "project name"/summery/ iPhone/iPod deployment info

xcode 3.1.4: nib controller doesn't seem to find nib file?

So I've got a MyNibController class and an nib file which I've tried calling both MyNib.xib and MyNibController.xib with no luck. I think I've got them hooked up properly on the IB end (I was following a tutorial for xcode 5 though) with my nib's owner designated to be of class MyNibController.
The problem is that the view is apparently not loaded even after I run my applicationDidFinishLaunching method in my AppDelegate class which includes:
[window addSubview:myNibController.view];
The simulator shows a blanks white screen, and the documentation says if a subclass of UIController can't find a nib with the right name it just makes up a blank view, so that's why I'm thinking it can't find it. But then wouldn't that mean:
[myNibController isViewLoaded]
should return true after the first code runs?
Thanks for any assistance!

Xcode 4.2 iOS5 Storyboard reference is nil while trying to implement Page View Controller

While trying to implement the Default Page Based app in another Single View application, I tried everything, but self.storyboard in the class that extends UIViewController is always nil.
Is there any tutorial I can follow?
Storyboard has the following: Login Screen (UIViewController) -> UITabBarController -> UITableViewController; on didSelectCell… I added 2 UIPageViewController that are identical to the ones in the page passed to the app, and the ModelController.h/m and did all the alterations needed to my knowledge.
self.storyboard in the RootViewController.m is always nil, and it ends up crashing my app.
P.S. I am a beginner, and I don't know how to get a reference of the storyboard object from my ViewController.m/h to the RootViewController.m/h.
I'm not too sure what you are trying to get at, but just use this project http://www.wannabegeek.com/?p=168
at the bottom of the page there is a github link which will allow you to download the whole project, no coding necessary.
and here's the github link just incase you couldn't see it
https://github.com/wannabegeek/PageViewController