Dive into the vast array of tools and services available to developers.

Post

Replies

Boosts

Views

Activity

Make a Finder window open when a disk image mounts
When making a disk image for software distribution, it used to be possible to make a Finder window automatically open when the disk image is mounted, using a command like sudo bless --folder dirPath --openfolder dirPath on a read-write disk image. However, as of Ventura, attempting to do so produces an error message bless: The 'openfolder' option is deprecated and the command fails to do what I want. Disk images that were set up this way in years past continue to work. I suppose I could duplicate a working writable disk image, remove the old contents and put in new contents, but that seems a little hacky. Is there an alternative?
11
0
309
May ’24
Xcode 15 beta 6: ld: warning: building for 'macCatalyst', but linking in dylib built
In Xcode 15 beta 6, building any Mac Catalyst project will encounter the following Linker warning. ld: warning: building for 'macCatalyst', but linking in dylib (/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa.tbd) built for 'macOS'
23
11
4.6k
Aug ’23
Default Hyperlink Tag (<a>) Apple News Format
Is there a way to give a default text color to tags in apple news format. I'm testing this in Apple News Preview currently, and I can't figure out what's wrong. According to the documentation, I should be able to style the tag using "default-tag-a" https://developer.apple.com/documentation/apple_news/apple_news_format/components/using_html_with_apple_news_format#2992870 However, this doesn't appear to work. It works perfectly when I do paragraph tags like "default-tag-p" or span tags like "default-tag-span". Maybe, I'm missing something. Here is my code "textStyles": { "default-tag-a": { "textColor": "#1967d2" } } when I add a font like "textStyles": { "default-tag-a": { "fontName": "Georgia", "textColor": "#1967d2" } } This does change the font. So i'm wondering can I change the text color for links in apple news? and if so, how? Thanks for your assistance.
0
0
157
4w
Creating a test project
A highly-effective debugging technique is to create a test project focused on your issue, and iterate on solutions using only the test project. We often ask developers to provide us with a small Xcode test project because it helps focus a discussion on the relevant Apple APIs. An ideal test project: Focuses only on specific Apple APIs Uses the minimum amount of code possible (usually just a few files) Reliably demonstrates the problem for anyone who builds the project Contains no third-party libraries Builds with no warnings using Xcode's default build settings Does not require any third-party build tools There are two approaches to creating a focused Xcode project: Create a new project starting from one of Xcode's built-in templates, and add code to demonstrate the issue. Start with a copy of your existing project, and remove code not essential to the issue. Remove code iteratively, re-testing after every removal. If you find that you can no longer demonstrate the issue after removing a particular piece of code, it’s likely that the issue is within the last-removed code. After restoring this code to the project, keep reducing the surrounding code until everything remaining is essential to the issue. The first method is often faster if you can quickly find the right functionality to add. If that doesn't work out, the second method is usually a reliable approach. In many cases, creating the test project will help you locate and solve the issue by yourself. Even if it doesn't, the test project still has value! It provides a smaller starting point for others to look into your issue. And if the test project helps identify a bug, then you can attach it to a bug report; the engineer looking at your report will appreciate the effort. Sharing a link to a test project We're always willing to take a look at your test project when it satisfies the characteristics listed above. Just share a link to where we can find it as part of your post. The forums have a list of websites you can link to. If you find that your link isn't visible in the preview of your post, just include the URL without using Markdown link syntax. For example, this link with Markdown won't appear: Apple is based in [Cupertino](https://www.cupertino.org). but this version will: Apple is based in Cupertino. https://www.cupertino.org Revision History 2024-05-30 Initial version.
0
0
120
May ’24
mediafilesegmenter can't create format reader
I am using HTTP Live Streaming Tools to segment a spatial video (MV-HEVC) recorded by Vision Pro. I first used the macOS build on my MacBook, it works beautifully with the command: mediafilesegmenter -r -f path/to/destination path/to/movie.MOV But when I tried to use the CentOS build in a Docker container and segment the exact same file using the exact same command, it gives the following error: can't create format reader /path/to/movie.MOV 561211770 Unable to find any valid tracks to segment. I looked up the error code, it seems to correspond to kAudioSessionBadPropertySizeError. Any idea why?
2
0
205
May ’24
Developer mode option is not showing under Privacy & Policy in the Apple VisionPro
I want to run my custom application on my VisionPro. I have paired my VisionPro with Xcode successfully but when I am running it it shows me to enable developer mode in VisionPro. When I followed the options and Went to Settings -> Privacy & Security. There is no developer mode option visible at any place. Please let me know how I can enable the developer option in VisionPro. Thanks
0
0
212
May ’24
Enterprise Distribution certificate
My apple Account having Two active 'iOS Distribution' now Both are expected to Expire in next ~20 day's. Below are my queries looking for the details. a) can we create the new (third) iOS Distribution certificate for the build distribution ? b) how can we identified the current Active application provisioning profiles are boing with which iOS Distribution certificate (as under the Profile details showing two certificate having the same date) , so not able ti identified which certificate currently is in use?
2
0
319
Apr ’24
how to develop own MDM server
We are considering developing our own MDM server for internal app distribution. Is it necessary to enroll in the Apple Enterprise Developer Program to develop MDM server? Currently, our company is only enrolled in the Apple Developer Program and Business Manager. Additionally, since we have fewer than 100 employees, it is difficult for us to join the Enterprise Program. In this case, is it not possible for us to set up an MDM server?
1
0
261
May ’24
ld: symbol(s) not found for architecture arm64
I'm trying to compile a little project in C with the following structure: Project | |-&gt;Headers |-&gt;library.h | |-&gt;src |-&gt;main.c |-&gt;library.c I've checked all my files, my configurations files and I'm getting the same error everytime, someone could please help me? :( Undefined symbols for architecture arm64: "_getfavoritenumber", referenced from: _main in main-99c109.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
2
0
240
May ’24