Post

Replies

Boosts

Views

Activity

XCode & MacOS Version
Hi, I am currently running XCode 14.3 on a 2015 Macbook using MacOS 12.6 I built an app and then was able to deploy to App Store Connect where I get this error: SDK version issue. This app was built with the iOS 16.2 SDK. All iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution. (ID: 9431bf9a-6b21-4270-932d-d01b23a47691) To distribute my app, I need iOS 17. To have iOS 17 SDK, I need XCode 15 or later. To get XCode 15 or later, I need macOS 14.5 To get macOS 14.5, I would need a new machine since 14.5 is not supported for 2015 macbooks Does anyone have any suggestions on how I can publish my app that don't require a new macbook for this situation?
2
0
136
Oct ’24
SwiftUI Charts Issue - Axis Marks
I'm having an issue with SwiftUI charts and was wondering if anyone knows of a solution or has also run into this. I've been trying to plot data for my app and the X axis does not show the dates and the Y axis only has axis marks 0-9. So, I tried to make another file instance to check what's going on. This is what I have import Charts import SwiftUI struct Exercise: Identifiable { let id = UUID() var dateCompleted: Date var reps: Int } struct ContentView: View { private var exerciseMaxRepsArray: [Exercise] = [] init() { // init dummy data for i in 0 ..< 20 { let date = Calendar.current.date(byAdding: .day, value: i, to: .now) ?? .now let rep = Int.random(in: 1...20) exerciseMaxRepsArray.append( Exercise(dateCompleted: date, reps: rep) ) } } var body: some View { GroupBox(label: Text("Daily Max Reps")) { Chart(exerciseMaxRepsArray) { e in LineMark(x: .value("Date", e.dateCompleted, unit: .day), y: .value("Reps", e.reps) ) } .chartYAxisLabel(position: .trailing, alignment: .center) { Text("Reps") } .chartXAxisLabel(position: .bottom, alignment: .center) { Text("Date") } } and this is the result: I've checked and the issue is not the frame. Has anyone else had this issue or have any clue what could be going on here?
1
0
1.8k
Jan ’23
Select multiple items from a list saved in core data and adding those items in different core data entity with Xcode / SwiftUI
I am new to swift and trying to make an app where the user can select multiple exercises from a list saved in core data to build a workout that is then saved in core data. I have created a core data model with 3 entities - Exercise, ExerciseSet, and Workout. Exercise and ExerciseSet are related such that an ExerciseSet will consist of an Exercise chosen from that list and the number of reps. ExerciseSet and Workout have a relationship such that a Workout consists of multiple ExerciseSets. So far, I have set up the data model and loaded in a list of exercises to the Exercise entity. Next, I want the user to create a workout by selecting multiple exercises from the list stored in core data. I want to save each exercise to an ExerciseSet and have the user input reps, weight, etc. I then want to add these ExerciseSets to a Workout and save that into Core Data. Does this data model make sense? What would be the best way to do the next step of adding an exercise to an exercise set? I want the user to be able to view a list of exercises, select multiple, hit "Add", and generate ExerciseSets that allow input for the users reps/weight. Then I want to save all of the ExerciseSets to a single workout for that day. I've tried to use a tableview and a multiple selection picker to save these into an exercise set but haven't been successful. I think of this as similar to a recipe app being able to select ingredients from a list. I've tried a lot of things so far with no success and would greatly appreciate any feedback or suggestions or examples!! Thanks!!
0
0
530
Oct ’22