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

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!!!

Related

Build Error in Xcode 11.3.1 - IBCocoaTouchFramework-ThirteenAndLater

I am having following error every single time I try to build an app in Xcode 11.3.1 on macOS Catalina 10.15.3. I see this error for UIKit as well as SwiftUI based projects. Xcode fails to load storyboard file (or scene) and fails to build
/<PATH TO PROJECT>/Base.lproj/LaunchScreen.storyboard:1:1:
Failed to find or create execution context for description '<IBCocoaTouchPlatformToolDescription: 0x7fd283181f90> System content for IBCocoaTouchFramework-ThirteenAndLater <IBScaleFactorDeviceTypeDescription: 0x7fd283187160> scaleFactor=2x'.
Please note, this error is not specific to LaunchScreen.storyboard file. I have tried not having launch screen and instead straight Main.storyboard but nothing works.
I have tried everything else including rebooting my mac, killing Simulator process deleting Derived Data. All these steps, a few of these steps but cannot get rid of it. My Xcode is plagued with this issue and I cannot build any project.
If you have encountered this issue, please share what you did to solve it.
Thanks in advance.
In my case, reinstalling Xcode fixed it for me.

Simulator not found after Xcode update

I have just updated the Xcode from App Store from 10.2 to 10.3 and suddenly all the simulators are gone. Now when I open a project with a storyboard, it throws me an error as below.
Failed to find or create execution context for description ' System content for IBCocoaTouchFramework-ElevenAndLater scaleFactor=2x. These intermediate objects were non-nil.
Any one faced this issue before? Also it doesn't let me edit anything in my simulator.
I tried to restart Xcode, but it did not help.
The only way to fix the problem was to reboot my MacBook - it fixed the problem with simulator
Try to increase deployment target of your project. It worked for me.

Could not build module 'Foundation', 'UIKit, 'CoreFoundation' on Xcode 9.3 and Xcode 9.4 [duplicate]

Suddenly it stops building application in device. In simulator its working but when I connect the device and try to run it in device it gives me an error:
Could not build module UIKit
I tries a lot but couldn't solve it.
A full clean + deleting the derived data worked for me.
Be sure to fix any code that may be broken because UIKit cannot be installed, before the clean and build.
So, for example, if you are trying to reference UICollectionViewController, and need UIKit to reference it, comment out the code that is using UICollectionViewController, comment out the import for UIKit.
Then clean, build. Now uncomment import UIKIt, build. NOW uncomment UICollectionViewController code, build again.
Please don't make the same mistake like I did. In my case, I accidentally typed some words into Foundation framework file.
Something that might help would be to set the Derived Data location to "Relative" in XCode preferences, then Clean & Build
For some reason your UIKit.framework is corrupted, either copy a working UIKit.framework from somewhere else into
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks
Or reinstall Xcode the fix the issue.
I accidentally edited the Foundation framework file
so UIKit.framework got corrupted. The only solution is recover the original.
You have two ways to achieve the same:
Just reinstall Xcode. OR
copy the Framework from another machine with the same XCode version and paste into yours.
Location:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks
If you have two Xcode then uninstall both and again install Xcode. It worked for me.
If cleaning the project and deleting the 'derived data' doesn't work,
try to change the 'Deployment target' (at 'General' tab) from 7.0 to 7.1
Check whether the appropriate target is selected or not from the "active scheme selector". Selecting "Generic iOS Device" solved my problem.
Click to select simulator
Select "Generic iOS Device":
Make sure none of the files are edited in the UIKit framework located inside Xcode.
Cleaning Derived data worked for me
Check the tool chains installed and select the right xcode tool chain. In my case i changed it from Swift 4.0 to xcode 9.2 and it worked.
In my case, after cleaning the project, only restarting my Mac helps.
Cleaning the project and restart xCode worked for me.
I am also facing this issue for very long time and after trying all the suggestions given in the different portals, i came to know that the issue is with the device you want to run the application. Device have latest iOS and your Xcode is not supporting that iOS.
For example you have Xcode 7.2 and want to run the application on device which have iOS 9.2.1. So you only need to update your Xcode.
And one more thing Base Sdk in Build Settings is always greater or equal to the software version number on your development device.
Already tried all the solutions above. I still could not solve my problem. So I uninstall the Xcode and reinstall it. It worked magically.hope this helps.
Suppose you have changed or deleted anything in the UIKit framework, then shows this error.
If you are able to find that class or .h file to be changed or deleted, then replace that whole file content in that .h file from other system's Xcode (confirm that should be similar Xcode version).
For example, In UIView.h file - I have deleted a method and closed and opened the Xcode. Then I couldn't reverted that code.
I tried with delete derived data,delete application from project list but when i delete xcode and install new one its working so its best way just delete xcode and install new xcode.
This error happened to me when I accidentally modified the uikit framework. Removing and re-adding the uikit framework in link binary with library, cleaning derived data and restarting xcode didn't work. I don't want to uninstall my xcode so I tried to copy codes of the class that I might have modified from other pc with xcode that works fine and paste it to mine. It worked!
If your project builds for another target (e.g. it builds for simulator and NOT your device), then it's confirmed you accidentally edited one of the header files of the frameworks for that target. The affected framework is the one you are receiving compiling errors for.
It worked for me after remove all folders in DerivedData folder.
My Issue causing this same error was due to working in a workspace created by coco pods, somehow the link to the UiKit Framework had been lost from the original project.
To solve this i just reopened the xCode project not the workspace and re added the missing UIKit framework, saved the project and closed it, re opened my workspace for the project and the annoying nag messages caused by this were fixed. Hopefully this helps someone else.
I had this issue, and I set Device on Generic iOS Device, clean project, make build. Then I switched device to my real device and run project. The error does not appear.
Cleaning some unnecessary Xcode data using DevCleaner for Xcode app worked for me.
My error was a wrong version of command line tools - go to Preferences->Locations and change the command line tools version - quit xcode and try again.

Xcode 8 Beta (null) was unable to service the request

I have an app that worked fine in the released version of Xcode. I downloaded the beta and after I fixed all the little changes I ran it and it worked. I just came back and ran it again and I get an error saying
The request to open "com.matthewhsingleton.Smoke" failed . (null) was unable to service the request.
I have quit Xcode and reopened it, I have restarted my computer, tried different iPhone simulators and all produce the same resulte
My error was similar, instead of "(null)", the message was: "SpringBoard was unable to service the request"
Restarting the simulator worked for me.
After reading #Droppy suggestion I read the thread and it is a common issue. To solve it is as follows
Problem solved for by an Apple Engineer in the lab. It's an issue they're working on. The bottom line was that when I copied Xcode to Applications folder, there was a bit set on it and that was preventing it from communicating with the simulator.
To fix it:
Copy-paste Xcode-beta.app from Applications folder to somewhere else, e.g. Documents folder.
Delete Xcode-beta.app from Applications folder.
Move Xcode-beta.app from Documents to Applications folder again.
Seen here https://forums.developer.apple.com/message/143094#143094
I had 2 versions of Xcode installed. Xcode 7 and 8. I resolved this issue by setting the command line tools to Xcode 8 in preferences. Open preferences -> Locations -> Command Line tools. Set that to Xcode 8.

iOS : App get stuck on Splash screen

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

Resources