"Could not instantiate class named UICollectionView" I am new to iOS6 please explain why the above error is coming?
I am getting this error when i trying to convert the StoryBoard project for UIViewCollection
to nib using this example
You are probably running your app with an iOS version below 6.0 - upgrade your device or use the appropriate iOS Simulator version.
I was using ios5 simulator, when i changed the simulator to iOS6 it worked.
It was corrected a long before,forgot to update on stackOverflow.
Thanks for answer anyways.
+1 for user1034669.
Related
Hello I installed Alamofire 5.0 via pod and I try to run it on the real phone.
The project is empty only Alamofire and a contentView say hello world.
if a run it on simulator it work perfect, if I run on the real phone I get the following warning. (I authorized in general setting the app)
any solution? I don't know what is this
/private/var/containers/Bundle/Application/C526B7F7-4337-4D36-A9EB-C56913D97329/FlyWeatherX.app/Frameworks/Alamofire.framework/Alamofire: code signature invalid for '/private/var/containers/Bundle/Application/C526B7F7-4337-4D36-A9EB-C56913D97329/FlyWeatherX.app/Frameworks/Alamofire.framework/Alamofire'
thanks for the help
Check the version of your ios on your phone is it matching the version of ios on xCode or not.
also if your iphone under ios 13 then
first - choose from xcode your exact iphone version from the building tap
second - delete the SceneDelegate file and then go to AppDelegate and remove the last two functions then before the first function just implement the view by writing :-> var window: UIWindow?
then run the project and see what is the next ..
I'm using a UIWebView in my app, and everything works fine in iOS5 and 6.
But on iOS7 the UIWebView can't load the page requested (an html from internet) and start an infinite loop with this error every 10 secs:
void SendDelegateMessage(NSInvocation *): delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
The webview loadrequest is located in viewDidAppear.
I found no documentation for this bug for iOS.
The method decidePolicyForNavigationAction seems to be used only in WebKit for MacOS.. and not for iOS.
Same problem both on device and on simulator.
I saw similar topics on stackoverflow, but noone report a working solution :/
Thanks for your help.
Try to download new xCode version 5.0.1
This issue is fixed in version 5.0.1
Also, clean all the builds from the path ~/Library/Developer/Xcode/DerivedData/~
Build after clean. Everything works fine.
Let me know if the issue still persist.
Problem solved:
My problem was related to a library linked in the project: pspdfkit v2.x on iOS7.
Initializing the uiwebview before pspdfkit (even without presenting it) solved my problem.
Since [AVCaptureVideoPreviewLayer setOrientation] was deprecated in iOS 6, I am trying to use [AVCaptureConnection videoOrientation:AVCaptureVideoOrientationLandscapeLeft]; but I getting an error saying "No visible #interface for 'AVCaptureConnection' declares the selector 'videoOrientation.'" I have been trying to research for a AVCaptureVideo SDK for iOS 6 but I've had no luck. I also tried recreating the AVCaptureConnection but I had no luck in doing that. Here is a web reference to the code I am partially using. http://red-glasses.com/index.php/tutorials/ios4-take-photos-with-live-video-preview-using-avfoundation/
Wow. Boy do I feel stupid [AVCaptureConnection setVideoOrientation:AVCaptureVideoOrientation];
My App, which is created for iOS4, is crashing in iOS6 and is not installing on simulator or device.
It just shows the splash screen and crashes.
Did finish Launching is not being called.
Can anybody please Help?
Finally i got the solution of my problem mentioned above.
In my ios4 App, in FirstViewController.xib "Use AutoLayout" was checked.
I just removed the checkmark and my App start working.
Amazing!!!
I would recommend creating a new project, and either carefully looking for the changes in delegate or any deprecated code, or just moving all of your code to the new project. Also, you should run a convert to modern syntax check.
There may be issue with Application Delegate. The obvious reason - your object is not set as an application delegate.
Looking at Apple documentation there is quite a few ways to accomplish it:
Remove application delegate binding in Interface Builder (.xib file
for the window) Set 4th parameter of UIApplicationMain in main.h to
something else than nil.
Check you nib file in Interface Builder and see if the App Delegate is setup.
Or Reference to documentation Core Application Design
Hope this will you out.
Look into the release notes of xcode, ios6
It is said that when working with IOS6, Auto Layout is turned on and that crashes the app if used on older versions. Check the link, which has other things to watch out for:
https://developer.apple.com/library/mac/#releasenotes/DeveloperTools/RN-Xcode/_index.html
https://developer.apple.com/library/ios/#releasenotes/General/RN-iOSSDK-6_0/_index.html
I'm testing my app in the sim with SDK 4.3, My device is iPhone 4 with OS 4.3.3, when running the app on the sim every things is working, no errors and nothing, but on the device every thing crashes with the runtime error: "Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key addButton"
I can not find the problem in any xib file. I used to have this outlet, but not any more, not in the class and not in the xib (or maybe i am missing it, but i looked of many many hours for it) and the sim is getting it that i have changed the files but the device does not...
UPDATE: *maybe this would help. I decided to test my theory and removed (deleted) the MainWindox.xib file. compiled and got the same results...On the sim every things worked (WIERD AS IS) and in the device crashes.... The first part tells me that when the Xcode does the link and build, It builds from a deferent directory then the one that the project in... It is as weird as it can get in my eyes.... Any one has a thought about that? I think that when i will fix this every thing else will work just fine....*
What can i do?
Thank you very much,
Erez
There would most probably be a viewcontroller name just above the above error. Open the xib of that viewcontroller and check all buttons in that xib, and check the outlets of each of them. I assume you have forget to remove the outlet connection from one of the buttons.
If you cannot spot out the viewcontroller that has the problem, you need to check all xib files. Also, as alexJones mentioned, please check the capitalization of outlets as the device is case sensitive where the simulator is not.
You might had an outlet "addButton" connected to a button in XIB.
Later you might have removed "addButton" from code, but forgot to remove the connection in XIB.
If you open XIB, right click the "File's owner", you can see "addButton" in red color. Click "x" button to remove it. Then build the code and run on your iphone. It must work now.
Also clean your code, remove the app from your device before running on the device.
I've found the solution, the problem was exactly what i said, The XCode went to a wrong build somewhere, I don't know where and what happen, but it didn't go to the new build.... created a new project, copied all the files and then just changed the delegate and what needed and every thing is working, I am guessing it is a BUG, a very annoying one, but still a bug with XCode 4.
Thank you all,
Erez
Before going to such extremes as copying your project ... try cleaning your target sim and device first, then building from scratch. In effect i believe that is what you achieved by creating a new project.
I had the same problem too, would build and execute in the simulator but crash on my iPhone. The solution turned out to be improper case of a nib name in interface builder. detailView instead of the actual nib name DetailView. Great advice, thanks!