Diagnose errors due to invalid Apple Pay merchant identifier configurations by identifying the underlying causes of common errors and explore their potential solutions.
View Technote TN3173 >
General
RSS for tagDive into the vast array of tools and services available to developers.
Post
Replies
Boosts
Views
Activity
Learn best practices for creating rich text and image previews for display in the Messages app.
View Technote TN3156 >
Tried to watch on Apple TV. Nowhere to be found. Only WWDC23. Uninstalled/reinstalled the app. WWDC24 keynote appears, but launching it crashes the app. Every time.
Why does the developer app suck?
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?
Looks like the Weather Kit API is down again. Anybody having the same issue?
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'
Tested on: iPhone11+iOS16.5/iPhoneXS+iOS15.4.
Compile with: XCode12/13/14.
I tried following code, compile with arch=arm64e only, and result in crash "EXC_BAD_ACCESS". at "LDRAA"
std::cout << "";
The crash will not be triggered if:
compile with arch=arm64 only
compile with arch=arm64e only and tested on iOS<=14
not use any c++ I/O api
Assuming I have a static library where all global symbols need to be re-exported by the target executable. How do I extract these symbols into a file to be used with ld's -exported_symbols_list and Xcode's EXPORTED_SYMBOLS_FILE?
I was thinking about nm -gUjo … + sed but maybe there is abetter way?
Learn how to configure your App Clip to prevent it from being unavailable in the App Store.
View Technote TN3168 >
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.
I'm looking for a way (hopefully with a compiler directive) - in debug mode as well as in my UITests - to determine if a GPX file is being used. You use a GPX file for simulating location - it is set within the scheme settings under "Core Location - Allow Location Simulation".
Is this possible?
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.
My project is visionOS project. I add the package ‘swift-openapi-generator’ and add run build tool plug-ins as the vedio teached. When I build the project, xcode show me the error No such module 'Glibc'
hello;
The simulator exists but not in xcode 15.4?
why?
Why do we need to review the formatting for different versions of xcode, the same for development for MAC and IOS? This xcode bug too often. Still poorly documented.
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?
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
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?
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?
Learn techniques to help debug any coordinate space issue.
View Technote TN3124 >
I'm trying to compile a little project in C with the following structure:
Project
|
|->Headers
|->library.h
|
|->src
|->main.c
|->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)