Hi, when using ApplicationMusicPlayer from MusicKit my app automatically gets the media controls on the lock screen: Play/ Pause, Skip Buttons, Playback Position etc.
I would like to customize these. Tried a bunch of things, e.g. using MPRemoteCommandCenter. So far I haven't had any success.
Does anyone know how I can customize the media controls of ApplicationMusicPlayer.
Thank you.
Overview
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi all,
Recently, I received feedback from users that the cell of UITableView will be enlarged when clicked on the iOS26 system. After positioning, it was found that the iOS26 system has reset the frame of the contentView so that its width is always the screen width. The following Demo can reproduce this problem. Does anyone have this problem? Is there a solution?
Thanks
Run and click on the cell to see the problem
http://www.yangshuang.net/TestProject.zip
Hi. I have the following code with results in an error message
//
// ViewController.swift
// Accelerometer
//
//
import UIKit
import CoreMotion
let motion = CMMotionManager()
class ViewController: UIViewController {
@IBOutlet var xaxis: UILabel!
@IBOutlet var yaxis: UILabel!
@IBOutlet var zaxis: UILabel!
let movementManager = CMMotionManager()
override func viewDidLoad() {
super.viewDidLoad()
movementManager.startAccelerometerUpdates()
movementManager.accelerometerUpdateInterval = 0.1
Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in
if let data = self.movementManager.accelerometerData {
// self.xaxis.text = String(data.acceleration.x)
//self.yaxis.text = String(data.acceleration.y)
//self.zaxis.text = String(data.acceleration.z)
var xoutput: () = self.xaxis.text = String(data.acceleration.x)
var xoutput = xoutput * 9.81
print(xoutput)
}
}
}
}
I realize that it is not working since the whole value of "xoutput" has a string in it. Any advice on making it so it will be a Double?
THANK YOU!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi, this is the first app and time using apple forums and my question. I published an app and it says ready to distribute i have tested the link and installed it on my phone, however on the App Analytics it says "Not Enough Data".
Know its been downloaded and installed because i did it but it shows as i said not enough data, is there a delay of a certain time, is there a difference between private and business.
How can i find out if there has been a purchase, nothing is displaying as i was expecting.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Given a View in SwiftUI for macOS, how can I tell if that view is hidden either because it, or any of its ancestor's opacity is 0.0 or the .hidden modifier has been applied?
Presumably I can manually do this with an Environment value on the ancestor view, but I'm curious if this can be done more idiomatically.
An example use case:
I have views that run long-running Tasks via the .task(id:) modifier. These tasks only need to be running if the View itself is visible to the user.
When the View is hidden, the task should stop. When the View reappears, the Task should restart. This happens automatically when Views are created and destroyed, but does not happen when a view is only hidden.
JAX Metal shows 55x slower random number generation compared to NVIDIA CUDA on equivalent workloads. This makes Monte Carlo simulations and scientific computing impractical on Apple Silicon.
Performance Comparison
NVIDIA GPU: 0.475s for 12.6M random elements
M1 Max Metal: 26.3s for same workload
Performance gap: 55x slower
Environment
Apple M1 Max, 64GB RAM, macOS Sequoia Version 15.6.1
JAX 0.4.34, jax-metal latest
Backend: Metal
Reproduction Code
import time
import jax
import jax.numpy as jnp
from jax import random
key = random.PRNGKey(42)
start_time = time.time()
random_array = random.normal(key, (50000, 252))
duration = time.time() - start_time
print(f"Duration: {duration:.3f}s")
Hi,
My iOS app's home screen widget content was implemented to base on the preferred language of my main app (e.g. my app has the following preferred language options with this order English, Japanese, Traditional Chinese, Korean, Simplify Chinese).
Say the main app is currently using English as their preferred language, I can change the preferred language in the iOS Settings -> Apps -> My App -> Preferred Language.
My widget's content will respect to the preferred language option that I selected with only exception if I switch back to English language and my Widget's content won't get updated. The Main app content is always update with respect to the selected preferred language.
My app and widget is working without any issue in iOS 18.
Other things that I had discovered during my testing under iOS 26, the "first" language appeared in my preferred language always being the issue (e.g. if the first language is Japanese , once I change to other languages and than switch back to Japanese, my widget content won't respect to this but the main app content are ok).
Any one has a similar issues regarding the preferred language?
Topic:
App & System Services
SubTopic:
Widgets & Live Activities
Tags:
Internationalization
Localization
If I upload my app with included plugins with no dsyms for the bundles I get a warning message that there are no dysms.
If I select DWARF + dsyms, I get a warning saying it can't find them, even though they are there in the resource file with the correct UUID
For example:
The archive did not include a dSYM for the BIS.bundle with the UUIDs [6481C68F-CEE4-33B5-8631-E03251E48FF2, C7482559-F72A-3510-A5B9-00C24F376CD9]. Ensure that the archive's dSYM folder includes a DWARF file for BIS.bundle with the expected UUIDs.
When you choose Get Info on the dsym it shows the UUIDs that the AppStore allegedly can't find.
Any ideas?
Topic:
App Store Distribution & Marketing
SubTopic:
App Review
If we use webView.loadFileURL(indexURL, allowingReadAccessTo: readAccessURL) on an iPad it loads the data and navigation works.
But if we place two hands on top of the screen and move a bit, all click events are not working anymore.
It works again if we call loadFileURL again.
We filled a bug report:
FB19812304
I tried detecting fake locations using CLLocationSourceInformation.isSimulatedBySoftware, but it doesn’t work with spoofing tools like iTool AnyTo. It never gets flagged as simulated. Is this a limitation of the API, and is there any recommended way to detect virtual location tools on real devices?
Hi everyone,
I’m working on implementing Live Activities in my app, and I’ve encountered an issue where the Live Activity updates work intermittently when the app is in the background. Sometimes they update correctly, but at other times, they don’t update at all, even though they should be running in the background.
However, when the app is brought to the foreground, the updates happen correctly.
A few things I’ve checked:
The app is using ActivityKit to update the Live Activity with Activity.update().
I’ve enabled the necessary background modes in the Capabilities section.
Is there a possibility that I’m hitting the system budget limit while experiencing this issue? If this is a limitation, how can I avoid it or manage this situation?
Has anyone else faced this issue? Any advice or potential solutions would be greatly appreciated!
Thank you!
Topic:
App & System Services
SubTopic:
Widgets & Live Activities
Tags:
Swift
SwiftUI
WidgetKit
ActivityKit
Hi,
I am creating a Driving Behaviour Monitoring app in which I range beacons and I require location updates in foreground, background and in terminated state all the time.
I am using CLServiceSession with "Always Authorisation" to get location events. I create CLServiceSession object in the foreground and start monitoring driving and then re-create it when the app is relaunched after termination. Doing this works fine.
But sometimes when app is terminated and is not opened again, the app runs on its own even when the device is stationary ( I can see the app is using Location in the Control Centre) and after that Location updates are not received and I am not able to track the driving behaviour. I tried to add diagnostics to know the cause and found "Insufficiently In Use" and then "Service Session Required" in the diagnostics.
It would be of great help if the proper usage of CLServiceSession is provided.
Important Question: When does the CLServiceSession gets invalidated or destroyed that was created when the app was in foreground ? What happens to the CLServiceSession which was created in the foreground if the app is not opened for long duration, let's say a day or two?
Good day)
Colleagues, please tell me how can I change the notification on the locked screen "pass changed" in PKPASS when changing several fields?
Thank you very much for your answer
I'm trying to run sample Trails app from the documentation, unaltered.
When I do the build, I get a
Command ValidateAppShortcutStringsMetadata failed with a nonzero exit code
error. How do I debug this?
I'm trying this on Xcode 16.4.
Having a problem where the Mac Catalyst version of my app shows the full App Store Connect name instead of the shortened name. When I compile it on Xcode and run it locally, this doesn't happen. However, when installing from TestFlight it does.
--
App Store Connect: AppName: RSS Reader
Display Name: AppName
--
On macOS only, it displays as "AppName\ RSS Reader" in ~/Applications/ when distributed via TestFlight.
How can I correct this? An iPad app running on Mac has no issue, its only when I enable the Mac Catalyst build target.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Hi all,
My Unity app was rejected for running in portrait mode on an iPad Air (5th gen) with iPadOS 18.6.
My Unity Player settings are configured for landscape-only (Auto Rotation with Landscape Left and Landscape Right enabled).
On my older iPad (5th gen) with iPadOS 16.7.11, the app works correctly and stays in landscape.
Has anyone seen similar orientation issues with Unity builds on M1/M2 iPads running iPadOS 18? I suspect this is a bug with the new OS on specific hardware. Any insights are appreciated.
Thanks.
Topic:
App Store Distribution & Marketing
SubTopic:
App Review
I've tried for more than a week to join the Apple Developer Program without success but with super cryptic replies from Apple Developer Support. Looking to hear whether this has happened to others and how you resolved it.
This has happened:
Right after I submitted pictures of my driver's license I got the message "There may be an issue with your account that needs to be resolved before you can continue. Please contact support". No further information..
I contact support, they say my ID could not be verified, and does not give any further explanation, and not replying to my question whether I should provide another ID, like passport.
Now that I try to click "Enroll", I automatically get the message "Your enrollment could not be completed" - AND my dad's name now appear as the account name! Even though I started from my personal Apple Account. I don't understand what is happening. Family sharing is not on.
I'm just hitting a dead end of vague replies and silence from Support, and with no actual error messages on what is wrong I'm at a loss for what to do. Any tips or help is much appreciated.
Our IMDF indoor maps submission is stuck on "Occupants data in review" for several months and I can't ahold of that team (their email doesn't work). I've been told they have a backlog, but the other steps were pretty fast. How long is the expected completion? Thank you!
General:
Forums subtopic: App & System Services > Networking
TN3151 Choosing the right networking API
Networking Overview document — Despite the fact that this is in the archive, this is still really useful.
TLS for App Developers forums post
Choosing a Network Debugging Tool documentation
WWDC 2019 Session 712 Advances in Networking, Part 1 — This explains the concept of constrained networking, which is Apple’s preferred solution to questions like How do I check whether I’m on Wi-Fi?
TN3135 Low-level networking on watchOS
TN3179 Understanding local network privacy
Adapt to changing network conditions tech talk
Understanding Also-Ran Connections forums post
Extra-ordinary Networking forums post
Foundation networking:
Forums tags: Foundation, CFNetwork
URL Loading System documentation — NSURLSession, or URLSession in Swift, is the recommended API for HTTP[S] on Apple platforms.
Network framework:
Forums tag: Network
Network framework documentation — Network framework is the recommended API for TCP, UDP, and QUIC on Apple platforms.
Building a custom peer-to-peer protocol sample code (aka TicTacToe)
Implementing netcat with Network Framework sample code (aka nwcat)
Configuring a Wi-Fi accessory to join a network sample code
Moving from Multipeer Connectivity to Network Framework forums post
Network Extension (including Wi-Fi on iOS):
See Network Extension Resources
Wi-Fi Fundamentals
TN3111 iOS Wi-Fi API overview
Wi-Fi Aware framework documentation
Wi-Fi on macOS:
Forums tag: Core WLAN
Core WLAN framework documentation
Wi-Fi Fundamentals
Secure networking:
Forums tags: Security
Apple Platform Security support document
Preventing Insecure Network Connections documentation — This is all about App Transport Security (ATS).
Available trusted root certificates for Apple operating systems support article
Requirements for trusted certificates in iOS 13 and macOS 10.15 support article
About upcoming limits on trusted certificates support article
Apple’s Certificate Transparency policy support article
What’s new for enterprise in iOS 18 support article — This discusses new key usage requirements.
Technote 2232 HTTPS Server Trust Evaluation
Technote 2326 Creating Certificates for TLS Testing
QA1948 HTTPS and Test Servers
Miscellaneous:
More network-related forums tags: 5G, QUIC, Bonjour
On FTP forums post
Using the Multicast Networking Additional Capability forums post
Investigating Network Latency Problems forums post
WirelessInsights framework documentation
iOS Network Signal Strength
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Hi everyone,
When I try to upload screenshots, they turn into red exclamation marks after I refresh the browser page. Anyone else having the same issue?
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect