Post not yet marked as solved
I have a custom rotor that changes the skim speed of the skim forward/backward feature of my audio player. The rotor works, but it's always playing an end-of-list sound.
Here is the code:
// Member variables
private let accessibilitySeekSpeeds: [Double] = [10, 30, 60, 180] // seconds
private var accessibilitySeekSpeedIndex: Int = 0
func seekSpeedRotor() -> UIAccessibilityCustomRotor {
UIAccessibilityCustomRotor(name: "seek speed") { [weak self] predicate in
guard let self = self else { return nil }
let speeds = accessibilitySeekSpeeds
switch predicate.searchDirection {
case .previous:
accessibilitySeekSpeedIndex = (accessibilitySeekSpeedIndex - 1 + speeds.count) % speeds.count
case .next:
accessibilitySeekSpeedIndex = (accessibilitySeekSpeedIndex + 1) % speeds.count
@unknown default:
break
}
// Return the currently selected speed as an accessibility element
let accessibilityElement = UIAccessibilityElement(accessibilityContainer: self)
let currentSpeed = localizedDuration(seconds: speeds[accessibilitySeekSpeedIndex])
accessibilityElement.accessibilityLabel = currentSpeed + " seek speed"
UIAccessibility.post(notification: .announcement, argument: currentSpeed + " seek speed")
return UIAccessibilityCustomRotorItemResult(targetElement: accessibilityElement, targetRange: nil)
}
}
The returned accessibility element isn't read out, and instead an end-of-list sound is played. I can announce the change manually using UIAccessibility.post, but it still plays the end-of-list sound.
How can I prevent the rotor from playing the end-of-list sound?
Post not yet marked as solved
My app was rejected due to Wrong OTP issue.
But when I test using the same credentials it works fine. I am not able to reproduce the rejected issue. How I will check that issue ?
In our previous build getting same issue but after few communication it was approved automatically.
May I know why it is happen every times?
Post not yet marked as solved
I've created widget that opens app on specific view: .widgetUrl(URL(string: "myapp://Dashboard/SpecialView"))
It works alright so i know deep links are working. So after that i created Shortcuts.swift file in my main app and added this:
import AppIntents
import UIKit
@available(iOS 16, *)
struct StartRecordingIntent : AppIntent {
static var title: LocalizedStringResource = "Special"
func perform() async throws -> some IntentResult {
let url = URL(string: "myapp://Dashboard/SpecialView")
DispatchQueue.main.async {
UIApplication.shared.open(url!, options: [:], completionHandler: nil)
}
return .result()
}
}
This intent created shortcut "Special" in shortcut list, and when run, should open exactly the same view as the widget. But all im getting is error:
Failed to open URL myapp://Dashboard/SpecialView: Error Domain=FBSOpenApplicationServiceErrorDomain Code=1
"The request to open "com.myapp" failed."
UserInfo={BSErrorCodeDescription=RequestDenied, NSUnderlyingError=0x600000dd7960
{Error Domain=FBSOpenApplicationErrorDomain Code=3
"Application com.myapp is neither visible nor entitled, so may not perform un-trusted user actions."
I don't understand what i'm doing wrong and why can't i open app from shortcut exactly like widget does
Post not yet marked as solved
How can we cast video, Images, Screen Mirroring from iOS to Smart TV Device(Apple, Android or etc.) i am using GoogleCast SDK iOS but it's cast only server URL video.
Is there any SDK or code for cast video and Images.
Post not yet marked as solved
When I build app on Xcode 15.3 with SWIFT_STRICT_CONCURRENCY=complete, there are some warning.
Almost warning can be fixed, but not the TipKit code.
Here is the example.
Are there any good way to solve it?
Post not yet marked as solved
Hello,
I have class file, which should save data coreData and Im only able to save data via ui.
Do you have any example, how can I save data in core data via class files?
Greeting Fabian
Post not yet marked as solved
We are implementing a 3rd party Passkeys Manager app for ios. In the ios app in the CredentialProviderViewController I've implemented:
func prepareCredentialList(
for serviceIdentifiers: [ASCredentialServiceIdentifier]
)
func provideCredentialWithoutUserInteraction(
for credentialRequest: ASCredentialRequest
)
func prepareInterfaceToProvideCredential(
for credentialRequest: ASCredentialRequest
)
func prepareInterface(
forPasskeyRegistration registrationRequest: ASCredentialRequest
)
When testing on webpages like webauthn.io and webauthn.me , our app shows up as one of the options for creating a passkey.
We are getting the calls in prepareInterface() and handling it as advised here
https://developer.apple.com/documentation/authenticationservices/ascredentialproviderviewcontroller/4172626-prepareinterface/
However the registration is failing. I understand that in this function, we need to create a passkey using a crypto library and then call completeRegistrationRequest(using:completionHandler:)
The documentation on this is scant so it is hard to debug for this reason.
Need help fixing this issue. What could we be missing?
Is there any sample code for overriding these functions?
Any recommendations on the crypto library for generating passkeys
When the passkeys have been generated, how do we pass it back to the system?
Thank you,
Jaydip.
Post not yet marked as solved
■Confirmation
My post on the Apple Developer Forums is not published even though it have been reviewed.
Does any work need to be done at the time of submission or after review in order to be published?
■Background of the question
I posted one on the Apple Developer Forums yesterday.
Immediately after posting, a message saying "It will be published if it passes the review" was displayed on the screen.
This morning, that message disappeared, so I thought the post had been published, but my post was not displayed on the post list screen.
I tried searching for the post title, but it doesn't appear for a while.
Post not yet marked as solved
Hello, I am doing to load model from bundle and it is loaded successfully. Now I am scaling model using GestureExtension from apple demo code. (https://developer.apple.com/documentation/realitykit/transforming-realitykit-entities-with-gestures?changes=_8)
@State private var selectedEntityName : String = ""
@State private var modelEntity: ModelEntity?
var body: some View {
contentView
.task {
do {
modelEntity = try await ModelEntity.loadArcadeMachine()
} catch {
fatalError(error.localizedDescription)
}
}
}
@ViewBuilder
private var contentView: some View {
if let modelEntity {
RealityView { content, attachments in
modelEntity.position = SIMD3<Float>(x: 0, y: -0.3, z: -5)
print(modelEntity.transform.scale)
modelEntity.transform.scale = [0.006, 0.006, 0.006]
content.add(modelEntity)
if let percentTextAttachment = attachments.entity(for: "percentage") {
percentTextAttachment.position = [0, 50, 0]
modelEntity.addChild(percentTextAttachment)
}
} update: { content, attachments in
// I want here to get updated scaling value and it is showing in RealityView attachmnt text.
} attachments: {
Attachment(id: "percentage") {
Text("\(modelEntity.name) \(modelEntity.scale * 100) %")
.font(.system(size: 5000))
.background(.red)
}
}
// This method am using for gesture support
.installGestures()
} else {
ProgressView()
}
}
}
Below code from GestureExtension
let state = EntityGestureState.shared
guard canScale, !state.isDragging else { return }
let entity = value.entity
if !state.isScaling {
state.isScaling = true
state.startScale = entity.scale
}
let magnification = Float(value.magnification)
entity.scale = state.startScale * magnification
state.magnifyValue = magnification
magnifyScale = Double(magnification)
print("Entity Name ::::::: \(entity.name)")
print("Scale ::::::: \(entity.scale)")
print("Magnification ::::::: \(magnification)")
print("StartScale ::::::: \(state.startScale)")
> This "magnification" value I need to use in RealityView class. How can i Do it? Could you please guide it.
}
Post not yet marked as solved
I have added a intent extension with SiriKit.
It works fine in iOS 17 simulator, but it always open the app directly on my iOS15 device.
I don't know what is the problem.
Post not yet marked as solved
So like the title says, when I start up Xcode the preview won;t work till I run a debug session using the simulator.
Sometimes the debug session is unable to start the simulator, which I can start manually then run a debug session.
Once all the above is done, preview works.
Any idea what is causing this behavior?
Post not yet marked as solved
i am attaching crash logs would be really appreciated for any kind of help :)
Review Environment
Submission ID: f7cb438c-5784-44e7-abcf-4a787c9398ff
Review date: April 30, 2024
Version reviewed: 1.0
Guideline 2.1 - Performance - App Completeness
We were unable to review your app as it crashed on launch. We have attached detailed crash logs to help troubleshoot this issue.
Review device details:
Device type: iPad Air (5th generation) and iPhone 13 mini
OS version: iOS 17.4.1
crashlog-639DEF1C-6DE4-437F-BEFE-E0DA6F31FFD8.txt
crashlog-4EC7F1AA-18A9-4057-B1AD-9677FEA6981F.txt
Post not yet marked as solved
To resume the rotation/dragGesture is working only on défaut xyz point
I tried to add a custom anchor and apply the same code but cannot be dragged
My guess is that the red line is causing the issue (see screenshot)
Post not yet marked as solved
Apple rejected my app store submission (first submission of this app) with the following comment:
Issue Description: The app exhibited one or more bugs that would negatively impact App Store users.
Bug description: The app opens to a black display
Steps to reproduce bug: Launch app.
Review device details:
- Device type: iPhone 13 mini
- OS version: iOS 17.4.1
Next Steps: Test the app on supported devices to identify and resolve bugs and stability issues before submitting for review.
No other details given on specific scenarios. No logs provided. We asked for more info but they refused to help any further.
I just so happen to have that exact device (iPhone 13 mini), so I updated it to the iOS version that was giving problems. But no matter what I do, I cannot replicate this bug. I tried via TestFlight and via Xcode, I tried deleting and reinstalling the app, and I tried restarting my phone between installs. I tried launching the app while on airplane mode. I never got this "app opens to a black display" issue.
What else can I try to replicate this bug?
The app is built with Unity 2021.3.19f1.
Post not yet marked as solved
Hi everyone,
This happens with Xcode 15.3 (15E204a) and visionOS 1.1.2 (21O231).
To reproduce this issue, simply create a new VisionOS app with Metal (see below).
Then simply change the following piece of code in Renderer.swift:
func renderFrame() {
[...]
// Set the clear color red channel to 1.0 instead of 0.0.
renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColor(red: 1.0, green: 0.0, blue: 0.0, alpha: 0.0)
[...]
}
On the simulator it works as expected while on device it will show a black background with red jagged edges (see below).
Post not yet marked as solved
We're testing in-app purchases in our iOS app, and Product.products(..) returns an empty vector in the sandbox environment, both when building & running in xcode and on testflight. We've eliminated all the obvious reasons:
Paid App Agreement is done
InAppPurchase Products are in Ready to Submit
The ProductId's are matching
Sandbox tester account is set up and logged in on testing device
Currently we're out of ideas for why the IAP purchase products are not showing up - would appreciate any help!
Post not yet marked as solved
During SPM Package resolution we are seeing lots of 502 errors in the logs when Xcode Cloud tries to talk to github. Anyone else seeing this? Not sure how to get this issue resolved but it is impacted all of our builds.
Example of the error we're seeing. We see these for lots of different packages and even our own source (though in that case it looks like Xcode Cloud tried again and succeeded the second time).
xcodebuild: error: Could not resolve package dependencies: Failed to clone repository https://github.com/zendesk/sdk_zendesk_ios: Cloning into bare repository '/Volumes/workspace/DerivedData/SourcePackages/repositories/sdk_zendesk_ios-1d7ac730'... error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 fatal: expected flush after ref listing Failed to clone repository https://github.com/apple/swift-async-algorithms: Cloning into bare repository '/Volumes/workspace/DerivedData/SourcePackages/repositories/swift-async-algorithms-c3a8d752'... fatal: unable to access 'http://github.com/apple/swift-async-algorithms/': The requested URL returned error: 502
Post not yet marked as solved
Hi there,
I'm currently working with the Screen Time API using the family controls package to manage application usage on iOS devices. I want to block access to all applications except those specifically allowed by the user. While the ManagedSettingsStore.shield.applications method works for defining apps to block. However, integrating the .all(except:) from ShieldSettings.ActivityCategoryPolicy.all(except:) is unfortunately not working for me.
Here is my code snippit. Can anyone help out? And if anyone has examples of similar implementations or tips on best practices for using the Screen Time API for such scenarios, please let me know!
class ShieldManager: NSObject, ObservableObject, NFCNDEFReaderSessionDelegate {
@Published var discouragedSelections = FamilyActivitySelection()
private let store = ManagedSettingsStore()
func shieldActivities() {
// Clear to reset previous settings
store.clearAllSettings()
// This is an array with the app and category selection
let applications = discouragedSelections.applicationTokens
let categories = discouragedSelections.categoryTokens
//
//https://developer.apple.com/documentation/managedsettings/shieldsettings/activitycategorypolicy
store.shield.applications = applications.isEmpty ? nil : applications
store.shield.applicationCategories = categories.isEmpty ? nil : .specific(categories)
store.shield.webDomainCategories = categories.isEmpty ? nil : .specific(categories)
}
f
Post not yet marked as solved
Não consigo debugar app IOS delphi FMX em xcode 15.3 e xcode 15.4 beta com IOS 17.4 .
Ocorre a mensagem :
debugging the application on device running ios 17 or later is currently not supported
Post not yet marked as solved
I'm currently using this definition:
let package = Package(
name: "MyPackage",
platforms: [
.iOS(.v17),
.macOS(.v14)
],
...
But now I'd like the package to use a feature only available in v17.1