Thank you, it looks like since I was calling setTaskCompleted right after calling my post function; and that caused it to not complete the URLSession call.
I added a semaphore to wait til the URLSession task completes and thats did the trick.
Post
Replies
Boosts
Views
Activity
By any chance did you ever find an answer to this?
Oh wow, thanks cant believe I have been doing it wrong all this time - SMH. Yes, my project has multiple command-line tools and a couple of .app applications. All of the project is compiled via a bash script. Each of them has it's own target and Xcode project which are all tied to a Xcode workspace.
Hi Quinn,
Thanks for the reply. But it is signed, thats whats killing me. My project is a Xcode project and I compile it via xcodebuild.
bash-3.2codesign -d -vv /private/var/tmp/MPUpdater
Executable=/private/var/tmp/MPUpdater
Identifier=com.mp.updater
Format=Mach-O universal (x86_64 arm64)
CodeDirectory v=20500 size=11103 flags=0x10000(runtime) hashes=338+5 location=embedded
Signature size=9048
Authority=Apple Development: Charles Heizer (W42PNHC2DS)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Timestamp=Apr 8, 2021 at 3:02:23 PM
Info.plist entries=7
TeamIdentifier=BLZUAP2L36
Runtime Version=11.1.0
Sealed Resources=none
Internal requirements count=1 size=184
Oh yeah, it looks like NWPathMonitor is a Swift only API. I could not switch the docs to Obj-C
Thanks for the response. The nsurlsessiontasktransactionmetrics looks really cool and I will play around with that for future stuff.None of these options will tell me what I want unfortunately. I guess another way to put it, if my bandwidth is less that 2mbps as an example. Then I don’t want to allow the download. I want to tell the user the link is too slow, and ask them if they really want to begin. I hope this makes more sense.
Awesome, thanks! I mis-read the docs on reversed(). I was under the impression that it returned the same data type. Thanks again!
sorry, yes I tried reversed()The error I get is ...Cannot convert value of type 'ReversedCollection<(Range<Int>)>' to expected argument type 'Range<Data.Index>' (aka 'Range<Int>')