Post

Replies

Boosts

Views

Activity

Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
Even though the chekReceipt() Swift function returns a String (-> String), the MyAppTransaction class method in the automatically generated name-Swift.h file is defined as (void). The swift function returns a string asynchronously. Since objC doesn't have async functions, it returns void and passes the string later to the completion handler. I tried to edit the name-Swift.h header to change the return type That's not going to work. Within the scope of the completion handler you can use the status string ... but you can’t return it to the calling function. Correct, and there is no way to avoid that. You need to restructure to work with this. I need to post an alert. You can only post an alert from the main thread. Calling one from the completion handler will cause a crash. In that case, in the completion handler you can dispatch to the main thread to post the alert. Pseudo-code: dispatch_async(dispatch_get_main_queue(), ^{ present_alert(message); });
Nov ’24
Reply to Using the same texture for both input & output of a fragment shader
What I'm trying to do (simplifying a bit) is blend multiple color layers using my own blending functions into a "master" texture. So what we have is a fragment shader taking in a bunch of inputs, among them the master texture for reading, and outputting to that same master texture as an output color attachment. You can do your own blending in a fragment shader without this complexity. A fragment shader can read the current value of the framebuffer ("color attachment") pixel without having to make it an input texture (on iOS). In OpenGL ES, this is defined by GL_EXT_shader_framebuffer_fetch (https://registry.khronos.org/OpenGL/extensions/EXT/EXT_shader_framebuffer_fetch.txt). In metal, I believe that you need to add [[color(0)]] to a fragment shader input - see table 5.5 of the spec at https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf - but I've never tried this myself.
Topic: Graphics & Games SubTopic: Metal Tags:
Oct ’24
Reply to Appstore Rejection - Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app
Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app: Website: http://abc.io That seems pretty unambiguous. Are you saying that the App Description field in App Store Connect no longer mentions that website? (If you have multiple localisations, have you checked them all?)
Oct ’24
Reply to App reviewers don't look at my replies
What do we do here You “Update the app to not require users to provide the following personal information: Gender Age", like they’ve told you to.
Replies
Boosts
Views
Activity
Nov ’24
Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
Does the Swift function have to be async? Yes, because AppTransaction.shared is async.
Replies
Boosts
Views
Activity
Nov ’24
Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
Even though the chekReceipt() Swift function returns a String (-> String), the MyAppTransaction class method in the automatically generated name-Swift.h file is defined as (void). The swift function returns a string asynchronously. Since objC doesn't have async functions, it returns void and passes the string later to the completion handler. I tried to edit the name-Swift.h header to change the return type That's not going to work. Within the scope of the completion handler you can use the status string ... but you can’t return it to the calling function. Correct, and there is no way to avoid that. You need to restructure to work with this. I need to post an alert. You can only post an alert from the main thread. Calling one from the completion handler will cause a crash. In that case, in the completion handler you can dispatch to the main thread to post the alert. Pseudo-code: dispatch_async(dispatch_get_main_queue(), ^{ present_alert(message); });
Replies
Boosts
Views
Activity
Nov ’24
Reply to Swift Exception Handling in Apple OSes
I need a chance to finalise my stuff, alert the user, prepare diagnostic reports and terminate. I think Quinn's post about "why not to write your own diagnostic report generator" post, if you can find it, could be relevant here.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to macOS API for hardware model name?
can I make this a feature request? Of course you can! You know about Feedback Assistant, right? How am I to deal with new models being released? By updating your table!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to macOS API for hardware model name?
I believe that you need your own lookup table. (That's certainly the case on iOS; I'm less familiar with MacOS.)
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Using the same texture for both input & output of a fragment shader
it fails on the iOS simulator Is that on an Intel or an ARM Mac ?
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Using the same texture for both input & output of a fragment shader
What I'm trying to do (simplifying a bit) is blend multiple color layers using my own blending functions into a "master" texture. So what we have is a fragment shader taking in a bunch of inputs, among them the master texture for reading, and outputting to that same master texture as an output color attachment. You can do your own blending in a fragment shader without this complexity. A fragment shader can read the current value of the framebuffer ("color attachment") pixel without having to make it an input texture (on iOS). In OpenGL ES, this is defined by GL_EXT_shader_framebuffer_fetch (https://registry.khronos.org/OpenGL/extensions/EXT/EXT_shader_framebuffer_fetch.txt). In metal, I believe that you need to add [[color(0)]] to a fragment shader input - see table 5.5 of the spec at https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf - but I've never tried this myself.
Topic: Graphics & Games SubTopic: Metal Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Upload error using iTMSTransporter 'An error occurred while trying to call the requested method validateAssets. (1272)'
There have been other similar reports; search the forum for "iTMSTransporter".
Replies
Boosts
Views
Activity
Oct ’24
Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
I never saw it until it was posted here. It's a normal objC class-method call, passing a block. Maybe it's the block that is new to you? Anyway, is this working for you now?
Replies
Boosts
Views
Activity
Oct ’24
Reply to Appstore Rejection - Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app
Your app's description includes the following call-to-action and/or URL that directs users to external mechanisms for purchases or subscriptions to be used in the app: Website: http://abc.io That seems pretty unambiguous. Are you saying that the App Description field in App Store Connect no longer mentions that website? (If you have multiple localisations, have you checked them all?)
Replies
Boosts
Views
Activity
Oct ’24
Reply to Website that tracks all Apple Feedback requests
Maybe you’re thinking of Open Radar” https://openradar.appspot.com/ It’s not “every single piece of feedback sent to Apple”, though!
Replies
Boosts
Views
Activity
Oct ’24
Reply to AppTransaction: how to use in ObjC apps (now that we are forced to use it after the exit(173) deprecation)
% find ~/Library/Developer/Xcode -name '*-Swift.h' -print Also I never would have guessed that you would have to invoke the method using that syntax. What syntax, exactly?
Replies
Boosts
Views
Activity
Oct ’24
Reply to Resolution for Games
On iOS, In GLKView you do this: self.contentScaleFactor = self.window.screen.nativeScale; I suspect that the same thing works for MTKView but I haven't tried it.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to How would you approach an Encryption Key being leaked?
Don't follow these apps' example: "Millions of Android and iOS users at risk from hardcoded creds in popular apps" - https://www.theregister.com/2024/10/23/android_ios_security/
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24