Posts

Post not yet marked as solved
0 Replies
111 Views
I'm running Sonoma 14.4 and have 3 external hi-res monitors. This is working great except I'd really like for the dock to appear on a specific screen -- which is not the designated "primary" screen. Alternately I'd like to have the dock appear on all screens. Is there an "Assign Dock to Screen #" setting hiding somewhere in Sys Settings? Or a dwrite command? Or sysctl? Or...? Thx!
Posted
by Transini.
Last updated
.
Post not yet marked as solved
1 Replies
411 Views
I have an iPhone 11 (MWJE2LL/A) for personal and development use. When I upgraded it to iOS 17.2.1 it stopped sync'ing to my computers. I can't sync or restore the iPhone. Both Finder and Music show the iPhone in the left column, but time out after 60 secs of "Loading...", finally stating: "The selected device could not be found." Xcode also does not see the connected iPhone, and does not list it in the available iOS build destinations. I have tried sync'ing using numerous Apple USB cables and computers (Mac Pro, 16" MacBook Pro, Mac Studio) all running macOS Sonoma 14.1. Is this a known bug in iOS 17.2? Is there a workaround so I can restore the iPhone and continue development work?
Posted
by Transini.
Last updated
.
Post not yet marked as solved
1 Replies
1.1k Views
macOS Ventura won't autolaunch a certain plist at boot, but manually it launches fine. I have a .plist (contents below) in /Library/LaunchDaemons to autolaunch Postscript-server at system boot: -rw-r--r-- 1 root wheel 1049 Dec 3 13:00 org.macports.postgresql13-server.plist This plist worked fine under macOS Monterey, but now under Ventura it doesn't autolaunch Postscript-server on bootup of the system. After every reboot I have to manually launch it by issuing: $ sudo launchctl load -w org.macports.postgresql13-server.plist Other plist-based programs I have DO autolaunch at boot, just not this one. What could the problem be? The file protection & ownership of the plist are correct, and it launches fine when done manually. I can't find any info in the console logs. <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" > <plist version='1.0'> <dict> <key>Label</key><string>org.macports.postgresql13-server</string> <key>ProgramArguments</key> <array> <string>/opt/local/bin/daemondo</string> <string>--label=postgresql13-server</string> <string>--start-cmd</string> <string>/opt/local/etc/LaunchDaemons/org.macports.postgresql13-server/postgresql13-server.wrapper</string> <string>start</string> <string>;</string> <string>--stop-cmd</string> <string>/opt/local/etc/LaunchDaemons/org.macports.postgresql13-server/postgresql13-server.wrapper</string> <string>stop</string> <string>;</string> <string>--restart-cmd</string> <string>/opt/local/etc/LaunchDaemons/org.macports.postgresql13-server/postgresql13-server.wrapper</string> <string>restart</string> <string>;</string> <string>--pid=none</string> </array> <key>Disabled</key><false/> <key>KeepAlive</key><true/> <key>RunAtLoad</key><true/> </dict> </plist>
Posted
by Transini.
Last updated
.
Post not yet marked as solved
1 Replies
470 Views
Xcode 14.1 / macOS Ventura Once again Xcode has dropped the "Projects and Targets List" pane, and no longer shows a target for my project in the Project Navigator. As a result, Xcode no longer displays the project settings tab bar; it's the one having tab elements named: General - Signing & Certificates - Resource Tags - Build Settings - Build Phases - Build Rules If I click on New -> Target... and try to manually add the target, Xcode complains that the target is already there. If I create one with a new name, it adds it but does not display it. Is there a hidden reveal icon I need to click on? Restarting Xcode.app doesn't reset it back to sanity. Short of having to create a new Xcode project, how can I get this to work again?
Posted
by Transini.
Last updated
.
Post marked as solved
4 Replies
805 Views
I'm using NSURLSession et al to download files in my iPhone app. It works correctly except for large (>20MB) files. Then, without exception, the NSURLSession:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite: callback returns -1 for totalBytesExpectedToWrite. Embedded in the NSURLSessionDownloadTask.response object there is an HTTP header dictionary with this key/value pair: "Content-Length" = ( 22268238 ); This is the correct value that I need so I can monitor the download progress, not the "expected value". How can I obtain this header value from the NSURLResponse object? If I access response.expectedContentLength it always returns -1. One would expect a -allHeaderFields method, or perhaps [response headerValueForKey:@"Content-Length"] or some such. Is there a way to obtain the NSURLResponse object's HTTP header values in a NSDictionary?
Posted
by Transini.
Last updated
.
Post marked as solved
4 Replies
710 Views
I'm working on an iOS iPhone app that requires two large (~200MB) bundled data files. I've added the data files to my Xcode project ("Target Membership"). When Xcode installs the app onto the iPhone, it does copy the data files over, but they don't appear in the app sandbox at runtime (e.g., /var/mobile/Containers/Data/Application/1485D9CE-B1EF-3A24-9611-43C6CD368572/Documents). Q1. Where are the data files located, and how can my app access them? Q2. Can I have Xcode install these files directly into the app's sandbox?
Posted
by Transini.
Last updated
.
Post not yet marked as solved
1 Replies
699 Views
Before macOS Big Sur, one could create an ad-hoc WiFi network using CWInterface's -startIBSSModeWithSSID: security: channel: password: error: But this appears to no longer function on Big Sur: The operation couldn’t be completed. (com.apple.coreWLAN.error error -3930.) What is the Big Sur way of programmatically establishing an ad-hoc network?
Posted
by Transini.
Last updated
.
Post not yet marked as solved
2 Replies
1.5k Views
My iOS 14 app needs to find the name of the currently connected network. However, the following code snippet always returns NULL: CFArrayRef interfacesArray = CNCopySupportedInterfaces(); The Xcode console has this output during runtime: [] nehelper sent invalid result code [1] for Wi-Fi information request I have the following entitlements/capabilities set: Access WiFi Information Wireless Accessory Configuration What else is needed?
Posted
by Transini.
Last updated
.