Welcome to the Apple Developer Forums:

Post your questions, exchange knowledge, and connect with fellow developers and Apple engineers on a variety of software development topics.

For questions about using Apple hardware and services, visit Apple Support Communities

Posts

Sort by:
Post not yet marked as solved
2 Views

MusicKit sample program with free developper account

I'd like to learn programming with Swift and specifically would like to see if I can write an app that helps me with AppleMusic. I have downloaded Xcode and the sample app from last year WWDC. In the setup steps, it says: "4. In Safari, visit the Certificates, Identifiers, and Profiles section of the developer web site." The problem is that this section is not available to free developer accounts. Is there a way to run that sample app with a free account? I tried skipping that part but get errors when I try to search for an album in the sample app. 2022-05-27 21:55:45.949931+0200 MusicAlbums[85714:5909816] [DataRequesting] Failed retrieving tokens for MusicDataRequest.Context(url: https://api.music.apple.com/v1/storefronts/be). Error = .developerTokenRequestFailed. Search request failed with error: .developerTokenRequestFailed. Thank you, ** Roland ** Brussels, Belgium
Asked
Post not yet marked as solved
2 Views

Xcode expansion and opening

I have a 2017 macbook pro with macOS monetery installed. I need to download Xcode and so i purchased a 1TB SSD to download it off of the developer website, i downloaded it on the SSD and now i have been stuck. For over a month now I have not been able to “expand” Xcode, it repeatedly freezes at one portion or at the very end for hours and so i just restart it. Only one time did the expansion process finish but then every time i would open Xcode, the icon would bounce for a second or two and then it would say “Xcode quit unexpectedly”. I’ve tried buying entire new hard drives, i have tired downloading different versions of Xcode, I have tried downloading off of the app store instead. The entry barrier to even get this app downloaded is so incredibly inconvenient and i don’t understand why. Please if anyone can help me i have spent 4 weeks now almost every night trying to just get Xcode to actually download and WORK.
Asked
by alamb15.
Post not yet marked as solved
1 Views

how to prioritise domain used to save password for app

I've an app which uses associated domains capability to enable universal links and password saving. Both features are working, except for one tiny detail. There are two domains associated with the app. Primary domain is the one commonly used to access the web app and the secondary domain is added due to historic reasons and handling universal links to older domain. When user sign in to the app using username and password it always gets saved against the secondary domain name and not the primary one. I tried changing the order in which the domains are defined in the entitlements file but no joy. I even tried adding webcredentials key to ASA file under both domains and that didn't work as well. Is there a way to direct iOS to prefer one domain over the other so that credential gets saved against the primary domain?
Asked
by aswin_sk.
Post not yet marked as solved
9 Views

Since Live Preview Debug has been removed from Xcode 13, what would be the best way to debug a SwiftUI View when there is not path to this View yet?

As some discussion suggested (https://developer.apple.com/forums/thread/683773), that the Live Preview debug function has been removed from Xcode 13 for some reason. I wonder what would be the best practice to debug a SwfitUI View when we have not yet established a path from the App's entry point to this View?
Asked
Post not yet marked as solved
8 Views

Build not showing

This is log no Expo, but no showing in testFlight Starting iOS app upload 2 Downloading archive 3 Preparing artifact 4 Creating ascApiJsonKey.json file with ASC credentials 5 Uploading iOS app to TestFlight... 6 Uploading the app with fastlane pilot 7 8 --- Step: pilot --- 9 10 Creating authorization token for App Store Connect API 11 Ready to upload new build to TestFlight (App: 1626306526)... 12 Going to upload updated app to App Store Connect 13 This might take a few minutes. Please don't interrupt the script. 14 iTunes Transporter successfully finished its job 15 16 Successfully uploaded package to App Store Connect. It might take a few minutes until it's visible online. 17 18 Successfully uploaded the new binary to App Store Connect 19 skip_waiting_for_build_processing used and no changelog supplied - skipping waiting for build processing 20 The app has been uploaded successfully
Asked
Post not yet marked as solved
10 Views

Table cell focus after selection

Hi, I have a controller with a UITableView. If the user, on an iPad with a keyboard or on the Mac, press the tab key, the first cell is focused showing a border. The user can then move the focus using the keyboard arrows. That's ok. The problem is that the cell is focused also when the cell is selected manually, i.e. by tapping on it. It is possibile to keep the cell focus feature when the user use the tab key, but stop focusing the cell when it's activated directly by tapping on it? Thank you
Asked
by DaleOne.
Post not yet marked as solved
6 Views

Adding/Editing Hot Corners on macOS Mojave and later

I want to know if there is a way to add or edit Hot Corners on macOS for my app. If there isn't, is there a workaround for it?
Asked
Post not yet marked as solved
13 Views

Promotional Subscription Testing

I have added 2 Subscription for my app. I have "Promotional Offer" discount too for the subscription. But While testing SKProductDiscount shows Discount count 0 and an alert is showing which say "You are not eligible for offer". I have attached the screenshoot too. Can any one help to resolve this issue. Thanks
Asked
Post not yet marked as solved
16 Views

Need faster Xcode Metal capture button

By the time I background the app, hit the capture button, wait on the UI popup to appear, and then hit the "capture" button in the popup, the even that I was trying to capture has already passed. Can we get a button, or double-click on the slanted M icon to just do the capture instead of verify that I want to. All told, it's about 5s to get a capture to execute and that is too long when running at 60 or 120Hz. I know there's programmatic capture too, but we don't have that hooked up yet.
Asked
Post not yet marked as solved
27 Views

Help a newbie with a great idea

I'm looking for help on where I should even start with building a very large AutoCAD integrated platform specifically for millwork industry that is user friendly. This is a huge opportunity as the software on the market today is very cumbersome. Just point me in the right direction of where I should start researching platforms that would be best for this. I have basically no coding experience but I'm a very intuitive fast learner. Currently the software on the market are using spreadsheets for the most part. I'd like to make a user interface that is up with the times. Thanks
Asked
by Chumps11.
Post not yet marked as solved
11 Views

Checking MacOS updates failing with "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)"

Since a couple of weeks, checking for updates on my Mac mini 2018 (our build server) is failing. In the UI it just tells me there are no updates available. Which is tricky.. and not true. I am on Monterey 12.2.1. The current release is 12.4. When I looked into this issue I found in the /var/log/install.log: (appendix 1) SoftwareUpdateFailure-appendix1.txt Note several occurrences of: 2022-05-27 16:12:11+02 FoxtrotBuildServer softwareupdated[291]: Failed Software Update - Refusing invalid certificate from host: swscan.apple.com in this log. Should I check for invalid certificates in the KeyChain? Which certificate should I check? Running it from a command window shows the following: FoxtrotBuildServer:s foxtrotbuildserver$ sudo softwareupdate -l Password: Software Update Tool Finding available software The operation couldn’t be completed. (NSURLErrorDomain error -1012.) FoxtrotBuildServer:s foxtrotbuildserver$  The 1012 error seems to indicate that the url has been requested too often in a certain time frame. Which could be caused by the fact that I work in a big company and many devices (including Macs) share the same external ip-address. When I try to load the failing url in Safari or using wget on that same machine it loads just fine. And quickly as well. I do want my machine to get updated a.s.a.p. I tried downloading a full install for Monterey 12.4 and install that. That ended after a few minutes with a general error message telling me that the installation failed. In the install log I saw it was trying to access that same url and also failing. My question is: what is wrong? What can I do about this? How to update my Mac to the latest version of MacOS? I should add the the Mac mini is located in a remote and hard-to-access data center. That limits my options. Please suggest.. Thanks and best regards, Frans
Post not yet marked as solved
22 Views

Reality composer export bugs

Hi, I have a strange problem with my exported reality composer scene. So i have composed a reality scene that is around 19mb with an animated character, two iphones, text prompts, and quite a few behaviors. When I export the project and share and use it on any of my devices(Iphone 12, X and older iPad) it works perfect. Whenever I share this same file with anyone else(tried friends and many models at apple store) the same bugs persist. Shadows are weird, but worst of all certain buttons(made from text prompts) that have a behavior attached to them are of incorrect size and don't behave correctly. I have tried exporting several times, from different devices, same result. Can anyone help?
Asked
by Ivanem.
Post not yet marked as solved
19 Views

Changelog for 0.64->0.65 USDZ tools

Hi - I'm a founder at an AR SaaS company that relies on the USDZ conversion tools to deliver quicklooks to our Apple device users. I was wondering if there was a changelog for the 0.64 to 0.65 update that I could access (whether publicly, or under NDA) as our content pipeline has baked in a lot of the old 0.64 quirks, issues and unsupported USD features that we discovered (things like avoiding multi-UV material mapping, or how to ensure GLTF texture transforms come through). If we knew the specific changes made - whether bugs fixed, or additional USD features supported - it would make upgrading much smoother and more predictable. Is there anyone I can contact to get a list like that?
Asked
by bferns.
Post not yet marked as solved
27 Views

Accessibility on full screen cell

I'm implementing a TableView with 3 cells and every cell fits the whole screen with the following code: func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { return self.view.frame.size.height } I'm trying to navigate over the cells using the VoiceOver but it does not jump to the next cell. VoiceOver does not recognize the elements outside the screen, even if it's a TableView? At the above example, the VoiceOver reads correctly the "Cell: 0" element, but it does not scroll to the next cell ("Cell: 1"). I couldn't find any documentation regarding Accessibility with full-screen elements such as these cells. Is there any website/docs I could take a look? Thanks.
Asked
Post not yet marked as solved
12 Views

Re-Signing B2B App using Push Notifications

I have been working on signing an app from a developer for our own purpose of publishing it to our intune company portal. The older version of the app I can sign and publish without issue. We do have an enterprise dev account, and all they provide us is the source code. The original version does not use Push notifications, nor does it show to have any framework subfolders. That one I sign by this script I've modified over time, ( security cms -D -i [mobilprovisionfilenamefromentdevsite].mobileprovision > provision.plist /usr/libexec/PlistBuddy -x -c 'Print :Entitlements' provision.plist > entitlements.plist unzip -qq [appname]22_5_1.ipa rm -rf Payload/[appname].app/_CodeSignature/ cp [mobilprovisionfilenamefromentdevsite].mobileprovision Payload/[appname].app/embedded.mobileprovision /usr/bin/codesign --force --deep --verify --sign "[Our Certificate name redacted]" -i [the app identity name from the identity creation] --entitlements entitlements.plist Payload/[appname].app/Frameworks/* codesign -dvv Payload/[appname].app/ zip -qr [appname]22_5_1-resigned.ipa Payload/ #Copy the support files for backup mkdir [appname]22_5_1-resigned-support mv entitlements.plist [appname]22_5_1-resigned-support mv Payload [appname]22_5_1-resigned-support mv provision.plist [appname]22_5_1-resigned-support ) This works fine for the old version without Frameworks or Push Notifications The New One I have just added two lines to the script to sign the FrameWorks. rm -rf Payload/[appname].app/Frameworks/*/_CodeSignature/ /usr/bin/codesign --force --deep --verify --sign "[Our Certificate name redacted]" -i [the app identity name from the identity creation] --entitlements entitlements.plist Payload/[appname].app/Frameworks/* When I try it with or without signing the FrameWorks I am unable to get the app to function. It will load on the IPhones then just give error of "Install Pending" or "Install Failed" (0x87D13B64) We do not have access to the source code, so I cannot put it into XCode to sign it. I did recreate the mobile provisioning profile with APN and created a Cert to attach to it. I'm not sure if I need to add that certificate somewhere else or if I'm signing something wrong, but this new version is kicking my ****..
Asked