Post

Replies

Boosts

Views

Created

Removing dependence on -undefined dynamic_lookup
One of the libraries that makes up my application depends on -undefined dynamic_lookup to link, and has since at least Snow Leopard if not earlier. I think iOS hasn't liked this for a while, but with the new linker I'm getting deprecation warnings even on OS X. I don't entirely understand what this flag does, other than it makes the build successful. :) So I'm at a loss on how to even approach fixing it. At this point, even links to useful resources would be appreciated, since googling hasn't yielded much beyond "remove -undefined to quiet the deprecation warning." FWIW, there is a bit of circular dependence between this library and another. On another OS, we need a carefully choreographed dance of building object files, then import libraries, then final linking to make this all work. So I suspect this may be related, but even if I'm correct, I don't know what would be the equivalent tools on Apple platforms.
1
0
598
Feb ’25
Bizarre networking problem
On my MBP, I have two accounts, my main account and the "clean" account. (To simulate being a "normal" user, or for debugging purposes.) The "clean" account has no trouble connecting to my company WiFi, which uses a radius server. I'm not sure of the exact WiFi settings, but I could look it up in it really matters. My normal account can't connect to the server, in a really bizarre way. Every time I attempt to connected, it goes through the following steps Asks for a user name and password, as if I hadn't previously asked to store them. Asks me to import the certificate for the radius server, as if I can't see it list in Keychain Access. Among existing keys to use to use for the connection, it only lists my Developer Certificate keys. After going through all that and possibly entering my network username and password one more time, the WiFi bars in the status area are all lit up as if I'm connected. However, if you look at the network list underneath it, you see the indefinite progress indicator percolating next to the network name instead of WiFi bars, and I don't actually have access. After a while of that (at least 30 seconds if not longer), the situation flips. The bars next to the network name in the drop-down become sold active color, as if I'm connecting, but the WiFi bars in the status area start moving up and down as if connecting. I still have no network. Eventually, it disconnects, and reverts to whatever other network it can find. If I login to both accounts, connect from the "clean" account, and then fast user switch to my main account, the network disconnects. I don't know if that's a feature or a bug. Does anybody have any ideas on what could be going wrong and how to fix it? Or even ideas and how to debug what it's doing while spinning like crazy at me? Thanks!
0
0
289
Dec ’24
Detect if iOS app is running on Apple Silicon Mac using pure C
Is there a way in pure C (not Objective-C, and certainly not Swift) way to detect if an iOS app is running on a Mac? I'm aware of iOSAppOnMac, but AFAICT I'd need to write Objective-C code to use it. My application is quite old and large, with portions going back to the 1980s, so the burden of moving on the anything that can't be accessible directly from C is quite high.
2
0
954
Jan ’24
How python is available without triggering installation?
If you execute python3 and it is not pointing to an active developer tools, the user is prompted to install the command-line tools. Is there a way to test if python3 is actually available without triggering installation? (Our use case is that we would like to enumerate available python installs for the user to select from, without this accidentally triggering an install.)
0
0
843
Nov ’21
How to ask for the "true" hardware page size?
Things like vm.pagesize and vm_page_size return the page size of the running architecture. However, we need to know the true page size, so that, e.g., a Rosetta process will allocate enough memory to be mmaped by an ARM process (we use shared memory, among other methods, for IPC). I see in vm_page_size.h a vm_kernel_page_size. Is that the correct way to ask for the "hardware" page size?
0
0
861
Apr ’21
Unversioned frameworks OK on macOS?
I have always believed (perhaps becomes I am an old-timer working on OS X since before these i-things came along), that while frameworks on iOS are flat, frameworks on macOS are always versioned. In particular, they have a Versions directory, and any siblings of Versions are symlinks to Versions/Current/sibling. However, having just downloaded a thirty-party framework that we bundle, it is flat. There is no Versions directory, and at everything at top level is a real file and not a symlink. This has caused our code for resigning as needed to fall over because it expects a Versions directory. Obviously, we can can update our code to deal with a flat framework (or, I suppose, de-flatten the framework if we want). But before I do, is such a structure officially supported? I've never seen it before, so I wanted some confirmation, and some Googling didn't find any references to unversioned frameworks on macOS.
1
0
956
Mar ’21
Issues with LDAP, NFS, and VNC
I guess this question is rather meta, because I'm at least as interested in knowing how to get help as in some actual help. Anyway, we use LDAP and NFS to provide shared home directories for folk across machines, and enable screen sharing (maybe Remote Admin? I sometimes get these slightly confused) on networked Macs. Apparently, since Catalina, we have had issues where VNC logins from LDAP users hang (I think pretty reliably, but I'd have the check the notes from sysadmin). Afterwards, random things start to hang for other users (whether connected via VNC or SSH), until you have to reboot to do anything useful with the machine. If only local accounts use VNC while LDAP users use SSH, things are fine, except that a terminal it is not necessarily the best way to develop. This has become an issue as were setting up M1 Macs to expand the effort beyond the initial core team that worked on the DTK (which had local accounts only, obviously). So, first question, do these symptoms sound familiar to anyone? Any troubleshooting suggestions? Second, where could we get some actual support? Is this something we can use DTS ticket on? It's not really related to our development as such, but it sure is blocking our development work. And given the currently level of "Geniuses" (unlike 15 years ago, when you really could find someone to talk to at a store), I don't think asking one of them this question would be helpful. I'm not sure what other avenues there are. Any help would be appreciated.
3
0
1.1k
Jan ’21
ILP64 BLAS Interface from Accelerate?
Up until now, we have been using an optimized BLAS library for Intel processors. Now we are looking for replacements for Apple Silicon. I know that Accelerate provides such an interface. However, I haven't been able to find if it provides an ILP64, rather than LP64, interface, which is what we use on all 64-bit platforms. If it does, how do I access it? Thanks.
2
0
2.3k
Jul ’20