Hi whenever i run my ios app in the simulator i get the error Fatal error: attempting to create attribute with no subgraph: CachedView<KFImageRenderer, ImageBinder> (lldb) . however, the app seems to run fine in the preview. Does anyone know a fix for this issue?
In my case I had forgot to add the .environmentObejct(..) to the previews section. Also got it fixed by adding the environment to my preview.
Related
Some users of RsyncOSX has experienced an issue on Mojave (10.14.6) with the following error:
Failed to set (contentViewController) user defined inspected property on (NSWindow): must provide an environment dictionary
RsyncOSX is a Swift and Storyboard based macOS app, and I am not able to reproduce the error. It is not a compiler issue, and I dont have any idea what causes the issue. The initial viewcontroller is set in Storyboard, there is no such issue on either 10.15 or 11.00 (Big Sur)..
I am trying to test a simple a program I have made while learning swift programming, but I always get a fatal error, and nothing will be shown.
I tried to copy my code to a playground, but there the custom classes I created are not recognized?
I found the error that one of the buttons is referencing the wrong outlet. This outlet was created by mistake, and it is name is the same as one of the Actions.
I am developing an app for Mac, I am getting a weird issue. When ever i reload a row and for a particular column when the reload code executes i am getting a sound output from my mac.
Below is the code
myTableView.reloadDataForRowIndexes(myTableView.selectedRowIndexes, columnIndexes: NSIndexSet.init(index: myTableView.columnWithIdentifier("source")))
I have a column with identifier "source", When ever i try to reload and after the execution of the above line i am getting sound in my mac.
I am using Xcode 7.3, OSX 10.11.6
Have you tried setting a breakpoint on NSBeep()? My gues would be that the table, or some other code trigger by the update is sending an error message.
Finally i found the issue. I debugged the code in depth and found the root cause.
Sound is coming when ever i am calling below code, here sourceTextField is a NSTextField. I commented this code and every thing is working fine.(i can directly give the value to text field like sourceTextField.stringValue.)
sourceTextField.insertText(itemText)
Thanks to all of you who made some time to write a comment/ post a message, Sorry for bothering you all guys.
The application works fine on the simulator but breaks in start up in device as in the figure
I tried some of the solution in SO but It doesnt work out.What may be the reason ?How can i find it? How to resolve it
For clarity
Tried : Changing the view controller the viewcontroller. view did load and all functions are working fine after that when the view tries to appear on the screen the crash appears
UPDATE : Now getting the error logged as
*** -[Not A Type retain]: message sent to deallocated instance 0x208c9610
I had the same issue before. This is not a crash. Please remove all your break points and run it again.
This is a Breakpoint error ..... It normally occurs when you add a breakpoint to an app running in the device. If you add the breakpoints before the app has been built and run it again.... The crash will not occur.
Even I couldn't figure out why this crash should occur in the first place but it does.
OK found out the problem.I am using an external library which does not implement ARC so it has to be flagged.all files except 2 are not flagged as -fno-objc-arc and hence the issue.
this error drives me crazy. I already spent hours on fixing this, unfortunately without success.
I tested my app in simulator, everything works fine. I'am testing it on my device (iphone 4 with ios 4.3.3) the app won't start.
So I tried creating a new project, build and go. And the end of the error now says instead of viewcontroller, key window.
To get further information about the error I setup an exeption breakpoint whicht breaks on throw and on all exeptions. Something interesting happend now: when I am launching the empty project on my iphone I get a warning:
warning: Unable to read symbols for /Users/xxx/Library/Developer/Xcode/DerivedData/testing-cmaekkzgdqyseidlqkorvrdvvodg/Build/Products/Debug-iphoneos/OLDAPP.app/testing (file not found). (The app which I am runnning is called testapp, not OLDAPP?! This was my last project!)
Some further errors now occure:
Unknown class OLDAPPAppDelegate in Interface Builder file. and Unknown class RootViewController in Interface Builder file.
I did clean all targets and made a clean build. Nothing changes…
I didn't change anything in IB, just edited the provisioning profile to run the app on my phone.
Help is very appreciated here :-) Hopefully someone can help me I would be really thankful.
The whole error message: *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICustomObject 0x18b410> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key window.'
This happens to me if I change the name of an outlet on the ViewController which was connected to something in the View in Interface Builder. For example, renaming 'labelFirstName' to 'lblFirstName' and forgetting to break and recreate the connection in IB.
I had the same problem where there were no !'s in my XIB and no re-naming problems. To fix it, I just created a new XIB, copied in the view from the old XIB, and rewired all the connections.