Xcode 10.1: "No such SwiftUI module" - ios

I am using Macos Mojave and Xcode 10.1. I clone my project from github (I used Xcode 13 before) and change objectVersion to 50:
Then I can open this project in Xcode 10.1.
But I get an error: "No such 'SwiftUI' module"
What should I do to fix that?

SwiftUI was introduced with Xcode 11 See here
So Xcode 10.1 has no module SwiftUI. You need a higher version, upwards of Xcode 11

Related

.Net MAUI iOS only supports later version (iOS 16)

I am running Visual Studio for Mac Preview v17.4 with MAUI workload, but when I try to run the hello world app on my iOS 15 device I get an error to downgrade to a lower version but I can't do so in the project build settings because the only available version is 16.
Any ideas how to add iOS 15 build targets to VS for Mac MAUI?
There's a bug right now where the simulator dropdown is reading from the Info.plist file. Add an entry into your Info.plist file for the following property https://developer.apple.com/documentation/bundleresources/information_property_list/minimumosversion that matches the Minimum OS Version you've selected for your iOS target. You might have to restart vsmac or unload/reload your project. After doing this your lower version simulators should show up.
I beleive you have Xcode 14 . So download Xcode 13.4.1 version and select this Xcode in the path to see the simulators coming back. For now .netmaui is not completely supporting xcode 14. They are working to target Xcode 14. For now jus downgrade Xcode version below 14.

Xcode error "the project cannot be opened because it is in a future Xcode project file format."

I have a macOS version 10.13.6, so the only version of Xcode I can download is 10.1.
Now when I create a new iOS project with Cordova and try opening it with Xcode, I get this error:
The project at 'project-location' cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode.
How can I adjust the project to run on Xcode version 10.1 if I can't open it in Xcode in the first place?
According to the Cordova iOS Platform Guide, Cordova requires Xcode 11 or later so you can't use it with Xcode 10.1.

iOS 12.4 is missing in Xcode 11 GM

I have installed Xcode 11 GM and can't find iOS 12.4.1 simulator anymore. iOS 12.4.1 was installed in Xcode 10.3, but it is not available in Xcode 11 for some reason (not only iOS 12.4 - other simulators are also missing). Moreover, I can't download it via "Add Additional Simulators..." - the latest one available is 12.2. Any ideas why so and how to fix? 🤔
Thanks!
iOS 12.4 simulator files can be found in the Xcode 10.3 app bundle. While you can't download it from within Xcode (at the moment), you can simply copy them to the folder where additional simulators are usually installed. Go to the following subfolder, it is located inside Xcode.app (10.3):
Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes
and copy the iOS.simruntime package to here:
/Library/Developer/CoreSimulator/Profiles/Runtimes
Rename iOS.simruntime to iOS 12.4.simruntime.
Restart Xcode 11.
The 12.4 simulator is now available (in Xcode 11.1 at least):

Xcode ToolChain version

I recently realized in the terminal that my swift version was swift 3.0 (swift-3.0-GM-CANDIDATE). I have already updated to xcode 8.3 and I know xcode 8.3 comes with swift 3.1, so I checked the xcode toolchain set in xcode preference pane and it was set to xcode 8.3, but when i opened the directory containing the toolchains i found out that the latest xcode toolchain file was just a alias that points back to the swift-3.0-GM-CANDIDATE.xtoolchain. What do I do, do i download the standalone xcode 8.3 toolchain and install?

Xcode crashes with exit code 11 when downgrading from Xcode 7 to 6

I have upgraded Xcode 7 Beta and deleted both of Xcode 6 and 7. After days, I have downloaded Xcode 6.4 from App Store.
I compile my project, I saw the following compile error.
Command/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 11
How Can I fix it?
I had the same issue with Xcode 6 beta. If you use GitHub then you can check for changes within the project e.g storyboards and plists.
Quite often when opening a project with a newer version of Xcode, it will be upgraded for the new version of Xcode, these changes are not always backwards compatible.

Resources