Simple but annoying bug, I can't undo my changes once I run my project. Before running I can undo (command + z), but after running I get mac error sound when I try to undo.
I'm using xcode 12.2 but it was happening in other versions too.
I deleted user data, cleaned build folders but no luck.
What could it be?
I am using macbook pro 2019 os version is catalina 10.15.7
This can happen when you have a build phase that modifies your files, like SwiftFormat. Make sure this is not the case.
Related
All I've done is unpack the zip, and when I try to open Android Studio, it crashes immediately. I see the icon in the dock for two seconds tops, before it crashes.
I also tried using the latest Canary build and have the same results.
I checked and apparently JDK comes bundled with it, so I don't need that installed in advance.
Am definitely using the M1 / ARM build for macOS running macOS Monterey Beta.
The traceback error is incredibly long and I am unable to pin where the issue lies, and I'm not sure that I should really post the entire thing. Where I am confused is that this is a relatively new Macbook Air on the M1 chip with hardly anything installed on it, so I don't understand what the conflict is or where to begin here...
Fixed by upgrading to the latest beta.
Xcode 12.5.1 · macOS 12.0 Beta 6
I have been upgrading a macOS app written by someone else, which has always worked correctly on macOS 10.15 Catalina.
Having finished the upgrades, I find that it no longer launches on Catalina:
However, I have not changed the macOS Deployment Target, which is still 10.15:
I don't know what would cause the requirement for macOS 11.3 — every modification to the program was done using capabilities that were present in the previous version.
I did not modify any build parameters — I only changed the code.
I have updated Xcode since the previous release.
I have done quite a lot of Googling, but I have not been able to find anything. The relevant search terms all turn up results about Xcode versions.
Any pointers in looking for an answer, or even just a direction to investigate, would be very helpful.
Marek H pointed out that I needed to specify a Deployment Target for the target app as well as for the project. Since the field had previously been empty, I didn't notice it:
I entered the correct Deployment Target and the problem was solved:
Today my Mac showed error message above for my own compiled app. This app worked for years. I slightly changed something, but what's the reason for this? How can I avoid it? There is no danger!
I'm using Xcode 10.15 and OSX 10.15.5.
It runs under XCode, but not standalone.
I found the reason/solution.
XCode may had a problem. I copied all files to another folder and restarted XCode with that new location. After compilation everything worked fine (as before).
Seems to be an internal problem of caches of XCode.
Use sign to run locall could fix this issue for me.
I just installed the latest version of Xcode (10.1) on MacOS 10.14 (Mojave).
I can build my application and it runs fine on my Mac or similar system.
However, I want to share this application with someone using MacOS 10.11 (El Capitan) and it fails to launch, asking for a minimum requirement of MacOS 10.13 (High Sierra).
My application is only very simple, can't I compile it to be compatible with older MacOS ?
After some research, I did download MacOSX10.11.sdk
(from https://github.com/phracker/MacOSX-SDKs/releases/).
I did decompress it, and drag it into:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
(This folder originally contains only "MacOSX.sdk" and a link pointing to it, named "MacOSX10.14.sdk")
I also noticed the value of the string "MinimumSDKVersion" from the file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist is equal to "10.11", which sounds good in my case.
I read on some forums adding additional SDK versions into Xcode is not supported. And by the way, I cannot see any menu from Xcode to specify my target build (neither in Xcode Preferences, nor in the project settings (see picture below).
Where can I tell Xcode to use, let's say "MacOSX10.11.sdk" over "MacOSX10.14.sdk"?
And, is there a better way?
Or, do I have to install an old version of MacOS on a different partition, with an old version of Xcode (which would be a pain)?
I am not sure if this still works on Mojave, but there is a project called XcodeLegacy which is created specifically with this intention in mind:
https://github.com/devernay/xcodelegacy
Regarding the menu, you can find it at: Xcode -> Select File -> Project/Workspace Setting
Open Workspace Settings
Works on Xcode 13, I'm a bit late to the party but just had the very same question.
I am building a Mac OS X application and from time to time, I get this error message from Xcode (Version 5.0.1 (5A2034a)):
However the architecture (i386 or x86_64, it seems to happen on both) is supported by my system (Mac OS X 10.9).
Clicking a second time on the Run button (or press Cmd+r) sometimes fix the problem.
Sometimes I have to delete the application in my build folder and then rebuild it.
Note: I am using cmake to generate the Xcode project.
The same thing just started happening to me.
As was suggested here, stopping and starting Xcode cleared the problem.