I'm new to Xcode and decided to give it a try, however, I'm unable to preview even the default "hello, world" message.
I've tried downloading Xcode on the App Store on Mac and from the official website, but I couldn't go pass the "Preparing (Automatic) iPhone Simulator."
I've also tried the following line of code on Terminal, but nada:
xcrun simctl erase all
Here's what I see for almost two hours now (it makes no sense):
My system specs:
iMac Retina 4K, 21.5-inch, 2019, 3 GHz Intel Core i5 6-Core, Radeon Pro 560X 4 GB, 8 GB 2667 MHz DDR4 (two 4gb core each), 1TB SSD.
I've coded way bigger web projects using various applications, but Xcode can't even preview the sample file?
Please, help. I would really like to code using Swift. :)
Dive into the vast array of tools, services, and support available to developers.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I encountered a problem when adding a new custom font in Xcode 16.1. After including the font and opening my XIB files, the interface preview became blank and the application seemed to experience a heavy load.
To troubleshoot, I removed all custom fonts, and everything returned to normal functionality. However, even after reinstalling Xcode, the issue persisted when adding the font again.
The XIB preview loaded correctly:
The XIB preview turned blank and became unresponsive:
Hi,
I need to access my private and public key that i have on my iPhone in folder that i named Keys. Directory is located On My IPhone. How can i access this directory? How do I know its path?
Please help.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hello,
I submitted my application to enroll in the Apple Developer Program , but I have not received any response or update regarding my request.
Details:
• Submission Date: 01/20/2025
• Account Type: [Individual/Organization]
I have already checked my email, including spam/junk folders, and confirmed that my payment (if applicable) was processed.
Can someone assist me in checking the status of my application or provide guidance on the next steps?
Thank you for your help!
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Hi, I have recently downloaded the app to start learning how to code in swift and so on.
On my first try I have gotten the error stating that ”.swiftpm files cannot be opened”. I have followed some forum posts. I restarted my iPad several times and redown the app several times. I tried to disable the iCloud sync but I think I deleted the iCloud directory entirely that just results in the app closing on any action taken. (such as pressing the “New App” option or choosing the quick actions to make apps).
Is there a way to fix this?
Any help is appreciate, please ask me to provide any extra needed information.
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift Playground
Playground Support
Hi,
I'm not sure why but when my fileURL is .jpg file and I drop the file from my app to Finder folders it make the dropped file as .jpeg
Is there a way to fix it?
[.onDrag {
if FileManager.default.fileExists(atPath: file.path) {
// Provide the file as an item for dragging
let fileURL = URL(fileURLWithPath: file.path)
let itemProvider = NSItemProvider(contentsOf: fileURL)
// Remove the file extension in the suggestedName
let baseNameWithoutExtension = fileURL.deletingPathExtension().lastPathComponent
itemProvider?.suggestedName = baseNameWithoutExtension
return itemProvider ?? NSItemProvider()
} else {
// Handle the case where the file no longer exists
print("File no longer exists at path: \(file.path)")
return NSItemProvider()
}
})
I am helping my company to renew the Enterprise Account, this exercise had been running smoothly in previous year. However, we did submit the application almost 1 month in advance, however, no reply or status update received yet. We had raised several tickets in support but helpless, our account is going to expired on 29-Dec-2024, anyone can share what should we do?
I keep having to delete keys in com.apple.dt.Xcode.plist in order to paste in an URL to a package without having to deal with and endless spinner. Then, after I do that to bring in a package that has a macro, it's a crap shoot that it will recognize the macro when I try to import it.
What's the deal?
I can sucessfully send pushes to an app (which has been installed/run via Xcode) when the pushes are going through the Apple sandbox server.
However I want to test the server is configured correctly to send them through the Apple production server.
In the Xcode scheme I tried to change the build configuration to release (and ticked debug executable off) ,however the pushes still only work when sent through the sandbox.
Is there a way of installing/running the app using Xcode such that its compatible with the push production environment?
Does the APS Environment entitlement come into play here? this only ever says development.
(The app is on behalf of a 3rd party company, they've added me to their apple developer account but with limited powers, I can't upload to Testflight nor make an ad-hoc release with with to test with)
Hello,
i have apple account with name droob app, i am trying to enroll to apple developer program, with my name, but when i submit the requested fields , i get this message :
Your enrollment in the Apple Developer Program could not be completed at this time.
what should i do to complete enrollment process
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Just this error is coming again and again I just updated the Xcode today.
Thanks
Zipzy Games
Hola
Como están? Quisiera saber cuando se demora un apple en enviar el correo en respuesta a la solicitud de paquete de implementaron para la licencia Fairplay ya que se hizo hace 5-6 días
Muchas gracias
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Dear Apple developer team, we use ibeacon to wake up and activate the app for Bluetooth connection in app development, but there are some problems, the problems are as follows:
1, called CLLocationManager startRangingBeaconsInRegion and startMonitoringForRegion, open after iBeacon area detection and ranging. After completely leave iBeacon radio range, locationManager: didExitRegion: callback is not timely. When the screen is on, wait 1 minute for the callback. When the phone is in the state of the screen, it needs to wait for more than 3 minutes, and occasionally wait for more than 10 minutes without callback;
2. Can the success rate of ibeacon approach 100%? How to improve the success rate of ibeacon live wake app?
3. Using ibeacon technology, in what scenarios will the app be pulled alive to wake up during user use?
4. How long can the app process its business after it is woken up?
5. Can ibeacon technology and Bluetooth saving and recovery mechanism be used to greatly improve the probability of activating the app for Bluetooth connection, and can cover various use scenarios of users' lives to awaken the activating app?
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
How to collaborate project between Unity Dev and Xcode SwiftUI Dev, is it possible..?
and how is the workflow for that if possible..?
I have an iOS application view that contains an AVCaptureSession, AVCaptureVideoPreviewLayer (created with the AVCaptureSession), and a UIImageView (in the backend the app takes the output of the AVCaptureSession, runs it through a Semantic Segmentation model, and displays the output in the UIImageView).
When I pause the app and run the “Debug View Hierarchy”, it shows the UIImageView, the relevant buttons and labels.
However, it does not seem to show AVCaptureVideoPreviewLayer that I have set up in my application.
Is there some special set up that needs to be done to be able to view Camera Related features?
The following is part of the view code, a component that is used to render the AVCaptureVideoPreviewLayer (not sure if this is enough, please let me know if its not):
class CameraViewController: UIViewController {
var session: AVCaptureSession?
var frameRect: CGRect = CGRect()
var rootLayer: CALayer! = nil
private var previewLayer: AVCaptureVideoPreviewLayer! = nil
init(session: AVCaptureSession) {
self.session = session
super.init(nibName: nil, bundle: nil)
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
override func viewDidLoad() {
super.viewDidLoad()
setUp(session: session!)
}
private func setUp(session: AVCaptureSession) {
previewLayer = AVCaptureVideoPreviewLayer(session: session)
previewLayer.videoGravity = AVLayerVideoGravity.resizeAspectFill
previewLayer.frame = self.frameRect
DispatchQueue.main.async { [weak self] in
self!.view.layer.addSublayer(self!.previewLayer)
//self!.view.layer.addSublayer(self!.detectionLayer)
}
}
}
struct HostedCameraViewController: UIViewControllerRepresentable{
var session: AVCaptureSession!
var frameRect: CGRect
func makeUIViewController(context: Context) -> CameraViewController {
let viewController = CameraViewController(session: session)
viewController.frameRect = frameRect
return viewController
}
func updateUIViewController(_ uiView: CameraViewController, context: Context) {
}
}
I am unable to proceed with the Apple Developer program as my identity could not be verified through the Apple Developer app. However, I have all the necessary company documentation ready and can provide it upon request.
This is an urgent matter, as I need this account to deploy our company’s app as soon as possible.
Please advise on the next steps or required information/documentation to resolve this issue.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I'm receiving this error when attempting to log into my game and authenticating via Firebase and Game Center. I am using Unity to develop my game and have been able to successfully authenticate with Google Play and Apple Sign In but Game Center is giving some trouble. The error seems easy enough except I have triple checked that I am signed in to Game Center with the profile that is set up in Sandbox Testing.
Other things I have verified:
I have a provisioning profile and game center is on it.
In xCode I have Game Center on my signing capabilities, entitlements, and have the GameKit.framework in my Link Binary with Libraries.
Any ideas as to what may be causing this error to throw? Maybe another step I missed somewhere?
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I've signed up for the UK developer program since during application all it asked for was my address, nowhere did it ask about my nationality. But I am not a UK citizen and the W-8BEN form is locked to UK as a citizen/region and I have to swear that all is truthful to submit it. What am I supposed to do?
Production build on eas failing for a couple of days. Submitted a request for information day before yesterday, but I was wondering if anyone else has been having this problem. I will post any update from Apple if/when I get it.
Topic:
Developer Tools & Services
SubTopic:
General
Years ago, I created a business account within the Apple Developer Program. The business has since been dissolved. How can I return to an individual account to publish new applications?
Sticking with the old organization seems problematic due to tax info, etc. being invalid.
Apple Support told me that I'd need to create a new Apple ID account but this seems equally troublesome. I'm sure I'm not the first face this situation.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program