Post

Replies

Boosts

Views

Activity

Reply to Is there a planned end of life for Rosetta 2?
Is there any official timeline for the deprecation of Rosetta 2 for ARM based Macs? NO, not yet. You should better check the announcements of Apple by yourself. News and Updates But Apple might give us developers only a few months (or less!) till actual removal of some functionalities when announced. (And some sorts of functionalities might be removed silently and abruptly.) You should better prepare now.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’21
Reply to Multiple Xcode versions on My Mac
would installing a lower version of Xcode take up just as much space on my hard dive as the current version I already have installed? YES. can I install the lower version on an external hard drive? NO. Xcode needs to be installed on a start up disk. I haven't tried with Apple Silicon Macs, but I do not expect this restriction would have changed. can having multiple Xcode versions installed cause unexpected behavior?  I have installed Xcode 13 as Xcode.app from Mac App Store and Xcode 12.5.1 as Xcode12.5.1.app from More Downloads page. Using both of them for 3 weeks or more, I have not met any severe things yet. How can I make this process in a safe and optimized way?  Just download the other version of Xcode from More Downloads page, expand it there, rename Xcode.app to an appropriate name (before opening it!) and then move it to Applications folder. That's all. Just try.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to wrong date
When you show your code, please use the code block? What is wrong with 2000-01-01 08:55:00 +0000? What is wrong with 2018-10-14 03:56:23? And what are the expected outputs?
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to What app type should I select from the Xcode platform ?
Every Apple's platform have URLSession available. If you just want to explore how to use URLSession, create an iOS App project/Storyboard and add a new method into ViewController. import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. //Call `testURLSession()` here. testURLSession() print("testURLSession() called") } func testURLSession() { //Write code using `URLSession` here... //... } }
Oct ’21
Reply to .navigationViewStyle(.columns) doesn't work
Can you clarify what you mean by fixed Navigation View? Anyway, you may need to define at least two columns inside NavigationView to test how .columns work. A simple example: struct CollectionView: View { var body: some View { if #available(iOS 15.0, *) { NavigationView { //First column VStack { NavigationLink(destination: //Second column replacement Text("Hello") .navigationBarTitle("Hello") ) { Text("To hello") } } .navigationBarTitle("List", displayMode: .large) //Second column EmptyView() } .navigationViewStyle(.columns) } else { // Fallback on earlier versions } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to There is not enough disk space available to install the product. XCode
I have 42.84 GB of free space available 42.84 GB seems to be too small to install recent Xcode from Mac App Store. I removed many unneeded files and made more than 50 GB to install Xcode 13. If you have some external storage device, download Xcode.xip into the device and try expanding it. More Downloads
Replies
Boosts
Views
Activity
Oct ’21
Reply to Hey
First of all, you need to get a Mac capable of running Xcode.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot convert value of type '[Double]' to expected argument type 'Double'
You should better read the things robnotyou has written for you and for all the readers.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Is there a planned end of life for Rosetta 2?
Is there any official timeline for the deprecation of Rosetta 2 for ARM based Macs? NO, not yet. You should better check the announcements of Apple by yourself. News and Updates But Apple might give us developers only a few months (or less!) till actual removal of some functionalities when announced. (And some sorts of functionalities might be removed silently and abruptly.) You should better prepare now.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Multiple Xcode versions on My Mac
would installing a lower version of Xcode take up just as much space on my hard dive as the current version I already have installed? YES. can I install the lower version on an external hard drive? NO. Xcode needs to be installed on a start up disk. I haven't tried with Apple Silicon Macs, but I do not expect this restriction would have changed. can having multiple Xcode versions installed cause unexpected behavior?  I have installed Xcode 13 as Xcode.app from Mac App Store and Xcode 12.5.1 as Xcode12.5.1.app from More Downloads page. Using both of them for 3 weeks or more, I have not met any severe things yet. How can I make this process in a safe and optimized way?  Just download the other version of Xcode from More Downloads page, expand it there, rename Xcode.app to an appropriate name (before opening it!) and then move it to Applications folder. That's all. Just try.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to wrong date
When you show your code, please use the code block? What is wrong with 2000-01-01 08:55:00 +0000? What is wrong with 2018-10-14 03:56:23? And what are the expected outputs?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to What app type should I select from the Xcode platform ?
Every Apple's platform have URLSession available. If you just want to explore how to use URLSession, create an iOS App project/Storyboard and add a new method into ViewController. import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. //Call `testURLSession()` here. testURLSession() print("testURLSession() called") } func testURLSession() { //Write code using `URLSession` here... //... } }
Replies
Boosts
Views
Activity
Oct ’21
Reply to .navigationViewStyle(.columns) doesn't work
Can you clarify what you mean by fixed Navigation View? Anyway, you may need to define at least two columns inside NavigationView to test how .columns work. A simple example: struct CollectionView: View { var body: some View { if #available(iOS 15.0, *) { NavigationView { //First column VStack { NavigationLink(destination: //Second column replacement Text("Hello") .navigationBarTitle("Hello") ) { Text("To hello") } } .navigationBarTitle("List", displayMode: .large) //Second column EmptyView() } .navigationViewStyle(.columns) } else { // Fallback on earlier versions } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iOS 15 Simulator - Files App not showing contents of Documents Folder anymore
And I have not verified if the issue is also there when run in a real device. As far as I tried, a file saved in the Documents folder of an app can be opened with a real device. (iPhone 12 Pro Max/iOS 15.0.1)
Replies
Boosts
Views
Activity
Oct ’21
Reply to Modifying App Bundle
How would I go about it? Copy the item into the right folder where your app can touch it. Your app can modify or delete the copied file as you like.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to XCode 13 build fails: input file R.generated.swift was modified during the build
There is no file named R.generated.swif in the standard Xcode project. I guess you are using some sort of third party framework. If so, you should better contact to the author of the framework or find a community site for it.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Are Button actions on the MainActor?
Seems you expect too much than documented.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Xcode could not open file
If you created the Xcode project through React Native, I guess it is the cause of the issue. React Native is not a framework of Apple's and you should better contact to the author of it or find a community site for it.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Xcode13-Version 13.0 (13A233)
It may be a temporary failure of the server of App Store Connect. When a big news about Apple is announced, Apple's servers show many, many, so many unexpected behaviors. Have you tried it several times with keeping a few hour intervals?
Replies
Boosts
Views
Activity
Oct ’21
Reply to Scanning QR code with color gradient
You should better use the Code Block feature properly. Even someone eager to help found this thread, they would not try to go further given this sort of unformatted code.
Replies
Boosts
Views
Activity
Oct ’21