So turns out the Apple maps api wasn’t loaded properly the 10 times I tried before this post. The 11th time it worked and autocompletion of the field also worked.
Post
Replies
Boosts
Views
Activity
I agree... HealthKit and the Health app for iPadOS and macOS would be very nice to have!
The Text and Button elements in SwiftUI are automatically localisable.
Text("Hello World!")
or with a variable
let hello = LocalizedStringKey("Hello")
Add Localizable.strings to your project.
English
"Hello World!" = "Hello World!";
"Hello" = "Hello";
German
"Hello World!" = "Hallo Welt!";
"Hello" = "Hallo";
I have the same problem with Xcode 11.5
Only for the iOS app of the project. The Mac version in the same Xcode project just worked.
Uploading in Xcode 12 works normally (you can't submit apps for review yet > "ITMS-90111: Invalid Toolchain")
#FB7787901
Duplicate >> https://developer.apple.com/forums/thread/651035
Same here... but the Mac version of the app in the same Xcode project just worked fine. Only an issue with the iOS version of the app.
From Aiiboo:
then I did this: Install the "Transporter" app from the macOS App Store.
OPEN Xcode 11.5 archive your project
Close Xcode 11.5 -> Command + Q
Open then Xcode 12 Beta
From Xcode's organizer, select your archive and press "Distribute App"
Instead of "Upload", select "Export" and proceed as usual.
Drop the exported .ipa into the transporter and press "Deliver". Source https://developer.apple.com/forums/thread/650490?page=2
From Aiiboo:
then I did this: Install the "Transporter" app from the macOS App Store.
OPEN Xcode 11.5 archive your project
Close Xcode 11.5 -> Command + Q
Open then Xcode 12 Beta
From Xcode's organizer, select your archive and press "Distribute App"
Instead of "Upload", select "Export" and proceed as usual.
Drop the exported .ipa into the transporter and press "Deliver". Source: https://developer.apple.com/forums/thread/650490?page=2
From Aiiboo:
then I did this: Install the "Transporter" app from the macOS App Store.
OPEN Xcode 11.5 archive your project
Close Xcode 11.5 -> Command + Q
Open then Xcode 12 Beta
From Xcode's organizer, select your archive and press "Distribute App"
Instead of "Upload", select "Export" and proceed as usual.
Drop the exported .ipa into the transporter and press "Deliver". Source: https://developer.apple.com/forums/thread/650490?page=2
From Aiiboo:
then I did this: Install the "Transporter" app from the macOS App Store.
OPEN Xcode 11.5 archive your project
Close Xcode 11.5 -> Command + Q
Open then Xcode 12 Beta
From Xcode's organizer, select your archive and press "Distribute App"
Instead of "Upload", select "Export" and proceed as usual.
Drop the exported .ipa into the transporter and press "Deliver". Source: https://developer.apple.com/forums/thread/650490?page=2
From Aiiboo:
then I did this: Install the "Transporter" app from the macOS App Store.
OPEN Xcode 11.5 archive your project
Close Xcode 11.5 -> Command + Q
Open then Xcode 12 Beta
From Xcode's organizer, select your archive and press "Distribute App"
Instead of "Upload", select "Export" and proceed as usual.
Drop the exported .ipa into the transporter and press "Deliver". Source: https://developer.apple.com/forums/thread/650490?page=2
From Aiiboo:
then I did this: Install the "Transporter" app from the macOS App Store.
OPEN Xcode 11.5 archive your project
Close Xcode 11.5 -> Command + Q
Open then Xcode 12 Beta
From Xcode's organizer, select your archive and press "Distribute App"
Instead of "Upload", select "Export" and proceed as usual.
Drop the exported .ipa into the transporter and press "Deliver". Source: https://developer.apple.com/forums/thread/650490?page=2
From Aiiboo:
then I did this:Install the "Transporter" app from the macOS App Store.
archive your project
OPEN Xcode 11.5 archive your project
-> Command + Q
Close Xcode 11.5 -> Command + Q
Open then Xcode 12 Beta
From Xcode's organizer, select your archive and press "Distribute App"
Instead of "Upload", select "Export" and proceed as usual.
Drop the exported .ipa into the transporter and press "Deliver". Source:
https://developer.apple.com/forums/thread/650490?page=2
From Aiiboo:
then I did this:Install the "Transporter" app from the macOS App Store.
archive your project
OPEN Xcode 11.5 archive your project
-> Command + Q
Close Xcode 11.5 -> Command + Q
Open then Xcode 12 Beta
From Xcode's organizer, select your archive and press "Distribute App"
Instead of "Upload", select "Export" and proceed as usual.
Drop the exported .ipa into the transporter and press "Deliver". Source:
https://developer.apple.com/forums/thread/650490?page=2
Solved! Thanks to Asperi pointing to this QA: https://stackoverflow.com/a/59345830/12299030
import SwiftUI
import CoreData
struct ContentView: View {
@Environment(\.managedObjectContext) private var viewContext
@AppStorage("firstLaunch") var firstLaunch: Bool = true
@State var sortDescriptor: NSSortDescriptor = NSSortDescriptor(keyPath: \Test.title, ascending: true)
@State private var sortType: Int = 0
var body: some View {
Picker(selection: $sortType, label: Text("Sort")) {
Text("Title").tag(0)
Text("Date").tag(1)
}
.pickerStyle(SegmentedPickerStyle())
.onChange(of: sortType) { value in
sortType = value
if sortType == 0 {
sortDescriptor = NSSortDescriptor(keyPath: \Test.title, ascending: true)
} else {
sortDescriptor = NSSortDescriptor(keyPath: \Test.date, ascending: true)
}
}
ListView(sortDescripter: sortDescriptor)
.onAppear(perform: {
if firstLaunch == true {
let newEntry1 = Test(context: self.viewContext)
newEntry1.title = "Apple"
newEntry1.date = Date(timeIntervalSince1970: 197200800)
let newEntry2 = Test(context: self.viewContext)
newEntry2.title = "Microsoft"
newEntry2.date = Date(timeIntervalSince1970: 168429600)
let newEntry3 = Test(context: self.viewContext)
newEntry3.title = "Google"
newEntry3.date = Date(timeIntervalSince1970: 904903200)
let newEntry4 = Test(context: self.viewContext)
newEntry4.title = "Amazon"
newEntry4.date = Date(timeIntervalSince1970: 773402400)
if self.viewContext.hasChanges {
try? self.viewContext.save()
}
firstLaunch = false
}
})
}
}
struct ListView: View {
@FetchRequest var items: FetchedResults<Test>
@Environment(\.managedObjectContext) var viewContext
init(sortDescripter: NSSortDescriptor) {
let request: NSFetchRequest<Test> = Test.fetchRequest()
request.sortDescriptors = [sortDescripter]
_items = FetchRequest<Test>(fetchRequest: request)
}
var body: some View {
List {
ForEach(items) { item in
let dateString = itemFormatter.string(from: item.date!)
HStack {
Text(item.title!)
Spacer()
Text(dateString)
}
}
}
}
}
private let itemFormatter: DateFormatter = {
let formatter = DateFormatter()
formatter.dateStyle = .short
formatter.timeStyle = .none
return formatter
}()