I am facing an issue in iOS 18 that works fine in iOS 17 and earlier.
This happens when you set the project to use Swift 6, if you set swift 5 this will work ok.
The app has the Privacy - Camera Usage Description key in the Info.plist.
It is a wrapper that implements UIViewControllerRepresentable to create the UIViewController. This wrapper is within a view that gets pushed when the user presses a button (see snippet code below).
Sometimes, I get a popup asking for permission to access the camera, and the app crashes immediately. Other times, I don’t see the popup, and the app crashes right away.
I tried adding Task { @MainActor } within the requestAccess closure, but it did not resolve the issue. It does not matter the code within the closure; it crashes even if the closure is empty.
The crash trace shows _dispatch_assert_queue_fail (see the attached image).
Has anyone else experienced this issue? Any insights would be greatly appreciated.
The following code will crash if run as is.
***** Please add the Privacy - Camera Usage Description key in the Info.plist to prevent this issue.
import SwiftUI
import AVFoundation
struct ContentView: View {
var body: some View {
VStack {
Text("Hello, world!")
ViewControllerWrapper()
}
}
}
struct ViewControllerWrapper: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> ViewController {
ViewController()
}
func updateUIViewController(_ viewController: ViewController, context: Context) {}
}
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
AVCaptureDevice.requestAccess(for: .video) { _ in
}
}
}
Apple Developers
RSS for tagThis is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and foster a supportive community.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
So I got charged the annual developer fee on December 2024, and then again this February 2025.
Worse, a few days after getting charged twice, I received an email from Apple saying my developer account subscription has been suspended due to failure in paying the annual fee.
I already submitted a support ticket to Apple, but I haven't gotten a response yet.
Is there something else I can do?
Would appreaciate any help.
Thanks!
Hi! I am a 3rd year accounting student trying to install an SAP gui onto my brand new Macbook Air. Every time I download the app, it refuses to open and pops up with this error.
"CODESIGNING 1 Taskgated Invalid Signature"
I have Java installed for it and have followed my professor's directions, so it should be working. Can someone help me?
Topic:
Community
SubTopic:
Apple Developers
Hello all my app got rejected for this reason:
"The app crashed during review. Apps that crash negatively impact users.
Steps leading to crash:
when tapping "Take Photo" option
Review device details:
Device type: iPad Air (5th generation)
OS version: iPadOS 18.3.1"
In my info.plist I set only iPhone -Portrait. I do not want my app on iPad what can I do? Do I make an iPad version also? Thanks
Topic:
Community
SubTopic:
Apple Developers
Hi Team,
I just want to know the reasoning behind why there are two IPSW with same version and different build IDs.
Example: https://ipsw.me/iPhone12,3
Version: 18.3
BuildIDs: 22D64 and 22D63
Also, in future, on what devices this kind of two buildIDs will be created?
Topic:
Community
SubTopic:
Apple Developers
Hello! I am new here but could really use some support. For the last year or so I have been bugged by the feeling that my devices were not completely managed by myself. After this week I have seen my computer and devices do things on their own without me touching the keyboard. SO I am hoping someone here can help me get rid or at least get to the root of the problem as I do not know what else I can do! SO far I know they are accessing all my devices remotely but am unsure how they do it since someone times there is no wifi around, I'm thiniking bluetooth maybe or perhaps another form of devices talking and sharing info with each other. Any support helps!!!
Topic:
Community
SubTopic:
Apple Developers
Recently, I have decided to delete all my Twitter accounts, but it turns out an Apple ID was used for one of them, I am unable to delete this account due to that fact because I do not have access to the “email” required.
Twitter support says contact email provider, given that I used an Apple ID as the email, am I supposed to contact Apple support instead?
Topic:
Community
SubTopic:
Apple Developers
I'm getting an error when trying to login to iCloud.com. This only happens on my Windows 11 pc and not on my iPhone. I get the 2FA code on my phone, but on my pc it displays only the error. I also have checked the system status page from apple and everything is green there, so i have no idea what is happening.
Hello, why is apple won’t adding Just-In-Time compiler to ”Emulators” in the app store. And/or hypervisor for newer devices.
i feel like UTM (which is a PC Emulator) or other Apps that emulate need JIT to work properly, and will consume significantly less battery to emulate/virtualize, And will have a noticeably better performance than just not enabling JIT, and by the way jit is already being used on iPadOS/iOS 18.3/18.3.1 and newer/older version of that so being enabled by the choice of the developer of the App is more convenient than doing it with tools.
and by the why apple wont let emulators on iPads and newer iPhones do hypervisor, it’s better than JIT but requires a good cpu, like making it available to people with newer/powerful devices, hypervisor is better than JIT by a lot and removing it in iPadOS/iOS 18.4 was an unnecessary choice?, becuase it had a better potential in virtualization instead of emulating, and I feel like enabling it In M1-M2 iPads and A14-18pro and newer devices is just better from having it disabled, to unlock the fullest potential of the iPad it needs to have a app or something to do instead of just running high graphics games/or Apps.
Macos15照片app需要点击一下,不能直接进入,点击一次后,还要再点击一下,才能看到照片,希望能修复一下
I wish to have all spotlight services stopped on my MacBook, however with turning all options off in the settings and also the "Help Apple Improve Search" option, however the option turns back on whenever there is a restart on the laptop as well as background services running. How can I disable this permanently?
I have tried to following as well:
sudo mdutil -a -i off
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.metadata.mds.user.plist
sudo rm /Library/Preferences/com.apple.spotlight.plist
sudo launchctl disable system/com.apple.metadata.mds
However with ps aux | grep -E "mds|Spotlight|corespotlightd" it still shows spotlight related services running:
User1 73830 0.0 0.0 410741568 1680 s018 S+ 11:58am 0:00.00 grep -E mds|Spotlight|corespotlightd
root 3170 0.0 0.0 410682288 4816 ?? Ss 20Jan25 4:28.08 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mds_stores
root 3168 0.0 0.0 427023376 14864 ?? Ss 20Jan25 33:53.97 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds
User1 593 0.0 0.1 434378432 45456 ?? S 20Jan25 14:00.32 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/corespotlightd
What else can I try in order to stop these and to stay shut off after turning my laptop on and off again?
I used spotlight search for almost everything I do through cmd+space. However ever since i updated my laptop to MacOS Sequoia 15.3.1, the spotlight search won't give me app results:
for example i type "flux" and will get just web-based results, not the app. I tried going into the spotlight settings and only enabling applications to be searched for results and got nothing. I tried the same with the Notes app, i get the same result, i get some notes i wrote as result but not the actual app.
It doesn't happen on all apps for example Brave or Spotify work.
Hi, I'm struggling to access Keychain Access app on a brand new mac mini m4 pro running Sequoia 15.3.1.
After opening the app, I get a prompt to enter the current password; after I enter the correct password the first time, the prompt opens again.
I enter the correct password again and the app terminates.
I've checked Console and Keychain Access process logged:
Initial auth failed: Error Domain=com.apple.LocalAuthentication Code=-1000 "ACM policy evaluation succeeded, but ACM is still requesting 1:1, 3:1, 15:1 on ACMContext 111 after a retry." UserInfo={NSDebugDescription=ACM policy evaluation succeeded, but ACM is still requesting 1:1, 3:1, 15:1 on ACMContext 111 after a retry., NSLocalizedDescription=Authentication failure., BiometryType=1}
terminate:
void _NSDisableAutomaticTerminationAndLog(NSString *) Terminating
Attempting sudden termination (1st attempt)
...
App termination approved
I've also tried to update the password of my user but Keychain doesn't accept the new password.
Topic:
Community
SubTopic:
Apple Developers
The MacStudio has only one account on it, and that is of course an admin account. The password to this account is lost. The MacStudio has an association with my AppleID I log into developer.apple.com with. To recover, this procedure was followed:
The recovery mode was entered by holding down the power key for 15 seconds.
In the options that appeared the "Forgot all passwords" option was clicked on.
I entered the same credentials I log into developer.apple.com with. The credentials were accepted.
The shell was launched, and the in the shell the command "resetpasswords" entered.
The message: "If you don't know the password for any user on your Mac, you can deactivate your Mac and set new passwords for all users. An internet connection will be required to reactivate your Mac". Beneath this message there was in blue text: "Deactivate Mac".
I did not proceed after this because I was not sure what deactivation would mean for the files on the computer. On it there is code written in Swift that needs to be preserved. If the deactivation is done will the files be preserved, and be accessible? Or does a deactivation remove all files?
Topic:
Community
SubTopic:
Apple Developers
Sometimes, when I close the lid using the MacOs version Sequoia 15.2, with the configuration to require a password for 5 seconds, the system does not ask for the password as expected.
This happens sometimes even though nothing preventing the system from sleeping when you close and open the lid, but it still seems like a security concern.
Is there some known issue related to this problem or a way to avoid it?
Result of command pmset -g:
Configuration:
Здравствуйте я хочу стать тестировщиком приложений App Store
Topic:
Community
SubTopic:
Apple Developers
when i am on my hidden photos album in my iphone, not all the photos are shown, why?
Topic:
Community
SubTopic:
Apple Developers
I have an old application. It worked at one time. Due to changes in the user environment, it is now possible to download applications from the AppStore. I built the app and sent it for review. And I received a report that my app crashed at startup. I tried to reproduce the fall for myself, but it didn't work out. In the crash log, I couldn't figure out what was wrong with the app. Please help me and tell me what I should look for in the log or in the application.
The crash location (which I found in the log):
_UIPathLazyImageAsset imageWithConfiguration
cl-1.crash
cl-1-n.crash
Topic:
Community
SubTopic:
Apple Developers
I have a iPhone 14 Pro Max device with iOS 18.2.1 but I am facing an in which the device gets restart abruptly.Interestingly, today the device is not restarting at all. I attempted a hard reset by pressing the volume up button, followed by the volume down button, and then holding the power button, but this method was unsuccessful. When I connect the device to a charger, the Apple logo appears, but it disappears after a short period, and the device does not progress beyond this point. I would appreciate any assistance in recovering my device.Has anyone experienced the same issue with the iPhone 14 series?
在使用xcode15.2与iOS14.2版本的手机进行调试时,发现OC编译的sdk无法正常传输数据给swift编写的项目。当我的手机连接xcode调试的时候,数据能够正常传输、转换。当我断开手机与xcode的连接的时候,就无法正常获取数据了。而这个问题目前我只发现在iOS14.2中。当我使用iOS17与iOS18手机调试时没有出现这个问题。请问有没有人遇到过相似的问题。