Post not yet marked as solved
I am working on a DriverKit system extension that handles some kind of USB Ethernet adapter.
I'm trying to receive data from a Bulk endpoint. Each USB transfer should be up to 512kB, but the actual size of the transfer is not known in advance.
What I do is the following:
Allocate an IOBufferMemoryDescriptor with IOUSBHostInterface::CreateIOBuffer:
ret = ivars->interface->CreateIOBuffer(kIOMemoryDirectionIn, 524288, &b->buffer);
Create an OSAction to be used as transfer complete callback:
ret = CreateActionReadComplete(0, &b->action);
Start the I/O request:
ret = ivars->pipe->AsyncIO(b->buffer, 524288, b->action, 0);
At that point, I see that instead of starting a single 524288 bytes transfer, it starts 14 36864 bytes transfers and a 8192 bytes one. Which will absolutely not work with the USB device.
Is there a transfer size limit I am not aware of?
Post not yet marked as solved
Hello,
we've been working with the Swift Chart framework, and the BarMark chart has a memory problem/bug when using it on the iPhone with iOS 16.0 Developer Beta 3.
Problem
When using the BarMark chart on the simulator with fake values, the chart load, however if we try to load the data on the iPhone, the code breaks with this error: Thread 1: EXC_BAD_ACCESS (code=2, address=0x16d153ff8).
This however does not happen when we change the chart type from BarMark to LineMark. Then all of the sudden, the chart loads on the iPhone.
Now, when the error hits, Xcode show that the memory usage is extremely high.
Working Code
High Memory usage and error
Post not yet marked as solved
I need to use location in my widget.
Here's what I did:
Set Widget Wants Location and Privacy - Location When In Use Usage Description in my widget extension
Run the widget
The problem is that every time I run the widget for the very first time, I tap "Allow" when asked to permit access to my location and then it crashes with this:
I'm really confused why this is happening, since I'm not even doing any operation that involves anything from CoreLocation.
The second time I run the widget, works great. I can access current location and do whatever I want.
At first I thought that because of my implementation of CLLocationManagerDelegate I'm getting this, but then I removed everything related to CoreLocation from my codebase except the configurations I'm talking about above.
What am I missing?
Post not yet marked as solved
Hi! So after the public beta for iOS 16 rolled out I updated my phone because I wanted to try out some of its new features. Sadly, my banking app didn't like the new beta and I had to wait 5-10 minutes just to check my balance. Because of that I decided to restore my phone from an encrypted backup which I created earlier.
Ever since then, the Fitness app won't load. I also have an Apple Watch series 4 but the Fitness app works perfectly on it. It just doesn't work on my phone.
Also, I have the same problem with the Health app. I can open the app, but it doesn't show any data. And I don't understand this, because I created an encrypted backup because I didn't want to lose any of my Health data. And not only that I can't see my old data, my phone won't create any new data as well. For example, I have the sleep monitoring feature turned on, but the app won't create the data for it, so I have no sleeping data.
I tried to force close the apps and restart them, and I also restarted my phone several times, but it hasn't changed anything.
I attached two screenshots about my problems.
Thank you for the answers in advance!
(I tried posting this here as well, but my post got removed because the text contained the word "beta" in it.)
Post not yet marked as solved
I am trying to ascertain the date when, and the reasoning behind, our company's app was removed from the App Store. The app functions as expected on current iPhones and iPads. We have a customer base that relies upon the app and we are not able to currently market due to the app's removal. The app title was Innovatus Imaging Mobile. The original URL of the app was https://apps.apple.com/us/app/innovatus-imaging-mobile/id1391705399?ls=1
Is it possible to have an app re-added?
Post not yet marked as solved
One of our latest innovation and patented technology can be used in mobile devices like
the Apple Watch to protect the environment from being attacked and bit by
mosquitos. By modelling sensor structures this technology influences behavior
patterns of mosquitoes and other insects. This allows mosquitos to be kept away
without being affected.
Using
existing IoT hardware already available on-board, in addition to software-based
algorithms, the Apple Watch could be a best fit for this application.
I would
appreciate if we had the opportunity to set up a personal discussion with the
Apple Watch engineers.
Post not yet marked as solved
I am trying to deduplicate data created by NSPersistentCloudKitContainer in my app.
I have a universal app, with Share Extensions on both macOS and iOS. On each platform I share a store between the app and the extension with an App Group. The app and the extensions are both configured to sync to CloudKit. (This means local sharing is handled when offline, and a remote share extension will sync to CloudKit work when the main app is closed)
This configuration is causing duplicates to be generated. I believe this is because when the macOS app is open, both it and the macOS share extension will try and (almost simultaneously) sync a newly shared object, resulting in two copies in CloudKit.
On the macOS app, I can look through the persistent history and see the insertion 'author'. The first insertion is made by the extension "macOSShareExtension", the second is made by "NSCloudKitMirroringDelegate.import". I could easily make a choice to delete the second object.
However, at the same time, on the iOS app, I will get two insertions, both with the author "NSCloudKitMirroringDelegate.import".
I don't want to deduplicate only on the macOS app in this case. That would mean the the iOS app has duplicate objects until the deduplication propagates.
If I use CKRecord's creationDate to keep the first syncd Object, can I guarantee that if one Object has an associated CKRecord and the other doesn't, the one with out will subsequently gain a record with a later creationDate?
Should I be taking a different approach? Thank you.
Post not yet marked as solved
I'm using aws cognito for authentication in my app, and added the "Sign in with apple" identity provider.
Everything worked as expected, and then a few days ago the sign in stopped working - displaying "Sign Up Not Completed" error.
I tried recreating the Private Key, and also recreating the Service Identifier.
Nothing helped.
Anyone experiencing anything like this?
Assuming that I have an iOS app which is managing the payment method of the user (e.g. credit card), what is preventing me to build a CarPlay app (e.g. EV charging app) with a button that triggers the payment of the charging station?
I mean, what are the advantages that will be introduced with iOS 16 that will allow the payment of gas stations from CarPlay?
Post not yet marked as solved
HI - I'm trying to implement a Barnes-Hut N-Body simulation code in Metal. The code requires construction of a tree. The CUDA implementation uses locks to allow insertion of new nodes into the tree.
I've tried using an array of atomic ints in a test case, but this doesn't seem to work:
kernel void binning_compute_function(
device MyArgument *arg1 [[ buffer(0)]],
constant float *ranarr [[ buffer(1) ]],
device volatile atomic_int *flagArr [[ buffer(2) ]],
device int *bins [[buffer(3)]],
uint index [[ thread_position_in_grid ]]) {
int expected=0;
int ibin = (ranarr[index] * arg1->nbins);
for (int i = 0; i < 100000000; i++) {
// Lock
expected = 0;
bool test = !atomic_compare_exchange_weak_explicit(&flagArr[ibin],&expected,1,memory_order_relaxed,memory_order_relaxed);
if (test) {
bins[ibin] += 1;
atomic_store_explicit(&flagArr[ibin], 0, memory_order_relaxed);
break;
}
}
}
Any other suggestions? The alternative is to use the CPU for this, but seems a shame to miss out on the processing power of the GPU.
Thank you,
Colin
Post not yet marked as solved
Hello,
I would like to consult account deletion process in the app.
We manually delete the user account across many systems including our several databases, mailing lists, customer service ticketing SW, etc.
Once we get a deletion request, we find the user via email in our database, but then only work with the unique user ID to proceed with the deletion. So once we delete all the user data, we have no way to track the deletion back to the original email.
To sum it up, our manual deletion process is guaranteed to be completed in 14 days, we just don't have a way to contact the user once it is completed as we do not possess user's contact information anymore.
Do you have any tips? Do we have to contact them after deletion? Thank you very much.
Post not yet marked as solved
I used xcode 13 to debug this share extension app using instruments > allocations but after updating the iOS version to 15.5 on that iphone, I had to upgrade xcode version. But instruments now lost connection to the device each time I'm trying to run. Any clues about what is happening?
Post not yet marked as solved
Hello everyone,
I'm new as iOS developper, and I'm facing a WebSocket error due to my certificate...
Error Name : errSSLXCertChainInvalid
Error Code : -9807
I have a server on a device, on which I want to start a secure WebSocket communication (wss://10.0.1.1:8080/).
The server has my certificate .pem and works very well with my android App.
When I choose Debug in Xcode buildConfiguration, there is no problem for the WebSocket communication (I think Debug doesn't check certificate during the Handshake process). But when I choose Release, I have the error because I didn't add the certificate on the iOS App. I don't really know how to add it properly...
But, I also tried to disable HTTPS checks (ATS) :
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
but that din't work either.
If anyone can help me?
Thank you
Post not yet marked as solved
COCO has set a standard in Object Detection task dataset format. Is there a tool for translating this dataset format to CreateML format so that data can be used in CreateML for training and evaluation? I've found Roboflow but I would rather use a python script rather than this platform as it seems too complex for my needs.
Post not yet marked as solved
After installing the latest beta (to try out the new Layout protocol), my Xcode 13 project has ceased displaying simulators in the build destinations. things I have tried:
Opening the Platforms Preference pane in Xcode 14 (recommended by a dev on Twitter
Deleting the Library/Developer folder and Xcode 14, then re-downloading the 15.4 simulator
I've spent two days on this now, and I would like to get back to programming. Does anyone have any wisdom to share?
Many thanks,
Andy
Post not yet marked as solved
With binaries built using XCode 13.1 and executing on Monterey 12.0.1
When i load a dylib I get following error:
dlopen failed for DYLIB: (/Library/Application Support/Test/cor.dylib) Error:(dlopen(/Library/Application Support/Test/cor.dylib, 0x0006): tried: '/Library/Application Support/Test/cor.dylib' (slice is not page aligned, fat file, but missing compatible architecture (have 'x86_64,arm64', need 'x86_64h'))).
This is seen when I sign the binary. Same binary which is unsgined works properly.
Both the loader binary and the dylib are built using Standard Architecture (universal). So i am clueleses what might be the error.
Post not yet marked as solved
I am seeing this crashes in 15.5 version, I am using flutter code base seeing like this and dlyd issues many crashes
Post not yet marked as solved
How do I find the link to download the app so I can put it on my website?
Post not yet marked as solved
I am wondering if Apple allows us to get access to iCloud Mail inbox and read user's messages in iOS application?
I did a lot of research but couldn't find a concrete answer.
For example, on Google, this is possible by using OAuth.
Post not yet marked as solved
We have been trying to understand why the Mac OS Terminal, when invoked with open, does not pass along the environment variables.
How to reproduce?
Create a new file /tmp/example.sh
#!/bin/sh
echo "SAMPLE_ENV='$SAMPLE_ENV'"
SAMPLE_ENV=123 open -a Terminal /tmp/example.command
Only prints: SAMPLE_ENV=''
Even when using
SAMPLE_ENV=123 open --env SAMPLE_ENV=1234 -a Terminal /tmp/example.sh
it will only print SAMPLE_ENV=''
We know for sure that this was working several years ago. Why was the feature removed or is this a bug?
Any workaround?
Is there a workaround on how to launch a script in a new Terminal Window while passing the environment variables correctly?
Related
https://stackoverflow.com/questions/69768133/react-native-envs-are-undefined-in-metro-bundlers-config-file-when-bundling/73036234