iOS : App get stuck on Splash screen - ios

I have tried everything regarding app clean up, project clean xcode quit and all related stuff but still same issue.
I have check everything window also have rootViewController and everything is assigned.

After updating to xcode 12, I faced this issue. xcode hangs while attaching debugger to ios process. Deleting the contents of ~/Library/Developer/Xcode/iOS DeviceSupport worked for me. (https://developer.apple.com/forums/thread/123068?answerId=420683022#420683022)

Try to restart your Mac! 😉
As Uma Madhavi said, your Mac may have installed some automatic updates. Restarting it fixed the problem for me

I removed Device Support folder and re-open Xcode.
rm -r ~/Library/Developer/Xcode/iOS\ DeviceSupport

Check your root view controller design in storyboard, I also got this issue, In my loginview controller by mistake I have pests/ duplicate UIView into stack view with constraints.
So removed duplicate UIView.

In Swift 4.2, xCode 11.5 and simulator version 13.5
Restart or Erase All Content and Settings on the simulator you are using, then try running again. This works for me
Hope you can help :)

Old topic but I just got it and have been searching for two days trying everything without success so far.
What finally worked for me:
close Xcode
going into the finder
go to the list of applications
select XCode and do Cmd + i
uncheck the box "Open with rosetta".
open Xcode and do a clean (cmd + shift + k)
And finally the application has passed the stage of the infinite launch screen

In my case, because Reveal load breakpoint, following Reveal document steps, it works for me. ps: my Reveal version still 26, not upgrade to 38
Reveal document:
https://support.revealapp.com/hc/en-us/articles/4403215920793-My-app-is-hanging-on-launch-under-Xcode-13-and-iOS-tvOS-15

Related

Xcode 13.2.1 Preview Not Working but Simulator Works

My Xcode Version 13.2.1 (13C100) got an unknown issue. I did several things like delete Xcode, new install Xcode, restore from backup nothing make any change! Currently, the project can be built and run in the simulator, but not in the preview window! it gives a message:
Cannot preview in this file - Timed out waiting for connection to DTServiceHub after 15.0 seconds.
What is the issue here any idea?
iMac becomes very slow when I taped the resume button.
Please Help!
I had a similar problem and was solved when I turned of Automatically refresh canvas
Suddenly It fixed, maybe the last update from apple through a software update called "Command Line Tools for Xcode". Before I have also tried a fresh OSX installation but the issue has not gone at all.
Check Software Update from system preference.
Thanks to the great community.
Try the following:
Clicking on the "Diagnostics" button on the failed preview pane.
Copy the ".pcm" file path. It looks like something similar to "/var/folders/aa/xxxxxxxxxxxxxxxxxxxxxxx/C/clang/ModuleCache/12345ABCDE/MyTest-XXXXXXXXXXXXXX.pcm"
Run the following command to remove the .pcm file in the Terminal app (replace the path using the specific path you copied from the Diagnostics log obtained in the step above:
rm -rf /var/folders/aa/xxxxxxxxxxxxxxxxxxxxxxx/C/clang/ModuleCache/12345ABCDE/MyTest-XXXXXXXXXXXXXX.pcm
References:
https://support.macincloud.com/support/solutions/articles/8000098646
https://developer.apple.com/forums/thread/696908
For me, it worked when I changed the device to Any iOS Device(Arm 64) for the preview
on a Mac with apple silicon chip
CTRL + Click on Xcode app
Get info
Check "open using Rosetta"
I had the same problem:
No preview with diagnostic : "Cannot preview in this file - Timed out waiting for connection to DTServiceHub after 15.0 seconds".
Tried the solutions found on the internet, without success.
I switched to macOS beta 12.3 and Xcode 13.2.
And now there is the preview...
The below solution has worked for me:
Running a preview for a project having scenedelegate or appdelegate which worked and then i tried running preview for app protocol style project which was not working earlier.

Xcode 9 App installation failed, Could not write to the device

I've just updated to Xcode 9 and am getting App installation failed Could not write to the device error popup every other time. I see there are older questions on the subject, but this one is particular to iOS 11 and Xcode 9. I've never had the issue before.
How do I make sure Xcode 9 can install app to device every time?
In my case this issue was caused by using App Store distribution certificate while iPad was connected wirelessly.
Switching to development certificate fixed the issue.
Xcode 9 seems to have many different manifestations of this problem. Some of the other answers address specific problems, but this definitely occurs when there is nothing wrong with your project. These steps always resolve for me (in order from least painful to most painful):
Try running it again. Sometimes it works on the 3rd or 4th time.
Unplug the device and plug it in again.
Restart Xcode.
Clean build folder (not a regular clean - this is cmd+option+shift+K or hold option in the product menu) and then rebuild.
If all else fails, once a full restart fixed it for me. But probable something else was the root cause.
Hopefully Xcode fixes these problems soon...but I'm not hopeful.
In my case, I want to testing watchOS app and I set the debug provisioning profile to release one. I set to automatic and the issue is gone.
The solution that works for Could not write to the device is clicking the run button again after dismissing this error message.
In some cases I get the error App installation failed: unknown error. In this case I need to do a clean before building.
Deleting the app from device also helps.
I had similar issue and got is solved using below steps :
Delete app from device
Disconnect device from system
Restart iPhone device and Xcode
Delete derived data content
Clean your project (Shortcut key : cmd + shift + k)
Rebuild your project
I am facing same issues on my iPad. It was working fine before. But after some time my development version stop working on iPad. I have tried and search on internet but not able to find solutions. I have tried all above cases but no Luck.
At last, I have found solutions. Some developer has changed DATE/TIME settings for my Ipad. Please check date/time because my Provisional profile for apps has expired for the manual date set on iPad.
Hope the following steps will be useful for others,
Check your provisioning profile is valid.
choose the debug profile for signing in target.
Open you scheme under product in menu toolbar or using Cmd + < shortcut.
Choose debug mode for Run in your product scheme.
Tadaa! now you can run the app in your device flawlessly.
Happy coding! :)
I tried all the method , they didn`t work for me .
And I fixed the problem by removing the soft link file made by ln -s
In my case, this issue appears when I added a folder as reference in the project which contains a symlink. Removing the symlink fixed the issue.
Mine occurred when I had not signed in using my itunes developer portal credentials to sign into XCode. When I did it and cleared all derived data, it worked out.
Everyone is solving this problem in a different way. Mine was changing executable name, building the app (throwing the "You don't have permission etc." problem) and changing the executable name back to the original value.
I don't know why but it worked.
I actually had to reboot the system on the Mac, this gets me rid of the problem for a good while, but it eventually comes back. None of the other solutions mentioned here worked for me.
In my case the problem appears while I use manual signing and try to debug the app in Release mode. Although the fastlane builds and uploads fine in this mode fine, direct XCode debugging fails with the error "Could not write to the device". Temp switching to automatic signing mode fixed this issue.
What worked for me:
delete the app from iPhone
clean the code in Xcode
quit Xcode
re-open Xcode, connect my iPhone, and run it again
I got this issue App installation failed - Could not write to the device and I solved it by doing the below steps
Uninstall the app from device.
Clean the project.
Run the project.
It worked for me.
Xcode 9. iOS 11 SDK. Watch SDK 4.x.x - OPEN THE WATCH APP on the iPhone after failed. My Watch tab->(scroll down to the bottom)-> Install your app. Hope this helps. Just need permissions from the "Watch" app.
I had the same question that could be solved by deleting other debug App from my iPhone, then it worked.
When I choose the Automatically manage signing, my problem fixed.Hope my answer can help you.
Sometimes the problem arises when you removing some pod file reference. The only way to solve this in also your pod-file
eg:
use_frameworks!
pod 'KYDrawerController'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'Alamofire'
pod 'Firebase'
pod 'Firebase/Messaging'
remove the unwanted file in this place. And also reinstall the pod-file again and open your project it surely works for you.

Internal error. Please file a bug at bugreport.apple.com and attach

Getting this errors when i build the application
Main.storybord: Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/v5/4tnjcvds103g1y3tf1mnfv680000gn/T/IB-agent-diagnostics_2015-10-30_11-30-47_678000".
And
LaunchScreen.storyboard: Internal error. Please file a bug at bugreport.apple.com and attach all crash logs from ~/Library/Logs/DiagnosticReports.
Done all things Cleaning project, Quit Xcode Several times and also restarted the System, Still getting errors.
Any one got solution help me please ?
Try following options to clean up the build files :
cmd + shift + k
AND
cmd + option + shift + k
OR
even you can send the bug report on this link for this issue.
I had same issue,
Solution was: clearing out the DerivedData folder.
Can be found in ~/Library/Developer/Xcode/DerivedData
That worked for me.
I got the same issue when i have updated my launch screen into project.
I just do following things the issue got cleared.
1.Get the back up of your source code.
2.Delete your LaunchScreen.storyboard file.
3.Pop up will appear and it will ask re save the storyboard file or close option,press close.
4.Just Add LaunchScreen.storyboard file into your current project from your back up source code.
5.Now clean then build , issue will cleared.
cmd+shift+k
cmd+option+shift+k
All this is not work for me or for you????
Waring:You can do this
The reason is you download Simulators on the new Xcode, you must delete it!!
the path is "/Library/Developer/CoreSimulator/Profiles/Runtimes"
For example your xcode version is Xcode 8.0, Now you download Xcode 9.0, You have two xcode, you download ios 10 Simulator on the Xcode 9.0, Then Xcode 8.0 will appear the Storyboard can't run, Because, Xcode 8.0 default Simulator is ios 10, Conflicted!!!

Installation Failed: Invalid Argument -iOS Extension

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 .

How to solve bundle(not loaded) issue in Xcode 5?

2014-01-21 10:27:42.248 app[19510:70b] Cannot find executable for CFBundle 0x8ca29a0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
I am getting above error in debug area of Xcode 5 in Mavericks! I tried 'Reset content and Settings' option too. Though there are many threads regarding this issue, none of them have exact solution. Thanks in advance!
iOS Simulator > Reset content and settings...
It helped me with this problem!
I had the same issue and found your post when searching for a solution. My application appeared to be running fine but I was still getting this message I was able to eliminate the message on my machine, here is what I had to do;
Stop all execution on the simulator.
Go to the simulator's home screen using shift-command-h.
Delete the app from the simulator device by holding a click on my program until the delete icon appeared, then click the X to delete.
In the iOS Simulator select Reset Content and Settings.
Clean the project in Xcode, shift-command-k.
Build it and run it.
Note, I was doing steps 4 & 5 but that wasn't working. It wasn't until I added step 3 (as crazy as it sounds) that it cleared my message.
Hope this works for you!
if the reset of the simulator does not solve your problem try the following:
In Terminal type:
open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
Delete your "iPhoneSimulator7.0.sdk". Then reinstall Xcode. Reinstalling is really fast because just the missing folder gets replaced. This fixed it for me.
for more check this link-> https://devforums.apple.com/message/925386#925386

Resources