Post not yet marked as solved
I am trying to implement a third party passkey credential provider and I have been able to successfully setup the project for that. Below is a sample code which I am using -
let passkeyRegistrationCredential = ASPasskeyRegistrationCredential(relyingParty: self.request?.credentialIdentity.serviceIdentifier.identifier ?? "", clientDataHash: self.request?.clientDataHash ?? Data(), credentialID: Data(credentialId), attestationObject: Data(attestationBytes)
self.extensionContext.completeRegistrationRequest(using: passkeyRegistrationCredential)
The attestationBytes object that I am generating and sending back to RP seems to work only if I set the "fmt" to "none", which basically requires "attStmt" to be sent as an empty value as per WebAuthn spec - https://www.w3.org/TR/webauthn-2/#sctn-none-attestation
When trying to set the "fmt" to "packed" in attestation object and creating a self signed "attStmt" consisting of "alg" and "sig" key-values referring - https://www.w3.org/TR/webauthn-2/#sctn-packed-attestation, it does not seem to work. The RP throws an error. I do not have "x5c" object as that supposedly is not mandatory in case of self attestation. I have "authData" also as part of the response properly setup.
Is it not possible to use packed attestation or am I missing something in creating the attestation object? Also, does Apple modify the response being sent in the background before sending to RP if packed fmt is used?
Post not yet marked as solved
Hi, I'm trying to find an explanation to strange behaviour of .clampedToExtent() method:
I'm doing pretty strait forward thing, clamp the image and then crop it with some insets, so as a result I expert same image as original with padding on every side with repeating last pixel of each edge (to apply CIPixellate filter then), here is the code:
originalImage
.clampedToExtent()
.cropped(to: originalImage.extent.insetBy(dx: -50, dy: -50))
The result is strange: In the result image image has padding as specified, but only there sides have content there (left, right, bottom) and top side has transparent padding. Sometimes right side has transparency instead of content.
So the question is why this happens and how to get all sides filled with last pixel data?
I tested on two different devices with iOS 16 and 17.
Post not yet marked as solved
Hi! I'm having this crash on the app, it only happens in production and I haven't been able to reproduce it. I attacedh the full crash report and here is the code for the decidePolicyForNavigationAction action:
func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
guard let url = navigationAction.request.url else {
decisionHandler(.allow)
return
}
var policy: WKNavigationActionPolicy = .allow
if (["tel", "sms", "facetime"].contains(url.scheme)
|| navigationAction.navigationType == .linkActivated
&& initialUrl.host != url.host)
&& UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url)
policy = .cancel
}
decisionHandler(policy)
}
Can someone help me find out what could be then cause for this isse?
CrashReport
Post not yet marked as solved
/Users/username/Library/Developer/Xcode/DerivedData/rntp-ceegbzwzitccxnbapwtyxthcewja/Build/Intermediates.noindex/rntp.build/Debug-iphoneos/rntp.build/DerivedSources/rntp_vers.c module map file '/Users/username/Library/Developer/Xcode/DerivedData/rntp-ceegbzwzitccxnbapwtyxthcewja/Build/Products/Debug-iphoneos/SwiftAudioEx/SwiftAudioEx.modulemap' not found
How to solve it?
Post not yet marked as solved
I'm having a hard time relying on TSAN to detect problems due to its rightful insistence on reporting data-races (I know, stick with me). Picture the following implementation of a lazily-allocated property in an Obj-C class:
@interface MyClass {
id _myLazyValue; // starts as nil as all other Obj-C ivars
}
@end
@implementation MyClass
- (id)myLazyValue {
if (_myLazyValue == nil) {
@synchronized(self) {
if (_myLazyValue == nil) {
_myLazyValue = <expensive computation>
}
}
}
return _myLazyValue;
}
@end
The first line in the method is reading a pointer-sized chunk of memory outside of the protection provided by the @synchronized(...) statement. That same value may be written by a different thread within the execution of the @synchronized block. This is what TSAN complains about, but I need it not to.
The code above ensures the ivar is written by at most one thread. The read is unguarded, but it is impossible for any thread to read a non-nil value back that is invalid, uninitialized or unretained.
Why go through this trouble? Such a lazily-allocated property usually locks on @synchronized once, until (at most) one thread does any work. Other threads may be temporarily waiting on the same lock but again only while the value is being initialized. The cost of allocation and initialization is guaranteed to be paid once: multiple threads cannot initialize the value multiple times (that’s the reason for the second _myLazyValue == nil check within the scope of the @synchronized block). Subsequent accesses of the initialized property skip locking altogether, which is exactly the performance we want from a lazily-allocated, immutable property that still guarantees thread-safe access.
Assuming there isn't a big embarrassing hole in my logic, is there a way to decorate specific portions of our sources (akin to #pragma statements that disable certain warnings) so that you can mark any read/write access to a specific value as "safe"? Is the most granular tool for this purpose the __attribute__((no_sanitize("thread")))? Ideally one would want to ask TSAN to ignore only specific read/writes, rather than the entire body of a function.
Thank you!
Post not yet marked as solved
Hi,
We trying to deliver a application to App Store, but your app continuous rejected by Apple Review Team because our advertising banners.
App Store Review Guideline 5.3.4.
Specifically, your app does not meet the following requirement(s):
- You have not provided documentation showing you have the required licensing and permissions to distribute your app in all the countries or regions you selected in App Store Connect.
- Access to the app has not been restricted so it can only be used where you have the required license.
We don't offer any gambling feature and not mention gambling in your app. Also, we competently remove our banners from app, but still rejecting by team. We really stuck about that.
How we can approve our app with banner? We can see thousand apps with banners in App Store with gambling banners.
Post not yet marked as solved
My apple developer account has expired. I want to renew but I cannot see the renewal button. My membership appears in the Apple developer application, but there is no renewal option. How do I renew?
Post not yet marked as solved
I have an app which uses the Local Push Connectivity API.
I have requested and received the entitlement and everything is working in dev-mode, but once I try to distribute the app to the AppStore I got the following error:
Provisioning profile failed qualification
Profile doesn't match the entitlements file's value for the com.apple.developer.networking.networkextension entitlement.
I was wondering if I need an other entitlement for this, mine is called Local Push Provider iOS Dev which makes me feel like there should be a Store counterpart - but I did not see how to request it on the Entitlement Request Page.
Thanks for any hints!
Post not yet marked as solved
This wasn't happening with older versions of Reality Converter... I open a GLTf file created in Cinema 4D and all corners are smoothed, completely transforming the object's geometry.
Reality Converter was a very useful tool for quick object testing: save in USDz and a look using iPhone, unfortunately is this smoothing happens this is not usable anymore.
Does anyone know why this is happening and how to turn it off?
This is a screenshot from C4D
And this is the same object imported in Reality Converter
Post not yet marked as solved
Hello everybody,
Im new to Swift programming or app programming in geenrell and now im working on my first project. However im struggling right now with something. I crated an object for my Quizzplayer. To give them a name I want to create a textfield for each one of them where the user can enter the name. let me give u a code snippet for my quizPlayer object:
class QuizPlayer: ObservableObject {
@Published var name: String
@Published var points: Int
@Published var isActive: Bool
init(name: String) {
self.name = name
self.points = 0
self.isActive = false
}
func addPoints(pointsToAdd: Int) {
self.points += pointsToAdd
}
func changeName(newName: String) {
self.name = newName
}
}
I create 5 empty Quizzplayers at the beginning:
@State private var quizPlayers: [QuizPlayer] = Array(repeating: QuizPlayer(name: ""), count: 5)
then I create my Textfields and try to bind dem to the names of the players:
ForEach(0 ..< self.numberOfPlayers, id: .self) { index in
TextField("Player (index + 1) name", text: self.$quizPlayers[index].name)
.padding()
}
But it's not working at all. very time I run the simulator and edit one textfield, every textfield gets changed so I can't edit them individually. I´m not sure if I used the State and ObservableObject right or what the issue is. Maybe someone understands my problem and can help me.
All the best
Leon
Post not yet marked as solved
Hello, we're trying to running Unity game built for iPhones and iPads on Mac, just like this.
https://developer.apple.com/documentation/apple-silicon/running-your-ios-apps-in-macos
Getting device model with Unity API works on iPhone and iPad, but we got "iPad8,1"(or iPad8,2/3/4/..., one of the model of iPad Pro 3) for device model, and get "iPadOS 16.6" for Operating system on Mac. They are not Mac device information, how we get Mac device model and Mac OS version if we are running on Mac?
(Additionally, not Mac Catalyst.)
Post not yet marked as solved
Per the docs, NSImage.imageTypes returns a list UTI's, something like below:
com.adobe.pdf
com.apple.pict
com.adobe.encapsulated-postscript
public.jpeg
public.png
com.compuserve.gif
com.canon.tif-raw-image
...
What I need is get file extensions of a UTI. For example, public.jpeg picture file may have several file extensions, say .jpg,.jpeg,.jfif.
Does Cocoa provide any API to query for this information?
Post not yet marked as solved
Currently, My company application get generic device name instead of user-assigned device name on iOS 16 and iOS 17.
I read Apple’s documents about the issue:
https://developer.apple.com/documentation/uikit/uidevice/1620015-name
https://developer.apple.com/forums/thread/721772
But on my account settings, I couldn’t see the entitlement or any way to enable the entitlement.
Could you please give me instructions for my problems?
Post not yet marked as solved
Hello, I would like to downgrade from TVOS 17 beta 2 to TVOS 17.1 on an Apple TV 4K without USB-C?
Post not yet marked as solved
Hello!
I have recently begun exploring the "Capturing depth using the LiDAR camera" Documentation using AVFoundation and intend to acquire the depth information of specific points based on touch.
I have two main doubts and would be grateful if any clarification can be provided.
How and in which format can I access the specific point/pixel information and ensure that it is tracking/displaying the accurate point I acquire from the touch gesture. [basically how are the pixels tagged to their specific data]
What is the unit of measure for the LiDAR Depth data? also what is the range for which data accuracy is guaranteed?
it would be great if you could push me in the right direction in the search of answers.
[I have gone through the documentation in depth]
Thanks in advance.
Post not yet marked as solved
On my MacBook Air, when using the trackpad to zoom in on a Safari screen containing a textarea with a two-finger gesture, there is occasional flickering of the textarea border when typing.
macbook air Model:MacBook Air 2022 M2
iOS version:14.0(23A344)
Safari version:17.0(19616.1.27.211.1)
Post not yet marked as solved
Hello Apple Developer Community,
I am reaching out to seek some assistance with an issue I've encountered related to user privacy settings in my app. Despite configuring the PrivacyInfo.xcprivacy file to disallow tracking and including specific domains within the Privacy Tracking Domains, I am observing that URLs containing these restricted domains are still being displayed within a webView in my app.
Here are some specifics of the issue:
The behavior occurs in both the iOS 17.1.1 simulator and on physical devices.
I've double-checked the setup to ensure it aligns with the official documentation and expected privacy restrictions.
I'm hopeful that someone in the community or from the Apple team can shed light on the matter. Why might the specified domains not be blocked as per the privacy settings? Any insights or guidance on resolving this would be greatly appreciated as it's crucial for maintaining the privacy standards of our app.
Thank you for your time and help.
Best regards,
Post not yet marked as solved
Our apple pay integration with the gateway "Checkout.com" is succeeding from Checkout side & the amount is captured (withdrawn from bank account) and confirmed yet on the apple pay popup it fails with a "Payment not completed" error message. Any idea how to resolve this? This is on multiple devices (iPhones, MacBooks)
-The request in the headers is a success (200)
Post not yet marked as solved
App Store的评论是否有开放API,方便APP在内部评论同步到App Store评论区
Post not yet marked as solved
Hello!
Being a beginner in creating and editing views using swiftUI, I am unsure of the current situation that I am presently in, and would be grateful for any advice or suggestions for the below problem.
For some context, I have recently begun exploring the "Capturing depth using the LiDAR camera" Documentation using AVFoundation and intend to change its ContentView file which is currently written in swiftUI.
The problem: I am unable to preview the SwiftUI code.
When I try to resume the Preview Pane on the right