Post

Replies

Boosts

Views

Activity

POST request failing only when app goes in to background.
I'm trying to troubleshoot what is going on with my app. The app works just fine when the user is logged in. It's able to post data to my REST API just fine. But when the app goes in to the background, the BGAppRefreshTask fires off just fine, but it's unable to post its data. There payload is super small a two keys and two short strings and thats it. I've tried searching on kCFStreamErrorCodeKey -2103 and ErrorDomainKey 4 but not much comes up. Here is my error with the URL string altered... Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3126EFA1-00D3-4423-A31B-D40AB900292D>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <3126EFA1-00D3-4423-A31B-D40AB900292D>.<1>" ), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://my.example.com/myapi/v1/device, NSErrorFailingURLKey=https://my.example.com/myapi/v1/device, _kCFStreamErrorDomainKey=4}
2
0
125
3w
Progress bar in NSTableCellView changes to other cell when scrolling
Hello, I'm not I00% sure how to ask this, so I apologize if I word it wrong. This is Obj-C from an older project I have. My app has a NSTableView and each cell has a button to perform and action and shows a progress bar in each cell. The issue I'm running in to is when I scroll down while a task is running the running progress bar shows running on a different cell. So if its he 2nd from the bottom and a scroll an even number of row its equivalent is now showing the progress bar. How do I target just that one cell; making it unique?
1
0
343
Jul ’24
xcodebuild destination for any mac
I have a script that has not been updated in a while that compiles my application using xcodebuild. I'm getting this warning which leads me to believe that it's only building the first destination. But when I check the binary with lipo -archs it shows has having both; which I want. --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:arm64, id:00006021-001071911ABBC01E, name:My Mac } { platform:macOS, arch:x86_64, id:00006021-001071911ABBC01E, name:My Mac } First, why the warning if I'm trying to build a Universal binary, and can I turn this off. Or should I leave it? Thanks!
1
0
960
Jun ’24
Codesign for Notarization Errors (test-requirement:)
Hello, I'm trying to Notarize my pkg which contains many binaries. Luckly all them seem to be suffering from the same errors. I I'm trying to fix just one so that I know all of which to fix.  The last one I'm having issues with is  -- "message": "The binary is not signed with a valid Developer ID certificate.", When I run the following, everything looks good. codesign -dv --verbose=4  But when I run the following  codesign -vvvv -R="notarized" --check-notarization /path/to/MyBinar I get the error  test-requirement: code failed to satisfy specified code requirement(s) Honestly Apple has made this so confusing and complicated, I'm really losing patience.
5
0
1.6k
Apr ’21
Network test API
Hello, I was playing around with the Network line Conditioner in my application and it was really useful.What I would like to do it add a Network bandwith test before my app begins to perform its work. Is there a API or a OpenSource class that will allow me to do this. My Google Foo is not really returning much help. Oh yeah must be Objective C, not Swift.Thanks!
4
0
878
May ’20
NSMakeRange() to Range in Swift
Hello, I'm porting some of my old code to Swift and I'm running in to a little issue. I'm trying to get a range but I cant seem to get it all to work.My old Obj-C code wasNSData *subData = [xData subdataWithRange:NSMakeRange(32, 16)];I'm not sure how to convert this to Swift 5. half-open range operator wont go in reverse. I tried.subdata(in: (16..&lt;32).reverse() )But that did not work.Thanks!
5
0
1.2k
Mar ’20