XCode 12 freezes after saving a file - swift

Context:
I am Running a SwiftUI Application on an iPhone 11 Pro Simulator, Previews are Turned off, After Recommendation from Apple Support team I have upgrade to XCode 12.3 from XCode 12.0.1.
Issue:
Since I have started using XCode for Swift, The Editor Randomly freezes once I save a file or open another file with the beach ball spinning. One answer on StackOverflow said that this might because Swift is a Strictly Typed Language and the Editor Reanalyses it every time you save a file. Previously I have used XCode with C++ and have never encountered this issue.
Computer Specs:
MacBook Pro (Late 2019) 128GB(30GB Free), 8GB RAM, i5 Processor. Simulator and XCode are the only applications that are open.

This is how I fixed the problem:
I deleted Xcode 12.3 which I downloaded from the App Store, went to the Apple Developer Downloads Website: https://developer.apple.com/downloads and downloaded Xcode 12.2, I installed it and done! Everything was working seamlessly even at peak conditions.

Related

Getting error code -10670 when running a Mac Catalyst app in Xcode

I am developing an app for iOS and also using Mac Catalyst to run on my Mac. The app runs fine on my iPhone but always shows an error on Catalyst. The code used to run fine before updating to Big Sur Beta 6 from Beta 5. Here's a screenshot of the error: . Also the error in code blocks for anybody who wants to copy it.
The operation couldn’t be completed. (OSStatus error -10670.)
Domain: NSOSStatusErrorDomain
Code: -10670
User Info: {
"_LSFunction" = "_LSOpenStuffCallLocal";
"_LSLine" = 3664;
}
--
System Information
macOS Version 11.0 (Build 20A5364e)
Xcode 12.0 (17210.1)
https://github.com/MysteryCoder456/VegieMato/tree/backend is the GitHub Repo if anybody wants to reproduce this (i.
Faced same issue after upgrading to macOS 11 Beta 6. Reported bug to Apple but meanwhile found workaround - Select Product in Xcode, select 'Show in Finder'. Launch it from Finder. Additional step, hopefully Apple will look into it.
The problem is solved with new Mac OS 11.0 Beta (20A5374g).
If your catalyst app has multi-window support, you may still need to kill your existing app before launching the new one.
I also had the same problem. (I say had, I guess I still do, however I have a workaround) My App had been developed as iOS / iPadOS with Mac support. All has been working great throughout macOS 11 beta builds. Until today that is, when I, as you, updated to Beta 6. Upon attempting to run for macOS target I get the same error as you have posted.
After some googling I found https://www.virusbulletin.com/uploads/pdf/conference_slides/2015/Wardle-VB2015.pdf and had a go at simply opening the app directly from the build folder. Hey presto, it opened without any problems, I even cleaned out the build folder and built it again to make sure.
This would appear to be a problem that the next version of Xcode beta should fix. Until then, unless anybody can suggest a better fix, this will have to suffice for me at least :-(
Sam
-10670
I was having this same error code upon installing a Developer ID Distributed, Auto Signed version of a catalyst app on a test machine, non M1 Chip, Mac Mini(Late 2014) with MacOS Version 12.0 Beta installed.
The solution was to close the previously installed version of the app. Before opening the new version that I Airdrop over to the test Mac machine.

Xcode 8.1 GM crashed when I try to open .SKS files

I've an iMac 14,2 Late 2013 (i7) with a nVidia GTX 970 third part GPU. All stuff works well until these days with the appearance of the issue described in title.
I've the same issue with the follow configuration:
Sierra 10.12.0 GM2 build 16A323
Nvidia Web Driver 367.15.10.05f01 for build 16A323
Xcode 8.0 GM 8A218a
Today I've installed the new Sierra update and Xcode GM version, but I've the same issue:
Sierra 10.12.1 update build 16B2555
Nvidia Web Driver 367.15.10.05f01 for build 16B2555
Xcode 8.1 GM 8T61a
I waited for the release of these new versions to see if the problem was solved but without success.
Another strange problem that seems related to the use of the third part GPU is the Xcode - Open Developer Tools - Instruments: everytime I try to launch an instrument I've a transparent empty window.
Any help or idea to solve this issue is appreciated.
P.S. This issue NOT happened when I use El Capitan v10.11.6, BUT with this OS version and XCode 8 happen another issue related to simulators. Look here for details..I wanted to destroy my iMac.
Update (Swift 4): with High Sierra 10.13.1 and Xcode 9.2(9c40b) finally this problem is totally solved.

iPhone with iOS 6 and Xcode 4.2 issue

I have upgraded my iPhone to iOS 6, however I am currently on Xcode 4.2 (on Snow Leopard). Now I am getting this error message:
The version of iOS on “xxx xxx” does not match any of the versions of
iOS supported for development with this installation of the iOS SDK.
Please restore the device to a version of the iOS listed below, or
update to the latest version of the iOS.
Is it possible to restore my iPhone to older version say 5.1 or some how make my Xcode to support/recognize iOS6?
I followed the following steps, to resolve my issue by making Xcode to support iOS 6:
1.First download Xcode 4.5 .dmg file from Here (You would need developer account).
2.Then mount this image and use "Show Package Contents" from context menu.
3.Then copy the following folder
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.1
(10A403)
to your mac's following folder (This path may differ from mac to mac based on its version. On Snow Leopard you may find the Developer folder in Finder under PLACES section, and probably on Lion, you have to right click the Xcode.app and have to use Show Package Contents):
Developer/Platforms/iPhoneOS.platform/DeviceSupport
4.Similarly copy the iOS 6 SDK folder from following directory:
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
to your mac's following folder
Developer/Platforms/iPhoneOS.platform/Developer/SDKs
5.Also copy version.plist from Contents/Developer/Platforms/iPhoneOS.platform folder to your mac's Developer/Platforms/iPhoneOS.platform folder.
6.Re-start Xcode and re-connect the device(s).
Bingo !! now Xcode supports recognizes iOS6 device(s) and even I am able to run and debug my app (built for older SDKs) on my iPhone with iOS6 (I am not sure about iPhone 6.0 simulator though).
However, answer to How to restore iPhone to older version say 5.1 is still pending.
You cant debug iO6 device in Xcode 4.2. iO6 device debugs only in Xcode 4.5 (latest one). And most importent for installing Xcode 4.5, in your machine must have at least Lion Operating System.For efficiently debugging of iOS device, You must upgrade your OS.
I had the exactly same problem !
Downgrading iOS 6 in your iPhone is not officially supported by Apple anymore :
https://discussions.apple.com/thread/4533316?start=0&tstart=0
What works for me was to install Lion in an external HD USB, upgrade Xcode to the latest version and upgrade the Provisioning Profiles in my Apple Developer account for this environment.
Upgrade to Xcode 4.5 (and OSX mountain lion). No previous version of Xcode supports iOS 6. You can also check if you can restore your phone using a previous version of iOS by getting the .ipsw file and option-clicking on "restore" button when selecting your device on iTunes.

Monotouch no longer launching the application automatically

Previously when I selected "debug iPhone" in monodevelop it used to deploy as well as launch the application on the iPhone when I started the debugging.
It still deploys, but no longer launches the application on the iphone and I need to do that manually otherwise Monodevelop keeps saying "Waiting for debugger to connect"
Additional info: I am using an iPhone cable to do the debugging. It stopped working after I upgraded to mountain lion / Xcode 4.4
It should be working. OTOH the matrix of every possible cases is quite large (and both Mountain Lion and Xcode 4.4 are very recent).
The best thing is to fill a bug report and, beside OSX and Xcode versions, include:
the iOS version used on the device;
the MonoTouch version;
the MonoDevelop version.
For the last two (and also the precise builds of OSX and Xcode) you can get them easily from inside MonoDevelop by doing About MonoDevelop, selecting the Version Information tab and copy/paste this data in the bug report.

iPhone Simulator locks up immediately upon Build / Run

I'm having a problem getting my MacBook set up to build iPhone apps in xCode. The iPhone Simulator locks up and shows the "spinning circle" busy icon.
I've tried everything I can think of, including
resetting the simulator
tried all of the different hardware options
tried the two debug build choices in xCode.
uninstalling the SDK and completely reinstalling
I downloaded the SDK today - "xcode_3.2.2_and_iphone_sdk_3.2_final"
I'm just upgraded from Leopard to Snow Leopard (10.6.3). I've run all the software updates. xCode version says 3.2.2 (1650)
If it matters, my MacBook is 3-4 years old, 13 inch, dual 2.16 ghz intel cores, 2 gig RAM. I've never had a single problem with it.
I would be so grateful if anyone can help me
thanks so much,
if you have access to the 4.0 one, then try that, if not, then I would install a previous sdk version in a different folder (or rename your current developer folder or delete it, then install the previous version under /Developer) and run that one instead
I just finished installing the 4.0 SDK. I made a new windows-based iPhone app (HelloWorld) and tried a build/run (Simulator-4.0 | Debug)
Same exact behavior... The simulator appears and the rainbow spinning progress wheel just keeps going and going
I took a sample from the process ("not responding...") but it's pretty big and I don't see any way to attach it to this question.
thanks again