got a exception, i dont understand how to fix it....start exception
I upgraded to a new beta interface, at first everything worked, but then it just flew out, after reinstalling it gives the same error
Related
While running the rails server, I am getting WEBrick::HTTPStatus::EOFError: WEBrick::HTTPStatus::EOFError. This error is being thrown from this file ....../gems/webrick-1.3.1/lib/webrick/httpserver.rb I am running the project it was working fine since yesterday I don't know why it is occurring now. I am not understanding why this is happening. I am new to ruby, can someone help?
My project worked fine, but after I changed to the last commit Xcode is showing me the strange error message:
Build service could not create build operation: unknown error while handling message: unknownSession
It indexes the files for a few hours and after that is finished the build fails also because of this strange bug.
I got this same error and closing Xcode, deleting derived data, and trying again fixed the issue for me.
I did not have to deleting the code or anything like that as mentioned in the other answer. Just deleting derived data.
For myself, I solved it by deleting the code from my pc completely and fetching it from my GitHub repository again. When I build now it works. The code has not changed but I guess Xcode has some strange bugs.
I'm trying to use the xcode emulator, but keep getting this error on startup:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<WKWebViewConfiguration 0x7f9dce800d40> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _requiresUserActionForMediaPlayback.'
I've tried uninstalling/reinstalling cordova-plugin-ionic-webview and have exhausted all the solutions I can find here on SO, but they have made no difference.
This is an ionic cordova project, so I can't change any code in xcode, as it will be overwritten the next time I build the project. Any other solutions will be gratefully received.
I'm not sure whether it's related, but when I do an android ionic emulate on the command line, it works, but an ios emulate doesn't and I get this error:
/Users/path-to-project/platforms/ios/build/emulator/project.app/Info.plist file not found.
The problem is that no build folder under the ios one has been created, which is probably why it can't find anything there. I think I've tracked the problem to the following messages farther up the output:
CONFIGURATION_BUILD_DIR = /Users/path-to-project/platforms/ios/build/emulator
SHARED_PRECOMPS_DIR = /Users/path-to-project/platforms/ios/build/sharedpch
However, I don't know where these configs are set. Does anyone know where ionic gets these configs from?
One question comes to mind though: If CONFIGURATION_BUILD_DIR is set to this location, why isn't the build dir created here?
This one is a doozy and a pretty obscure one that took ages to figure out.
This solution is for ionic. There are loads of 'solutions' out there for Xcode, but they can't be used for ionic projects, as any code changes in the ios folder will be overwritten on the next compile.
The clue is in the message: _requiresUserActionForMediaPlayback. However, another part of the message mentions WKWebView, which is a red herring, as it isn't actually anything to do with the problem.
The actual problem resides in the cordova-plugin-background-mode plugin, in the /cordova-plugin-background-mode/src/ios/APPBackgroundMode.m file to be exact. At the end of the swizzleWKWebViewEngine method, which is at the bottom of the class, change:
forKey:#"_requiresUserActionForMediaPlayback"];
to:
forKey:#"requiresUserActionForMediaPlayback"];
i.e. delete the underscore. Yes, it really is that simple and it wasted days of my life finding it.
It's a bug that is mentioned on Github at: https://github.com/katzer/cordova-plugin-background-mode/issues/381. As at 9th October 2018, the plugin hadn't been updated for 2 years and the bug had still not been corrected in npm, so you have to make the change yourself until it has been.
When I haven't inputted any code, I keep getting an error:
"cannot load underlying module for UIKit"
I can clean and build, and it still runs, but why does the error appear and how do I get rid of it?
I had the same issue. I restarted Xcode and the error went away. Hope this is just as easy for you.
My Xcode project is really starting to irk me.
I wrote a program that involved multiple png images. At a random point, it said that frown.png had no such file or directory so I renamed every instance of it to frown2.png and i still got the same error still saying frown.png even though there was no instance of it.
I then took all of my code and images and created a new project. For a while it worked, but when i tried adding a second view (doubt that caused it), i started getting the same error again still with frown.png.
What should i do?
(P.S. i am very inexperienced in xcode so please keep answers clear and concise. Thanks)