Post

Replies

Boosts

Views

Activity

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
168
3w
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
710
Jan ’24
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
765
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
836
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
967
Jan ’21
Crazy behavior from open in Big Sur
In Big Sur, I noticed that the open command no longer distinguishes different copies of an application. For example, if I have /Applications/AppV1.app and /AppicationsAppV2.app, and AppV1.app is running, then open /Applications/AppV2.app is simply bring AppV1.app rather than opening AppV2.ap. I have to use the -n flag to open the second version. This seemed like a regression to me (I filed FB8806330 about it), but perhaps intentional, or at least justifiable. But now I've discovered a much worse symptom. If App.app and Bpp.app is another application by my company, then open /Applications/Bpp.app brings App.app to the foreground rather than opening Bpp.app. All the applications have distinct bundle identifiers. Indeed open -b com.Company.Bpp will also bring App.app to the foreground. This is just a crazy bug, right? Any ideas what it might be keying off? It can certainly tell the difference between our apps and, say, Safari. So I'm not sure why it can't tell our applications apart. And if anyone from Apple is here, should I add this worse symptom to my existing FB, or open a new one? Thanks
2
0
890
Nov ’20
Architecture-specific defines and/or libraries using CMake
Most parts of our application are built using CMake because they are cross-platform. Now, I know I can set CMAKE_OSX_ARCHITECTURES to build a a fat binary, and it works fine for our smaller, self-contained components. However, some components use optimized third-party libraries that are architecture specific. There's really two cases here: The library interface is standard (e.g., BLAS) and we're just using a different library to provide the implementation. Our own code path depends on the library, in which case we pass in a define (using target_compile_definitions) know which code to use. Is there a way to make the linker libraries or compile definitions depend on the target architecture? For the first case, I might try listing both and hoping only the needed slice from each one is used (though that presuppose either that they each only have one slice, or that the single-slice one comes first). But in the second case, I really don't see how to do this, short of having two separate thin targets that are manually lipo'd together.
0
0
585
Jul ’20