I am only able to upgrade from Ventura to Sonoma.
I don't want to upgrade, I would like to download the installer so that I can install Sonoma on a separate Volume instead of upgrading.
Am I missing something?
I only see an option to upgrade and the developer website only allows me to download a IPSW file. I have only 1 Mac and I am not sure how I can use the IPSW file to install macOS Sonoma.
Any help would be much appreciated, thanks
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
Hi,
Overview:
My app's icon uses Display P3 colors.
The PNG when opened in Preview seems to have the correct colours, but when added to Asset catalog as App icon, the installed app's app icon doesn't have the correct colors.
The Preview app's inspector shows the following:
Colour Model: RGB
Depth: 16
DPI Height: 72
DPI Width: 72
Orientation: 1 (Normal)
Pixel Height: 1,024
Pixel Width: 1,024
Profile Name: Display P3
Steps followed:
I have an app icon that uses the Display P3 color profile.
In Sketch, I have assigned the P3 Display color profile, exported as PNG.
Realised it was using only 8 bits / channel color depth.
So opened PNG in Pixelmator and changed color depth to 16 bits / channel and exported the PNG.
The PNG when opened in Preview seems to have the correct colours, but when used in
I even tried to use Display P3 Gamut in asset catalog and provide the same icon for sRGB and Display P3, yet the installed app's icon's colors don't match
Questions:
What should I do to correct this problem?
Any help would be much appreciated.
Hi,
Overview
I am using Xcode Cloud for my multi platform app.
The macOS test case fails, however the iOS test case runs and succeeds.
I don't have any UI test cases written, the test case are simple and have nothing platform (macOS) specific.
Questions
What can I do to fix this?
Is there any user privileges needed to launch the macOS app for testing? I ask because when I ran the UI tests locally it launched the app and asked for my macOS user password. Just wondering if that is the reason it didn't launch in Xcode Cloud.
Error:
<Appname> encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Volumes/workspace/resultbundle.xcresult.(Underlying Error: Could not launch "AppnameTests. The LaunchServices launcher has returned an error. Please check the system logs for
the underlying cause of the error. (Underlying Error: The operation couldn't be completed. Launch failed. (Underlying Error: Launch job spawn failed) )))
× Could not launch "<Appname>"
× Could not launch "AppnameTests"
× AppnameUITests.testExample()
Failed to get launch progress for <XCUIApplicationImpl: 0x600000564630 <BundleID> at /Volumes/workspace/TestProducts/Debug-Dev/<Appname>.app>: Could not launch "app name". The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn't be completed. Launch failed. (Underlying Error: Launch job spawn failed))
AppnameUITests.swift:28
* AppnameUITests.testLaunchPerformance)
Failed to get launch progress for «XCUIApplicationimpl: 0x60000054630 <BundleID> at /Volumes/workspace/TestProducts/Debug-Dev/<Appname>.apps: Could not launch "<Appname>". The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn't be completed. Launch failed. (Underlying Error: Launch job spawn failed))
AppnameUITests.swift:37 g
* AppnameUITestsLaunchTests.testLaunch)
Failed to get launch progress for «XCUIApplicationimpl: 0x60000054630 <BundleID> at /Volumes/workspace/Testroducts/Debug-Dev/<Appname>.apps: Could not launch "<Appname>". The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn't be completed. Launch failed.
Overview
I am using Xcode Cloud to create builds.
It contains 2 post actions:
TestFlight Internal Testing - Succeeded
TestFlight External Testing - Failed
Error
Xcode doesn't display the exact error it only shows the status as Not Submitted for Beta Review
When I checked AppStoreConnect > TestFlight I saw the status as Read to Submit. When I manually tried to add external testers to the build using AppStoreConnect website, then I got the error: You can only submit two builds per day to Beta App Review.
Questions
This seems like a very odd limitation. How do we test multiple builds?
Why isn't Xcode the exact error? It only shows Not Submitted for Beta Review
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
TestFlight
Xcode Cloud
Hi,
I have Xcode Cloud setup for external testers to test my app which is not yet released on the App Store.
It is a multi platform app, the iOS app is successful and is available for testing.
TestFlight External Testing - macOS (Post-Actions) status:
iOS: Successful (available for external testers)
macOS: Failed -
Beta app review submission failed (Submission limit has been reached.)
Developer Server Status doesn't seem to show any outages.
It would be great if it could be fixed and also if it is related to Apple Server issues it would be great if this is also tracked so that it is more transparent and is alerted to the relevant team to be fixed
@Jason could you help with this, many thanks!
Overview
I have a SwiftUI list with a search field
I would like to add a keyboard shortcut for search field to be in focus
Questions:
How can I add a keyboard shortcut for search field?
import SwiftUI
struct ContentView: View {
@State private var searchText = ""
var body: some View {
NavigationStack {
List(0..<100) { index in
Text("Cell \(index)")
}
.searchable(text: $searchText)
}
}
}
Overview:
I am logging some messages using Logger
I would like these messages to be printed on to Xcode without the timestamp and other details
I want only the message to be displayed
Questions:
How can I display only the message on the Xcode console (see preferred output)?
Is there a setting in Xcode to remove the timestamp prefix?
Is there an alternate approach?
Note:
I need to use Logger because this app would be released, so print is not an option.
Example Code
import SwiftUI
import os
struct ContentView: View {
let logger = Logger(subsystem: "MyApp", category: "MyCategory")
var body: some View {
Text("Hello, world!")
.onAppear {
logger.debug("content view displayed")
}
}
}
Actual Output:
2022-11-25 18:41:10.116408+0800 Demo[36175:5518724] [MyCategory] content view displayed
Preferred Output:
One of the following would be ideal:
content view displayed
Demo[36175:5518724] [MyCategory] content view displayed
My Failed Attempt
I event tried to use print in debug mode, but couldn't make it compile:
Following is my failed attempt:
import os
#if DEBUG
struct Logger {
let subsystem: String
let category: String
func debug(_ message: String) {
print(message)
}
//This will not help:
// func debug(_ message: OSLogMessage) {
// print(message)
// }
}
#endif
Hi,
I have a Mac app that uses calendar. When the user has not granted access and still wants to access the calendar I would like to open System Settings Privacy and Security pane for calendar on the mac. How can I do this?
Is it ok to open system settings this way?
Or is there a better way?
I would like to publish this app to the AppStore so want to know if this is ok?
if let urlString = URL(string: "x-apple.systempreferences:com.apple.preference.security?Privacy_Calendars") {
NSWorkspace.shared.open(urlString)
}
Overview
I have a 3 column NavigationSplitView
On iPad I would like to detect if the sidebar (red) / content (green) is a slide over
I don't want to rely on orientation as it is possible to have multiple apps side by side and that can change the view size
Questions:
On iPad, how can I detect if sidebar (red) / content (green) is a slide over?
Or is there an alternate approach?
Code:
struct ContentView: View {
@State private var splitViewVisibility = NavigationSplitViewVisibility.automatic
var body: some View {
NavigationSplitView(columnVisibility: $splitViewVisibility) {
Color.red
} content: {
Color.green
} detail: {
Color.blue
}
}
}
Screenshot
Slide over
Not Slide Over
Overview
On macOS when a user clicks on the date in a date picker field a pop up opens with options to select the date if the user taps on Esc key, then there is no option to select that field or any other field.
Feedback: FB11812450
Questions:
Am I missing something?
Is this a bug? (Feedback: FB11812450)
Steps to reproduce
Run the code (see below) on macOS
Click on the date portion of the date picker field
A pop up opens
Press the Esc key
Actual Behaviour
You can't select the date picker again to change the date.
Expected Behaviour
When the the escape key is pressed the popup should close and the date picker and other text fields should be selectable again.
Code
struct ContentView: View {
@State private var date = Date()
@State private var note = "hello world"
var body: some View {
VStack {
DatePicker("Birthday", selection: $date)
TextField("Note", text: $note)
}
}
}
Hi,
When using NSPersistentCloudKitContainer lots of error / debug messages are shown in Xcode Debug area.
Feedback FB11794798:
Overview
When I use NSPersistentCloudKitContainer I get the following error / debug messages printed on the Xcode Debug Area.
Syncing seems to happen fine.
Tested on device and simulator.
I am still using Development (not deployed to Production yet)
I even tried with a new project using the default code generated for by enabling CloudKit coredata sync and I still get the same messages.
I have filed a feedback FB11794798
Steps to Reproduce
Create a new project check Use CoreData and Host in CloudKit check boxes
Run the project
Notice the error messages shown below.
Questions
How to resolve these errors?
Or is this a bug from the Apple Frameworks? (Feedback FB11794798)
Error / debug message printed on Xcode debug area
CoreData: debug: CoreData+CloudKit: -[PFCloudKitOptionsValidator validateOptions:andStoreOptions:error:](36): Validating options: <NSCloudKitMirroringDelegateOptions: 0x600000760510> containerIdentifier:<MyContainerID> databaseScope:Private ckAssetThresholdBytes:<null> operationMemoryThresholdBytes:<null> useEncryptedStorage:NO useDeviceToDeviceEncryption:NO automaticallyDownloadFileBackedFutures:NO automaticallyScheduleImportAndExportOperations:YES skipCloudKitSetup:NO preserveLegacyRecordMetadataBehavior:NO useDaemon:YES apsConnectionMachServiceName:<null> containerProvider:<PFCloudKitContainerProvider: 0x600003764210> storeMonitorProvider:<PFCloudKitStoreMonitorProvider: 0x600003764220> metricsClient:<PFCloudKitMetricsClient: 0x600003764230> metadataPurger:<PFCloudKitMetadataPurger: 0x600003764240> scheduler:<null> notificationListener:<null> containerOptions:<null> defaultOperationConfiguration:<null> progressProvider:<NSPersistentCloudKitContainer: 0x60000205d200> test_useLegacySavePolicy:YES archivingUtilities:<PFCloudKitArchivingUtilities: 0x600003764250> bypassSchedulerActivityForInitialImport:NO
storeOptions: {
NSInferMappingModelAutomaticallyOption = 1;
NSMigratePersistentStoresAutomaticallyOption = 1;
NSPersistentCloudKitContainerOptionsKey = "<NSPersistentCloudKitContainerOptions: 0x600003b3a190>";
NSPersistentHistoryTrackingKey = 1;
NSPersistentStoreMirroringOptionsKey = {
NSPersistentStoreMirroringDelegateOptionKey = "<NSCloudKitMirroringDelegate: 0x600000c642a0>";
};
NSPersistentStoreRemoteChangeNotificationOptionKey = 1;
}
CoreData: debug: CoreData+CloudKit: -[NSCloudKitMirroringDelegate observeChangesForStore:inPersistentStoreCoordinator:](416): <NSCloudKitMirroringDelegate: 0x600000c642a0>: Observing store: <NSSQLCore: 0x14080aec0> (URL: file:///Users/<my home folder>/Library/Group%20Containers/group.<app name>/<filename>.sqlite)
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _setUpCloudKitIntegration](562): <NSCloudKitMirroringDelegate: 0x600000c642a0>: Successfully enqueued setup request.
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest](3209): <NSCloudKitMirroringDelegate: 0x600000c642a0>: Checking for pending requests.
CoreData: CloudKit: CoreData+CloudKit: -[NSCloudKitMirroringDelegate checkAndExecuteNextRequest]_block_invoke(3222): <NSCloudKitMirroringDelegate: 0x600000c642a0>: Executing: <NSCloudKitMirroringDelegateSetupRequest: 0x600001643f20> D3975DD0-1198-40F2-9D6A-B9994B9710B6
CoreData: debug: CoreData+CloudKit: -[PFCloudKitMetadataModelMigrator calculateMigrationStepsWithConnection:error:](446): Skipping migration for 'ANSCKDATABASEMETADATA' because it already has a column named 'ZLASTFETCHDATE'
Overview
I have a swift package that I have added to the app target.
On the app extension (widget) target I have added the same package under Frameworks and Libraries.
I am able to archive successfully when I do it manually
When I start a build using Xcode Cloud I get the following errors:
Error:
An internal error was detected which caused this stage to error. The error has been logged, and you can re-run this build again.
Resolve package dependencies
Command exited with non-zero exit-code: 74
fatal: could not read Username for 'http://github.com': terminal prompts disabledan out-of-date resolved file was detected at /Volumes/workspace/repository/<app name>.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved, which is not allowed when automatic dependency resolution is disabled; please make sure to update the file to reflect the changes in dependencies. Running resolver because the following dependencies were added: '<package name>' (https://github.com/<user name>/<package name>.git)2022-11-11 01:21:37.643 xcodebuild[2273:9107] Writing error result bundle to /var/folders/hf/lmqg8qtx531_sq5gwgt5s3ch0000gn/T/ResultBundle_2022-11-11_01-21-0037.xcresult
Make sure that Package.resolved is up to date on the '<branch name>' branch, and that this branch has been pushed to your remote repository.
Save artifacts
Upload <app name> Build 16 Logs for <app name> archive
An internal error occurred while this artifact was being saved.
Questions:
Am I missing something?
How do I resolve this issue?
Is it because of a server issue?
Overview
On macOS, in a NavigationSplitView when the menu button is added to the detail view toolbar, it seems to look disabled
Environment
Xcode: 14.1 beta 3 (14B5033e)
macOS: 13.0 Beta (22A5365d)
Code:
struct ContentView: View {
@State private var selectedNumber: Int?
var body: some View {
NavigationSplitView {
List(0..<100, selection: $selectedNumber) { number in
Text("cell \(number)")
}
} detail: {
Text("Detail")
.toolbar {
ToolbarItem {
Menu {
Button("aa") {}
Button("bb") {}
} label: {
Label("Add Bookmark", systemImage: "book")
}
}
}
}
}
}
Steps to reproduce:
Run the project on macOS
Select cell 0 on the sidebar
Click on the book toolbar button and notice the menu appear
Select cell 1 on the sidebar
Expected Behaviour
After step 4, the book toolbar button should look prominent (like it is enabled)
Actual Behaviour
After step 4, the book toolbar button looks like it is disabled.
Screenshot
Hi,
I have an Xcode project that uses Xcode 14.0 beta 6 (14A5294g).
How to make Xcode Cloud compile code compiled in Xcode beta?
My code uses beta APIs that doesn't seem to compile on Xcode Cloud (throws compilation errors)
Am I missing something as this would be a common scenario for many developers?
How do I make the beta APIs compile on Xcode Cloud?
Overview
I have an existing Xcode project that works fine with Xcode Cloud
I have a separate branch on to which I have migrated and made changes for Xcode 14
On the same branch I have made some code changes that is supported by Swift 5.7
Example:
var price: Int? = 100
guard let price else {
return
}
Problem
Xcode code build fails with the error Variable binding in a condition requires an initializer
Question:
Is it possible to build Xcode Cloud on Swift 5.7 or Xcode 14?