Post not yet marked as solved
I'm getting these log messages:
+[CATransaction synchronize] called within transaction
whenever I spawn or resize and NSOpenPanel (or save panel).
To investigate, I created the simplest possible test app, with no window and only this method that I override in AppDelegate.m:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSOpenPanel *panel = NSOpenPanel.openPanel;
panel.allowedFileTypes = @[@"public.plain-text"];
[panel beginWithCompletionHandler:^(NSModalResponse result) {
}];
}
This is basically all the code I added. And this still triggers the warning message above.
The message is also posted whenever I resize the panel.
I wasn't getting these messages before updating to Ventura.
What am I doing wrong?
Post not yet marked as solved
I am working with a BLE peripheral that tracks heart rate. I can sync the data to HealthKit when the app is running and it is working fine.
I would like to send the heart rate to HealthKit without user opening the app. It is mentioned in the documentation that the direct import of data is possible from Bluetooth LE heart rate monitors to HealthKit.
Link : https://developer.apple.com/documentation/healthkit/hksource?language=objc
Any help would be greatly appreciated.
Post not yet marked as solved
Hi. I'm currently using WKWebView to load our application's SSO page through Microsoft and I'm need to access the device identity certificates for the NSURLAuthenticationMethodClientCertificate in order to bypass MFA via device trust. I've read it would be easier with SFSafariViewController, but that's not an option for me, as I need to set custom cookies prior to loading the page, a thing which I understand is not possible with SF. Is there any way to access these certificates through WKWebView? Or is there anything else I can use that would let me both set custom cookies and access device identity certificates?
Post not yet marked as solved
The device UDID was registered to the developer account 40 hours ago, the STATUS column was "processing" in the first 24 hours, then turned to empty.
But I still can't run my app (with distribution method "development"), when I try to run it after download it through my OTA URL, it prompts “the app cannot be installed because its integrity could not be verified” but everything runs good on a iPhone which was registered a month ago.
What should I do now? keep waiting?
Post not yet marked as solved
I am trying to build an Xcode project for my iPad and can't follow the documentation with my current developer account. My account is not enrolled in the apple developer program (I was under the impression there would be a 'free tier' but I can't seem to find it).
I've been following the documentation to distribute my app and it requires me to go to the Certificates, IDs & Profiles page in order to register my device and make a certificate. When I try and go there I get the following error: "Unable to find a team with the given Team ID 'XXXXXXX' to which you belong."
Does anyone have steps/instructions so that I can get this app onto my iPad for testing, or knowledge for a 'free tier'/enrollment into the Apple Developer Program?
Post not yet marked as solved
We have experienced an issue where users that have deleted their account later accidentally (we guess...) re-activate their monthly subscription using the Subscription management screen in iOS.
Is there anyway to control this?
Post not yet marked as solved
I am using a WebView to render a couple of HTML pages which I do not have any control over. Unfortunately the rendered HTML appears very small on a typical iphone screen. What can I do to zoom, or scale, or change the resolution of the WebView to make the content appear larger?
I have investigated .scaleFactor(), but that does a sort of "raster"-scale, which means the content becomes pixelated and the content does not "flow" to fit the viewport (i.e. there is no effective "adaptive web design"). Also, .scaleFactor() moves the view around in odd ways such as falling off the edges of the screen or eclipsing other adjacent views which were not eclipsed before the scaling is performed.
What options (besides scaleFactor() on a WebView) do I have to make my HTML content appear larger?
Thanks in advance.
Post not yet marked as solved
This issue seems to have happened to other users around 1 year ago and there was no real solution shown. Is anyone else having this issue? Tried 2 different browsers.
Post not yet marked as solved
App reviewers keeps rejecting my app. I kindly requested many many times to let me know what device they tested on because I tested on all devices and can't seem to reproduce UI bug they are seeing. No response.
How about just letting us know which device was used to test along with screenshots?
Post not yet marked as solved
We're seeing MPTCP traffic on the VPN's utun interface which does not match the IP routes defined in the network settings at VPN connection time.
The routes defined at connection time are all private IP address spaces (10., 192.168. etc.), but we're getting MPTCP traffic destined for some AWS addresses.
Is there any known issue with MPTCP routing & VPNs on macOS/iOS?
Post not yet marked as solved
After upgrading my iPhone 13 Pro Max to iOS 16.2, I started getting the below error when trying to run my app via Xcode. Not 100% certain that was the cause but there's strong correlation. I'd love any guidance on additional troubleshooting; thank you!
Things I've tried that haven't fixed the problem (mostly via searching this board):
Upgrading Xcode and MacOS
Disabling/enabling my device in Certificates, Identifiers & Profiles
Disabling device in Certificates, Identifiers & Profiles and allowing Xcode to re-enabling it by attempting to Run on device
Creating a new development profile in Certificates, Identifiers & Profiles
Manually installing a development profile on the device via Xcode -> Devices and Simulators -> Connected -> Device -> Show Provisioning Profiles
Unpairing and pairing device
Switching off/on developer mode on device
Restarting the device and computer
Cleaning build folder
Signing in/out of the account in xcode
Switching on/off "Automatically manage signing"
Xcode "Download Manual Profiles"
Delete DerivedData folder
What does work:
Ad Hoc installing app (ad hoc profile does also appear on device)
Details
Unable to install "[appname]"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
User Info: {
DVTErrorCreationDateKey = "2023-01-06 00:27:00 +0000";
IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
A valid provisioning profile for this executable was not found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
User Info: {
DVTRadarComponentKey = 487925;
MobileDeviceErrorCode = "(0xE8008015)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000010c696c90 DTDKCreateNSErrorFromAMDErrorCode + 235
1 DTDeviceKitBase 0x000000010c6d32ee __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x00000001020c1e01 DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x000000010c6d3016 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1409
4 IDEiOSSupportCore 0x000000010c5aa7a0 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.301 + 3520
5 DVTFoundation 0x00000001021f7a09 __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x00000001021f851d __DVTDispatchAsync_block_invoke + 196
7 libdispatch.dylib 0x00007ff80a3dc7fb _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007ff80a3dda44 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007ff80a3e3ac4 _dispatch_lane_serial_drain + 694
10 libdispatch.dylib 0x00007ff80a3e45b4 _dispatch_lane_invoke + 366
11 libdispatch.dylib 0x00007ff80a3eead7 _dispatch_workloop_worker_thread + 762
12 libsystem_pthread.dylib 0x00007ff80a559ce3 _pthread_wqthread + 326
13 libsystem_pthread.dylib 0x00007ff80a558c67 start_wqthread + 15
);
}
--
Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "iPhone14,3";
"device_osBuild" = "16.2 (20C65)";
"device_platform" = "com.apple.platform.iphoneos";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 5576;
"operation_errorCode" = "-402620395";
"operation_errorDomain" = "com.apple.dt.MobileDeviceErrorDomain";
"operation_errorWorker" = IDEInstalliPhoneLauncher;
"operation_name" = IDEiPhoneRunOperationWorkerGroup;
"param_consoleMode" = 0;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 5;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.iphoneos";
"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" = 0;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 0;
"param_launcher_substyle" = 0;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_runnable_type" = 2;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos16.2";
"sdk_osVersion" = "16.2";
"sdk_variant" = iphoneos;
}
--
System Information
macOS Version 13.1 (Build 22C65)
Xcode 14.2 (21534) (Build 14C18)
Timestamp: 2023-01-05T16:27:00-08:00
Post not yet marked as solved
I am sharing pkpass using UIActivityViewController. It works fine in all other options except Message app. When I select Message option the app crashes. When I debug for the reason I found following in console.
No "UIViewServicePermittedViewControllerClasses" array in View Service bundle "com.apple.mobilesms.compose"'s Info.plist. Cannot check validity of request for class "CKSMSComposeViewServiceController". This will become failure in a future build.
Post not yet marked as solved
Our Apple maps listing shows that information for a completely different business including critical aspects like the website and photos. There's even a prompt to download the app of another business. There's nowhere in the Apple Business Register to change these things, where do I go? I already reported an issue but even there you can only request to change the website URL.
It also incorrectly says we're permanently closed even though we have it marked as open in the Apple Business Register. The only correct things are the phone number and address. How do I fix this? Apple support hasn't gotten back to me in almost 2 weeks and this. is very urgent.
Thank you!
Post not yet marked as solved
I've got a notification service extension which uses quite a lot of memory when it runs.
Its using UIGraphicsImageRenderer:image() to create an image based on the push payload, and that that is a very memory hungry function.
When the extension receives a push it uses less than the 25MB memory limit for extensions and its successful and runs to completion. However the next push that gets receives crashes due to memory not being freed (it doesn't matter if several minutes elapses between pushes).
After its crashed its successful once more (the action of it crashing must obviously be freeing up the memory, so after a crash there's enough memory to run again, but then the next push after that will crash and so on and so on).
I've run the extension interactively in Xcode's debugger to observe this behavior, but it also happens when running independently of Xcode (and thus lifetimes of things aren't being kept alive by the Xcode debugger).
As my extension has no control over the creation/destruction lifecycle of UNNotificationServiceExtension, is there anything that can be done to force the OS/UNNotificationServiceExtension to fully unload and release all its resources?
Post not yet marked as solved
Hello, Does anyone have any info on how long the program enrollment process takes. We enrolled over three weeks ago and not received any notification.
Post not yet marked as solved
Hi,
The metal-cpp distribution appears to only contain headers for Foundation and Quartzcore. The LearnMetalCPP download [1] provides a ZIP with an metal-cpp-extensions directory containing AppKit.hpp and MetalKit.hpp headers. First question: Are these headers distributed anywhere else more publicly? Without these headers only the renderer can be fully written in C++ as far as I can tell, i.e. no complete C++ NSApplication. Second question: Will these headers, if needed, be maintained (e.g. updated and/or extended) by Apple along side metal-cpp?
[1] https://developer.apple.com/metal/cpp/
Thank you and regards.
Post not yet marked as solved
My code is
import SwiftUI
struct ContentView: View {
var emojis = ["🚂", "🤡", "🚀", "🚁", "🚕", "😅", "✅", "👍", "🥳", "🎃"]
@State var emojiCount = 6
var body: some View {
VStack {
ScrollView {
LazyVGrid(columns: [GridItem(.adaptive(minimum: 65))]) {
ForEach(emojis[0..<emojiCount], id: \.self) { emoji in
CardView(content: emoji).aspectRatio(2/3, contentMode: .fit)
}
}
}
.foregroundColor(.red)
Spacer()
HStack {
remove
Spacer()
add
}
.font(.largeTitle)
.padding(.horizontal)
}
.padding(.horizontal)
}
var remove: some View {
Button(action: {
if emojiCount > 1 {
emojiCount -= 1
}
}, label: {
Image(systemName: "minus.circle")
})
}
var add: some View {
Button {
if emojiCount < emojis.count {
emojiCount += 1
}
} label: {
Image(systemName: "plus.circle")
}
}
}
struct CardView: View {
var content: String
@State var isFaceUp: Bool = true
var body: some View {
ZStack {
let shape = RoundedRectangle(cornerRadius: 20)
if isFaceUp {
shape.fill().foregroundColor(.white)
shape.strokeBorder(lineWidth: 3)
Text(content)
.font(.largeTitle)
} else {
shape.fill()
}
}
.onTapGesture {
isFaceUp = !isFaceUp
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
.preferredColorScheme(.light)
ContentView()
.preferredColorScheme(.dark)
}
}
Then I get
Actually, the spacing between rows is too large, I want the spacing between rows to be the same as the spacing between columns.
If I make all cards from
shape.fill().foregroundColor(.white)
shape.strokeBorder(lineWidth: 3)
Text(content)
.font(.largeTitle)
to
shape.fill()
shape is RoundedRectangle. Then I get the right row spacing that I want
If I delete `Text(content).font(.largeTitle), I will also get the right row spacing.
It's like the Text increase the row spacing. But why? And how can I just get the same row spacing as column spacing with Text(emoji) inside the card.
Post not yet marked as solved
Hello everyone, I know that this is an iOS/macOS/tvOS dev forum however I am working on learning Django and I am encountering some issues with pipenv shell. For some odd reason, common bash commands and commands that are in the PATH variable do not seem to be working once in pipenv virtual shell. I have a video demo of it here:
mbGem:booklist lamidotijjo$ echo $PATH
/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Users/lamidotijjo/.dotnet/tools:/Library/Apple/usr/bin:/Users/lamidotijjo/ia:/usr/local/mysql-8.0.31-macos12-arm64/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin
mbGem:booklist lamidotijjo$ pwd
/Users/lamidotijjo/Projects/booklist
mbGem:booklist lamidotijjo$ pipenv install django
Installing django...
Installing dependencies from Pipfile.lock (79baf8)...
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
mbGem:booklist lamidotijjo$ pipenv shell
Launching subshell in virtual environment...
`The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$ . /Users/lamidotijjo/.local/share/virtualenvs/Projects-3XO0tcpO/bin/activate
(Projects) bash-3.2$ ls
bash: ls: command not found
(Projects) bash-3.2$ ls -l
bash: ls: command not found
(Projects) bash-3.2$ code
bash: code: command not found
(Projects) bash-3.2$ code .
bash: code: command not found
(Projects) bash-3.2$ `
Post not yet marked as solved
This is taken from a completely fresh multiplatform SwiftUI project. I want to be able to make a custom view focusable, so I tried testing with a Text view but it's not working. Isn't that the whole point of .focusable() to declare an arbitrary view focusable? If that's the case, then why isn't it working in the below code:
import SwiftUI
struct ContentView: View {
@FocusState private var focusedItem: Optional<FocusedItem>
var body: some View {
VStack {
Text("Test")
.focusable(true)
.focused($focusedItem, equals: .two)
Button("Toggle Focus") {
self.focusedItem=(self.focusedItem == nil) ? .two : nil
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
// Always prints `nil`.
print(self.focusedItem)
}
}
}
}
enum FocusedItem {
case one, two
func other() -> FocusedItem {
switch self {
case .one: return .two
case .two: return .one
}
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
Dear all,
This is my first post in this forum - and, in fact, my first app, too! I'm glad to be here, and thanks in advance for your help.
I'm looking to offer an app for a one-time payment. I'd also like people to be able to try the app for a week.
It seems that the "Pricing and Availability" section in App Store Connect is not the right place to configure this kind of offer. It does allow me to set a one-time price, but I cannot find a trial-period there (or am I missing something?)
Two different strategies seem possible here:
Using in-app-purchases: make the actual app free, but ask users after a week to buy a non-consumable IAP. The problem with that: I need to verify that the app has been installed for seven days ... even if it has been uninstalled at some point.
Using subscriptions: There is a "free trial" option for subscriptions. But after that free trial, subscriptions are being payed periodically. I'd rather have the user only pay once for lifetime-access.
Some apps seem to use strategy 1 - I believe the "Lap swim" app does. But still it seems like a bit of a hack - is there a more elegant way to achieve this?