Red main.storyboard in Copy Bundle Resources - nsautoreleasepool

When I try to play the simulator it crashes and sends an error in thread 1. I checked the Copy Bundle Resources and I found out that the story board is in red ink, I don't know if that is the problem but I already tried to erase it and add it again but it stays the same.

Related

Use kingfisher to find that there is a probability that the image cannot be loaded

The development environment is Xcode14.0.1. Recently, I found that I use kingfisher to continuously load pictures, go back to the background to refresh, and continue to slide the interface to load pictures. There is a small probability that the pictures cannot be loaded. At this time, the pictures of the entire app will be abnormal and cannot be loaded. After capturing the package, it was found that the request to download the image was not really sent, and the error message of "request timed out" was also received. Only killing the app and restarting will restore it.
I used version 6.3.0 before, and I still have this problem after replacing the latest version. I feel that there is a problem with URLSession, but I don't know how to solve it.

AIR 32, AS3, Animate CC IDE, Worker NOT AT ALL working :(

I have been working on this for more than 6 hours now, not been able to find out what is wrong. I would like to run some check in the background and hence wanted to deploy a background worker in AIR (32.0) AS3 (Animate CC 2018 IDE).
I have already tried 2-3 examples but I do not know why the background worker is not responding, I tried building the package, and installing the package but the bg worker does not start. .state says it is working but I cannot see any result (tried to create a txt file in desktop within bg worker, even had kept run=time error but absolutely nothing happens).
I am simply trying to copy what adobe docs says but nothing happens. Created 3 classes (copy-paste) and run the code, built the app but not working.
https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Worker.html#state
Anyone can help? I have already built the app which checks for some background details and for roughly 8 to 10 seconds, the app freezes - that too on a workstation.

storyboard file main~iphone.storyboardc was not found error when trying to submit binary to itunes connect

When I try to submit to the app store from xcode, I get this error for both Main~ipad.storyboardc and Main~iphone.storyboardc:
"ERROR ITMS-90029: "Storyboard file 'Main~iphone.storyboardc' was not found. Please ensure the specified file is included in the bundle with any required device modifiers appended to the filename."
I've looked at all similar questions posted to stackoverflow and tried their suggestions with no luck.
My app is for iphone ONLY, does not use storyboard, and runs perfectly well on all iphone simulators without errors.
Now when I go back to a snapshot of when the project ran well on simulators, the project no longer runs...I get error "Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set?"
The problem was that I deleted the Main.Storyboard file from my project. I thought it would be OK to delete that file since I wasn't using it.
The issue for me was that I switched my supported devices from universal to iPad only. I had also changed the name of the Main.storyboard file but after I had updated the supported devices. So the Main storyboard file base name entry in the info.plist file was still Main.storyboard.
Deleting the entire row for Main storyboard file base name and leaving Main storyboard file base name (iPad) in the info.plist file fixed the issue.
Since your project is iPhone only just make sure to remove Main storyboard file base name (iPad) completely.

Play Framework website session does not remember form input from previous page

I have a Play framework project that asks for information to be submitted on four pages (i.e., enter information on page 1, click "go to page 2" and continue) and on my local Macbook Pro when I run this application (play run) everything runs perfectly. All the information is saved step by step (I save it using session), so when I go to page 2 and look at HTML like the following:
<input type="hidden" name="myFirstField" value="WhatIwroteOnPage1">
As you can see the value from page 1 is saved on page 2 in the source.
Here is my problem ...
I took this project and scp -r'd it onto a server running CentOS with OpenJDK and the same version of Play (2.1.1) (note my Mac has Java (SE)). However now, for some reason the session isn't saved and in the same situation as before I see the following:
<input type="hidden" name="myFirstField" value="">
So for some reason, none of my information is saved! The only changes I made were:
Changed the database password (the db name and username are the same)
That's it. Other than that the only differences are that I:
Use play -DapplyEvolutions.default=true start instead of play run (but the behaviour is the same with play -DapplyEvolutions.default=true run)
The different Java versions
Does anyone have any idea why this may be happening? Any help is greatly appreciated, this project is quite important and I'm completely lost. Thanks
Fixed this. Put my Play project (the folder I'm in when I run play start) into my downloaded Play directory (/.../play-2.1.1/)

LWJGL Sound manager issue

I have been working on the Asteroids Game example code that they give in the tutorials section of the wiki and I ran into a strange error.
The code works just fine in my development environment, Eclipse. The game runs without error and exits normally.
I go through the export process in the file menu and create an executable jar that when run with this batch file code
java -Djava.library.path=D:\Tools\lwjgl-2.8.4\lwjgl-2.8.4\native\windows -jar SpaceInvaders.jar
Starts the display and the fails when it trys to load a wav file. Giving this error.
Exception in thread "main" java.lang.NullPointerException
I traced to where in the code this is happening and it is at the location where the wavs are being loaded. Apprently outside of the environment it can't locate the files even though they are right next to the code? All my wav files and gif files are just in the same directory as the java class files right now so calling them from the code looks likes this:
http://i.imgur.com/2gnN1.png
Searching for stuff on google it tells me to zip them into a seperate file and then import to the class folder and refrence from there. I was wondering if there was a way to keep the files inside my main jar file instead of having to create a seperate entity.
Thanks for the replys! Let me know if more information is needed.
You may want to consider using a higher-level API, such as the 3d soundsystem from paulscode. SoundSystem can read from inside the jar(like you are asking), and automatically switch to java sound if LWJGL sound isn't supported on the current hardware.