When I test the app on the simulator, I get the following:
Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Could not load NIB in bundle: 'NSBundle <...> (loaded)' with name '...Controller'
But when I use the actual device everything is fine.
Any ideas?
Deleted all the controls in the xib, made my UI fully generated in code. Did not help.
Deleted both .cs and .xib files, created a new iphone controller, pasted the code. Still did not help in spite of the new empty xib!
Renamed my controller class name. Reinstalled the app in simulator. Resolved!
PS. I tried reinstalling the app before step 1. And that did not help. So I do not know what exactly resolved the problem.
In your Info.ptlist , check if your "Main Interface" is correct
Using Xamarin Studio on the Mac, I got this error. Also my iOS emulator was acting kind of strange too...I first cleared the programs and settings from the emulator, but that didn't help. So then I just rebooted the Mac. This solved the problem.
I was having the same problem - what fixed it for me was to make sure that under Properties, the .xib file had a build action of 'InterfaceDefinition' (instead of 'None').
Apparently this is a bug in Xamarin Studios, I contacted support and they said that they know about it and its going to be fixed in the next release.
They sent me this link https://files.xamarin.com/~jeff/XamarinStudio-4.2.4.243.dmg which didnt work for me. i tried everything , reinstalling simulator and even reinstalled xcode. But what worked for me was deleting and reinstalling Xamarin Studios. then it all worked again. still not sure whats going. Hope this helps others with same issue cause i know its a big issue on the Xamarin Forums.
sebastian says;
If you want to use the older Xamarin.iOS (7.0.7.2) then you need the older Xcode (5.0.2).
I had the same problem. Changing the Storyboard Id for the ViewController specified in error to something else in Xamarin's iOS designer solved the problem for me.
Deleted bin and obj folders and restarted Rider, working for me now.
Related
I have exported the react native project to ios, and I have already selected the building team profile in project setting of general as :
It seems the compiling is ok, but at last, when it should be signing, there is error Popup
Note that its' the [AppName]Tests that have a signing issue, not the [AppName] it self, what should I do?
No idea how the "restart" fixed anything for anyone.
If anyone else is having this problem, you need to expand the sidebar:
I just try to restart the Xcode and things seems ok now, weird though :D
I had this exact issue. I restarted Xcode many times and it didn't fix it.
Restarting my computer, however, fixed it.
I cannot open my Storyboard after updating from Xcode 7 to Xcode 8.
Can anyone help? Inside it did not show any error.
For me opening the storyboard as "Source code", fixing merge conflicts and then also restarting Xcode did the job.
I just find a solution as below:
Make sure the storyboard extension should start from lower case s.
Ex: it should be "Test.storyboard" not "Test.Storyboard"
Just restarting XCode worked for me.
Thanks, XCode.
https://imgur.com/vFn0S7g
I am about to build watch app target from existing project. I encountered a strange error upon finishing build that unables me to run the watch app properly. Here is the attached screenshot.
Environment
OSX 10.10
XCode 6.2 Beta
Simulator iPhone 6 iOS 8.2
When I try creating new watch app project and try the Lister demo app they work just fine. So I am suspecting there is something wrong with my existing project but not sure what since the error message is not really explanatory. I appreciate any leads or helps given, thank you for your time.
EDIT: After few investigation turns out extensions do not work as well.
I had the same issue. This sequence helped for me:
Xcode doesn't like it when you have a referenced directory called
'Resources' within your resource bundle (see timrex)
1) Remove 'Resources' directory from your project's tree;
2) Reset content and settings in iPhone simulator;
3) Press Shift+Cmd+Alt+K and click 'Clean' or Shift+Cmd+K in xCode window;
Check if the Bundle Identifier isn't empty in the Info.plist
After 2 days of research I have found the answer which I believe is an xcode bug.
Basically this is caused by having different build name on your XCode build settings. Making them uniform should solve the problem. As shown here https://devforums.apple.com/message/1047770#1047770
I hope this helps anyone stumbled upon this question.
I got my error fixed by setting the project's "Product Bundle Identifier".
It was empty since my project was being generated by Gyp and I hadn't set that particular setting on the project.
I ran into the same issue and got it resolved by cleaning the phone's memory since it was too low to install the app.
This issue can be resolved simply by emptying the trash.
I fixed this by first building for an actual device - once I'd done that at least once, the simulator ran fine.
I got it working after I tried everything mentioned here, then deleting the app from the device and restarting XCode. Those two steps were mentioned here:
https://stackoverflow.com/a/28232381/1586277
I have no idea what combination of steps fixed it though.
I got this issue while running on simulator. I rebooted the system and the issue gone.
I just had the same issue. My fix was to delete the temporary project files in the derived data folder:
rm -R /Users/username/Library/Developer/Xcode/DerivedData/projectname
I had the same issue. This helped
https://forums.developer.apple.com/thread/7338
Check your connected device has enough storage space.
I had this issue when I tried to run in my iPhone. I cleared the storage by deleting couple of apps and tried to install again and then it works.
Check your device's storage.
I had this issue and deleting some apps was the only solution for me...
I could fix this problem by switching to a different simulator (iPhone6 instead of iPhone6s) in my case).
Switch OFF your Phone and ON.
Now install your app ,its works for me.
If you run in device then remove previous app . It will work .
After upgrading Xcode from 5 to 6 beta, almost every project gives me an unexpected error after running the application. There are some other posts with this title but the error is different.
In AppDelegate.swift, sometimes the simulator goes completely black, without the error, sometimes it gives me the error on this line:
class AppDelegate: UIResponder, UIApplicationDelegate {
In Xcode 5 I didn't had this error before, with Deployment Target set to 7.0 or 7.1.
Thanks in advance.
This error is caused when you have 2 or more of the same IBOutlets or IBActions in your main.storyboard inspector (right arrow key at the very end of your options). Find out where there is double, and delete the one you don't need! It should work perfectly fine after that.
Seems like there was a bug with iOS 7.1 as target.
Running tests on devices with iOS 7.1 installed now works. (17028705)
Try it again with the beta 2 update
I found this issue happened when I linked #IBOutlet/#IBAction and the linkage broke (renaming for instance). In the main.storyboard inspector, right click (control click) on the elements and delete any bad linkages. Should fix the error if that's the issue.
(Xcode 7)
fix my problem:
Go to deployment info and in "Main interface" select your correct storyboard...
Rerun app.
My issues with this started after I installed the legacy simulators (iOS7.1) under 'More Simulators' under the simulator build target. Xcode 6 and its native simulator had been running fine until then. What fixed it for me was to close Xcode, delete Derived Data, and under iOS Simulator in the simulator application choose "Reset Content and Settings" then restart the system.
I'm new to the coding world but resolved the painstacking problem. I was getting the same error by doing something and even though i deleted everything around that i couldn't resolve it. It was still giving me the same error, which meant that it is not deleting in some file it stores. Took me a while to figure out which file, finally when i opened the Mainstoryboard as source file, and did search on the error key word which i knew i changed, it gave me the lines it was sitting in. After deleting those lines error got fixed. I know basic HTML so i knew which lines to delete.
I cannot start my project all over again everytime i have this error so i had to find the solution and there was no solution i could find. So i had to do it myself with common sense, as i said i have no knowledge of coding.
Hope it helps.
I know there's already plenty of answers but just to note what happened in my case:
I created the ViewController on the storyboard first and then I created the class, I don't know why this was an error because both class names where identical, but by rewriting the class name on the storyboard helped to "link" correctly the view controller and its file. First create file then ViewController on storyboard to prevent this error.
I was in Xcode and I went to edit a nib file. I tried to drag on a UIViewController from the objects library, but as soon as I did Xcode crashed. I had never had this problem before, but now I cannot add a UIViewController to the nib file (the problem persists for other files in the same project and other files in other projects).
Originally, the problem occurred in the Developer Beta of Xcode 4.5 that I was using, but now when I tried in the old version of Xcode the problem was there also.
Basically, I have been unable to find a way to get this problem to stop. If anyone has experienced this problem or knows how to fix it, that would be so great.
Thanks,
Luke
What about trying to delete all Xcode preferences files? It seems like the latest Xcode beta broke something there...
Have a look at the following folders:
/Users/xyz/Library/Application Support/Developer/Shared/Xcode
/Users/xyz/Library/Application Support/Xcode
/Users/xyz/Library/Developer/Xcode
/Users/xyz/Library/Caches/com.apple.dt.Xcode