CURL command with headers stopped working on the latest mac version.
command used to work fine in earlier versions of the Mac OS.
Below command returns error - unkown Header
curl --request GET ‘URL’ --Header ‘Accept-Language:en’ --Header ‘Content-Type: application/json’
Note: If --Header is given in lower case '--header' is seems to be working in the latest version.
Does anyone face this issue and any fix would be really appreciated.
General
RSS for tagDive into the vast array of tools and services available to developers.
Post
Replies
Boosts
Views
Activity
Hello everyone,
I’m encountering an issue with my Swift Testing suite where state changes made in one test method do not persist to another. I am using Swift’s @Suite and @Test annotations to group and serialize my tests, but it seems that the state is not being carried over between the tests. The second function fails with:
Expectation failed: (string → nil) != nil
Here is my example code:
import Testing
@Suite(.serialized)
struct createCheckTests {
var value = 25
var string: String? = nil
@Test("Create string")
mutating func stringCreation() {
#expect(value > 0)
string = "Value is: \(value)"
}
@Test("Check string")
func stringCheck() {
#expect(string != nil, "The string is nil")
print("\(String(describing: string))")
}
}
What is the correct way to approach such a scenario where I want to test two functions that are related, one to generate some value and one to check that generated value against it initial value using Suites to group and isolate them from other tests?
Thanks.
Desde que instalé la versión beta de WatchOS 11, la duración de la batería ha disminuido considerablemente. Antes, la batería duraba 48 horas, pero ahora no alcanza las 24 horas. ¿Alguien más está experimentando este problema?
Hello all, this may not be the right place to get answers for this but not sure where else to put it. Currently we are using the Apple Software lookup service to fetch available iOS updates that can be used to push updates through Declarative Management. This works fine however we have are now running into an issue https://gdmf.apple.com/v2/pmv, does not have a valid SSL certificate, which during the prototyping phase was fine as we turned off SSL cert validation to get the feature to work. Now that we are moving to make this a formal development we need to turn this on, but obviously with the URL having an invalid cert this causes all requests to throw invalid certificate errors (specifically that the root cert isn't trusted, this can also be seen when navigating to the url in a browser. Specifically it returns NET::ERR_CERT_AUTHORITY_INVALID) Is there any chance that the SSL cert for this API can be fixed?
Hello,
Im trying to create a sticker pack app. I have all the png in correct sizes however when running a simulation it does not show up.
objc[19306]: Class CKDetailsTUConversationCell is implemented in both /Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit (0x7ff84276a840) and /Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/Applications/MobileSMS.app/MobileSMS (0x103257b98). One of the two will be used. Which one is undefined.
mkdir: path=/var/mobile/tmp/com.apple.messages/ mode= -rwx------: [2: No such file or directory]
mkdir: path=/var/mobile/tmp/com.apple.messages/ mode= -rwx------: [2: No such file or directory]
setAllowableTypes_block_invoke:1242: *** CGImageSourceSetAllowableTypes - ignoring unknown: 'public.avci'
Received Connection Invalid
mkdir: path=/var/mobile/tmp/com.apple.messages/ mode= -rwx------: [2: No such file or directory]
Synchronous remote object got an error attempting to post setup, reason: Couldn’t communicate with a helper application.
[com.apple.MobileSMS:A5499A70-2351-4FAD-809D-DFD28B804635] Error when getting current app configuration for action identifier ConversationListFocusFilterAction, error='Error Domain=DNDErrorDomain Code=1007 "No current action is available. Supply the caller with the default." UserInfo={NSLocalizedDescription=No current action is available. Supply the caller with the default.}'
Calling -viewWillAppear: directly on a view controller is not supported, and may result in out-of-order callbacks and other inconsistent behavior. Use the -beginAppearanceTransition:animated: and -endAppearanceTransition APIs on UIViewController to manually drive appearance callbacks instead. Make a symbolic breakpoint at UIViewControllerAlertForAppearanceCallbackMisuse to catch this in the debugger. View controller: <CKSearchViewController: 0x10886a400>
XPC error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.coreduetd.knowledge was invalidated: failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.coreduetd.knowledge was invalidated: failed at lookup with error 3 - No such process.}
Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site.
Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site.
Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site.
Invalid absolute dimension, must be > 0.0. NOTE: This will be a hard-assert soon, please update your call site.
Duet query failed: Couldn’t communicate with a helper application.
Synchronous remote object got an error attempting to post setup, reason: Couldn’t communicate with a helper application.
UIColor created with component values far outside the expected range. Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
Error registering for delegate callbacks. Error: Error Domain=SKStatusSubscriptionErrorDomain Code=-4000 "System iCloud account does not exist or is not statuskit capable" UserInfo={NSDebugDescription=System iCloud account does not exist or is not statuskit capable}
Error retrieving subscription for handle. Error: Error Domain=SKStatusSubscriptionErrorDomain Code=-4000 "System iCloud account does not exist or is not statuskit capable" UserInfo={NSDebugDescription=System iCloud account does not exist or is not statuskit capable} handle: <SKHandle: 0x600000005df0; handleString = "+18885551212">
Error fetching subscription service for handle: "+18885551212" Error: Error Domain=SKStatusSubscriptionErrorDomain Code=-4000 "System iCloud account does not exist or is not statuskit capable" UserInfo={NSDebugDescription=System iCloud account does not exist or is not statuskit capable}
Checked bag access permission -- allowed? YES {hasMachAccess: YES, hasEntitlements: YES}
failed to create XPC connection
Unknown invokeXPCSynchronousCallWithBlock error: Error Domain=TransparencyErrorXPC Code=-108 "failed to create XPC connection" UserInfo={NSLocalizedDescription=failed to create XPC connection}
API MISUSE: Resuming an NSURLSessionTask with nil URL.
Task .<1> finished with error [-1002] Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo={NSUnderlyingError=0x600000c93720 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask .<1>"
), NSLocalizedDescription=unsupported URL}
Requested keyboard snapshot but UIKeyboard.usesInputSystemUI returned NO.
Failed to get pid info for pid 0: Operation not permitted
Remote app card controller com.apple.messages.MSMessageExtensionBalloonPlugin:0000000000:com.apple.Stickers.UserGenerated.MessagesExtension timed out during delayed presentation
Failed to get pid info for pid 0: Operation not permitted
unhandled process MobileSMS
Hi!
I've been dealing with mergeable libraries quite some time. However I can't achieve the following scenario:
I have 2 xcframeworks A and B that are merged as part of a third xcframework called C. And my app needs to import something from A and B.
As per the documentation we have to remove the references from A and B from the final app and replace it with C. If I work on the same xcodepoj it works like a charm (maybe because of caches), but if I try to compile C as a separate XCFramework and distribute it as a packed library, the app is not able to resolve the symbols to A and B classes.
This C xcframework is compiled with BUILD_LIBRARY_FOR_DISTRIBUTION se to true and if I check its swiftinterface files it is not declaring the symbols from A and B. However the size of the binary seems to have A and B.
Is there any way to export A and B symbols as part of C's swiftinterface? If I add @_exported, it is forcing me to declare the import of A and B wherever I use them and therefore I'm going to have duplicated symbols
Thanks!
It's said Apple M4 is an ARMv9 chip. I wrote assembly with ARM SVE instructions. And set an iPad M4 simulated device as running target. When execute, it throw "EXC_BAD_INSTRUCTION" error. Does Apple M4 support SVE?
I am trying to learn how to program in R and would like to download a version of the program so that I can use it after my class is over and I lose access to my lab version of R. I went to https://cran.r-project.org/mirrors.html and selected a link in my country and downloaded the arm64.pkg for the most current version, but when I click the installer it tells me that the version cannot be installed on 'this computer'. I have Sonoma 14.5, so I believe it should be able to download. I have the RStudio downloaded as well so I have something to view once I can get the R program up and running.
Does anyone know how to get the R program installed on a mac running on Sonoma 14.5?
After I integrated the Facebook SDK into my app, I encountered an issue where I couldn't install the app after building it.
When trying to install the app through TestFlight, I receive the following error message:
"No se pudo instalar Plus Argentina. No se pudo instalar el perfil. Reintenta."
I've attached a screenshot for reference:
Has anyone experienced a similar issue or does anyone have suggestions on how to resolve this?
Recently I have updated the Xcode version as 15.4 and run my project in the simulator is not working in the 17.5 version and also some time this issue - Building for 'iOS-simulator', but linking in object file resolved and check not yet working the simulator. give any suggestion.Thanks!
I updated to Sequoia beta 1 and seem to have lost the macOS widgetkit simulator. is this expected?
My other mac running sonoma still has the simulator located at:
/System/Library/CoreServices/WidgetKit Simulator.app
trying to launch my widgets from Xcode 16 beta on my mac running sequoia results in this error:
Couldn't find LSBundleProxy for provided bundle identifier: com.apple.widgetkit.simulator
Domain: com.apple.dt.deviceservices.error
Code: 3
User Info: {
DVTErrorCreationDateKey = "2024-06-18 07:51:54 +0000";
IDERunOperationFailingWorker = IDELaunchServicesLauncher;
}
--
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_identifier" = "00008112-0006250411FB401E";
"device_model" = "Mac14,2";
"device_osBuild" = "15.0 (24A5264n)";
"device_platform" = "com.apple.platform.macosx";
"device_thinningType" = "Mac14,2";
"dvt_coredevice_version" = "397.3.5.1";
"dvt_coresimulator_version" = 980;
"dvt_mobiledevice_version" = "1757.0.0.101.1";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 1;
"operation_errorCode" = 3;
"operation_errorDomain" = "com.apple.dt.deviceservices.error";
"operation_errorWorker" = IDELaunchServicesLauncher;
"operation_name" = IDERunOperationWorkerGroup;
"param_debugger_attachToExtensions" = 1;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 1;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.macosx";
"param_diag_113575882_enable" = 0;
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 1;
"param_diag_allowLocationSimulation" = 1;
"param_diag_checker_tpc_enable" = 1;
"param_diag_gpu_frameCapture_enable" = 0;
"param_diag_gpu_shaderValidation_enable" = 0;
"param_diag_gpu_validation_enable" = 0;
"param_diag_memoryGraphOnResourceException" = 0;
"param_diag_queueDebugging_enable" = 1;
"param_diag_runtimeProfile_generate" = 0;
"param_diag_sanitizer_asan_enable" = 0;
"param_diag_sanitizer_tsan_enable" = 0;
"param_diag_sanitizer_tsan_stopOnIssue" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 2;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 0;
"param_launcher_substyle" = 2;
"param_runnable_appExtensionHostRunMode" = 1;
"param_runnable_productType" = "com.apple.product-type.app-extension";
"param_structuredConsoleMode" = 1;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "macosx15.0";
"sdk_osVersion" = "15.0";
"sdk_variant" = macos;
}
--
System Information
macOS Version 15.0 (Build 24A5264n)
Xcode 16.0 (23037.4) (Build 16A5171c)
Timestamp: 2024-06-18T19:51:54+12:00
I'm super excited about the announcement of iPhone Mirroring on macOS.
Will there be a way to communicate with a connected device throughout an API? E.g., will we developers get a way to write automation or interact with the connected device via code?
Continuity is a very useful feature across Apple devices. Recently, I’d like to integrate continuity into my app by invoking sketch from the app. I couldn’t find an API for this, nor can I can find the program invoked when I right click on finder and try to add a drawing from my iPad. My two questions are:
Is the feature officially supported for development use?
In general, is it possible to trace what programs are called when I invoke a feature through the MacOS GUI?
//
// ContentView.swift
// HardApp
//
// Created by Besleaga Alexandru Marian on 14.06.2024.
//
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
// A SwiftUI preview.
#Preview { Use of unknown directive '#Preview'
// The view to preview.
}
I'm trying to learn Xcode and got stuck on these error that I receive when trying to apply the macro #Preview, how can declare the directive so I can use it in my own code for the preview it offers ?
Kind Regards
i click to open the beta and pops up the license agreement dialogue. i click agree and it asks me to either confirm on my apple watch or by entering my password. i have tried both and neither close the dialogue. im not able to get past this to test the software. anyone else running across this? anyone know of a fix?
tia
I used Xcode 16 beta 1
I would like to import the AccessorySetupKit introduced at the wwdc24 event
it can imported iOS target source, but can't imported in my local package, ControllerKit
what should I do ?
why can't import local package ?
I am developing "Thumbnail Extension" and "Quick Look Preview Extension" on Mac Apple M2 with Sonoma 14.5
These extension need 3rd party dynamic lib. (This .dylib I develop in Delphi FMX on Windows computer for macOS.ARM 64-bit architecture)
I was able to drag & drop this .dylib to "Thumbnail Extension" target in XCode, "Embed & Sign" on "General" tab and then use dllopen/dlsym/dclose to use it in .swift code - and it works as expected, generating thumbnails for my custom extension files.
However the same steps do not work for "Quick Look Preview Extension" target:
The .dylib is drag & drop added to this target of my XCode project, "Embed & Sign" on "General" tab and build & run.
I obtain "Previewer not found." dialog when SPACE-key viewing a file in Finder. (This happens even without calling dllopen/dlsym/dclose in my code.)
After removing the .dylib from target "Quick Look Preview Extension" it works and shows my simple "generic hello world" graphic as Preview.
I have checked the container of app bundle on disk to make sure that .dylib is on correct place, and it is:
my.app/Contents/Plugins/Previewer.appex/Contents/Frameworks/libmydll.dylib
The size of this .dylib is 13.5 MB
The .appex and .dylib are both signed, using "Development" signing certficate.
I am confused why this .dylib is working for "Thumbnail Extension" but not for "Quick Look Preview Extension". It seems to me that due to some reason system rejects to load this extension as soon as it contains .dylib, even without accessing it from my code.
With Swift, SwiftUI and Swift Charts and many other tools (Swift Tests, swift accelerate, etc), Apple needs to create a Jupyter notebook like (but better), helping Scientific and AI programming stepping through different hypotheses and tests.
Thanks
Hey,
I’m an iPhone user of nearly 4 months, and recently, I found out about the iOS 18 developer version. I wanted to try it, so I bought an iCloud subscription and backed up my phone. I downloaded the update overnight through the settings app, and when I woke, it prompted me to restart or along those lines, to which it showed the apple logo and a progress bar as per usual.
I didn’t even notice a difference between 17 and 18 until I swiped down to get to the control panel, and instantly, I wanted to switch back. I could no longer see features like my over $300 AirPod’s volume decibel amount; something I use on a regular basis to make sure I’m not developing hearing loss.
So, when I got home from school later that day, I looked at the official Apple guide to downgrading to a previous iCloud version.
Following the featured steps, I factory reset the iPhone through the General > Transfer or Reset iPhone > Erase all content and settings. I made sure to skip the automatic backup this process created.
Then, after it was finished resetting, I followed the standard iPhone setup process until it asked me if I had a backup. I clicked it, signed in with my Apple ID, then clicked “Show All Versions” (as to not backup with an iPhone 18 beta backup) and clicked on my backup from the night prior.
Then, it went to the black screen with the Apple logo and a progress bar again, and a few minutes later, the phone booted up. It all seemed normal, up until I saw the iOS 18 control center. I did this whole process again just to make sure I didn’t accidentally mess the procedure up, but I got the same result.
Can anyone help me with this?
Thanks in advance, Gray (posting this here because usual apple forums remove anything mentioning developer things)
Unlike Xcode 15 where it's easy in source control to type in a commit message and then do the actual commit in git, in Xcode 16 there doesn't seem to be anywhere to do this.
Yes, in the beta I can do a menu select to go to 'commit changes...', and I found the new way to stage changes. So far so good. But where is the 'commit' button to complete a commit?
Is anyone else finding this an issue?