Up until now, it was possible to check in build scripts via the ENABLE_PREVIEWS environment variable whether a build for a SwiftUI preview is being executed.
In addition, it was also possible to conditionally compile code for SwiftUI or exclude it from compilation using this variable.
This no longer works with Xcode 16 and the new SwiftUI Preview compilation!
There is still the option to switch to the old system with the "Use Legacy Previews Execution" setting, but as stated in the release notes, this option will be removed at some point.
Which brings us back to the old problem of not being able to exclude build scripts from preview builds and not being able to prevent certain code from being compiled / add special code for SwiftUI previews.
This is a terrible situation, especially for more complex projects in which precisely the points mentioned are important for the build process.
I seriously hope Apple provides us with another environment variable for SwiftUI preview builds that we can use.
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 registered and tried paying for a Developer account about 3 days ago. I got an email saying that activation can take up to 48 hours. It's been about 72 hours and the account isn't activated yet.
I get this error when registering as a developer'Your enrollment could not be completed'
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I have a multiplatform app that I've been working on that targets iphones, ipad, and macos. I also have a widgetextension that targets all three devices. On iphones and ipads, the widgets show up in the widget gallery with no problems. But on the mac, the widget center does show my app, but its widgets are "from iPhone" meaning that if my app was not install on an iphone, they just won't show up on the mac at all.
I have not idea of what I'm doing wrong or how to fix it. Do I need to create a widget extension for the mac seperately?
With iOS 18.3.1 in Playground there is a different view in TabView: in Preview the systemImage are visible and the TabView is visible under, instead launching the app the systemImage it is no longer visible. How can I solve it? Thank you
Xcode renders a beautiful bubble with PR comments inline with my code. However, I'd like to edit my code without that comment in the way. How do I turn / toggle that feature off?
I've looked through Settings for editing and source control, menus for the editor and view, as well as the drop down menus and diff toggles for the specific editor box.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi everyone,
We're developing a mobile app with Flutter and I linked my GitHub with XCode Cloud. This is the first time we're using XCode Cloud and we are struggling with the build, they fail every time.
A little context, we started by adding the ci_post_clone.sh script, then adding a few files in the versioning, etc...
Now it looks like the build is going through be we are facing issues with the part:
Scan dependencies of GeneratedPluginRegistrant.m
It's throwing an error: Module 'cloud_firestore' not found, even though the module is installed before by performing a pod install.
It's building locally on both Flutter with IntelliJ and XCode, we tried several times to flutter clean or pod deintegrate but nothing works!
Any clue?
Thanks,
Hi, We are seeing the below error in our angular application where we use the custom elements. Can you please help us to resolve the issue?
[Error] TypeError: new.target does not define a custom element.
The same code works fine in other browsers.
Topic:
Developer Tools & Services
SubTopic:
General
When I debug in Xcode, there is a launch flag that is normally set to "Automatically", and after building, Xcode installs & runs the app in the simulator or device.
The other setting is "Wait for executable to be launched". I don't use this feature too much, but I thought what it would do in build & install the app, but not launch. So, the idea would be that you could install the app, then take over - as a user - and tap the icon to launch the app. At this point, the Debugger would take over again, and you could debug the app from a very early spot.
When I set that flag now, the app never gets installed, so I can't do this. Xcode just has this in its status bar, and it never changes:
Waiting to attach on
I swore that it used to install the app in the sim for this setting. I don't know how many versions ago it was, but I really thought it did this. Does it not anymore, or should I file a bug?
Hey everyone,
Five days ago, on Sunday, I bought an Apple Developer Program subscription for 99 euros. I used the Developer app on my device because the Developer website said, "Enroll in the program with the Apple Developer app," and I thought it would be better to use the app directly rather than the website.
I purchased the subscription, the funds were released from my card, and I received a receipt. The site mentioned that I would be enrolled within 48 hours, and the Developer app stated that I would receive an email soon.
Guess what? I didn't receive an email. Instead, I got a message in the Developer app saying, "Enrollment through the Apple Developer app is not available for this Apple Account. Visit the Apple Developer site to enroll."
What is happening? I just paid for a subscription using my iCloud email in the Developer app, my bank released the funds, I got a receipt, and yet I didn't get access? Well, okay—I went to the website, but instead of giving me an option to proceed with the previous subscription, they asked me to pay AGAIN. This time, it was 99 dollars.
Since I'm in hurry, I paid again, assuming they will refund one of the charges—because how could one account have two same subscriptions? Strangely, for this second payment, I didn’t receive an email receipt, just a message saying that the order request would be processed soon.
Now, the problem is that this second subscription isn’t even listed in my subscriptions—only the first one is.
On top of that, I’m worried I won’t get access within 48 hours as promised, since I’ve seen other people waiting for months after paying. That’s not fair.
I also saw that some people were asked to provide an ID to confirm their identity, but I was never asked for that.
I'm not from the US, I’m of legal age, and I’ve been an Apple user for almost a year.
Does anyone know what’s happening and how I can avoid getting scammed by Apple? It sounds weird, but it’s ridiculous that a premium company like Apple has these kinds of issues. I contacted support, but I haven’t received a response.
Thanks in advance.
I wanted to see if anyone else is having this issue. We are trying to update our app, but on XCode, there is this error message showing:
Team: Unknown Name (Code).
There is a check in "Automatically Manage Signing".
Normally, Apple provides this information to XCode automatically but this time it seems like it's either not sending it or not receiving it.
If anyone knows what is happening here, any suggestion/advice would be greatly appreciated!
Thank you!
Issue description: Using Xcodebuild command to build a project using Xcode 16.1 and 16.2, getting multiple device simulator warnings with same os and same model. Please see issue: https://github.com/actions/runner-images/issues/11036
Repro steps: create a Xcode project, build it using below command with Xcode 16 version.
run: |
echo "Building project manually..."
xcodebuild -workspace MyApp.xcworkspace
-scheme MyApp
-destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=18.2'
build | xcbeautify --renderer github-actions
Paid on the 28th, I received the Order Acknowledgement email but have not received feedback yet.
Can someone please help getting my membership confirmed, how long does it take? Emailed support but not getting any responses
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I'm trying to set up Xcode Cloud for the first time. When I go through the "Get Started" flow and get to "Grant Access to Your Source Code" step, when I click the "Grant Access" button, I get "This Operation Could Not Be Completed."
It has the correct URL to my Github repo.
Github is working fine in Xcode itself: I can push and pull changes and view repo history.
I've tried:
restarting Xcode
rebooting the Mac
Removing the Github account from Xcode and adding it back
Creating a new Github personal token and removing the Github account from Xcode and using the new token to add it back
I've looked through my Github settings and don't see anything that might cause an issue.
I filed FB16511549 to report this. The error dialog in Xcode automatically filled the feedback fields, and says:
"API Invalid status code: 500. XcodeCloudCombineAPI.XCCResponseError:1"
I'm running Xcode 16.2 (16C5032a) on an M4 MacBook Pro running Sequoia 15.3.1 (24D70).
Does anyone have any insights or ideas of other things to try?
Thanks.
I'm trying to compile my iPad app with Xcode 16.2 and I'm consistently getting this error message:
couldn't find compile unit for the macro table with offset = 0x0
This is happening at the GenerateDSymFile step. I've tried changing the debug format from Dwarf with Dsym to Dwarf and then back again, as I've read there was a problem with generating the dsyms. But the problem persists.
I've tried searching for this error and found nothing online, so apparently I'm the only one! How strange.
Are there any settings or flags I can change to try to get more information about what's going wrong?
Topic:
Developer Tools & Services
SubTopic:
Xcode
It's been over a week since I submitted my membership purchase for a developer account. I had to resubmit it today because I believe there might be an issue with the system. I received the acknowledgment email again. Could someone please check my order? I'm looking forward to contributing to the macOS app ecosystem.
I don't even know where I can also check these purchase requests so I can provide you with the IDs I think you can use my apple id tho .
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Is anyone seeing flaky results when using parameterized test with pairs of (input, result) data?
I have several (5) tests for a given method. I create a zip sequence by zip([in1, in2, in3, in4, in5],[out1, out2, out3, out4, out5])
Sometimes, the test only runs 4 of the tests and fails to report a failure even though I deliberately place data that should cause a failure.
Sometimes, even though I only select one test to run, the test explorer goes crazy into a loop and I have to clear test results to get it to stop. Following a suggestion, I disabled running tests in parallel.
Xcode 16.2 / OSX 14.7 (Sonoma) / Mac mini M2 Pro
I have submited a post. But I can not find it in my profile. I could not tell whether it has been submited but not verified or I made it wrong?
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Hi,
I'm working in unity and I've implemented Firebase Phone Number Authentication in it. Everything works fine when I directly install build from xCode. App Attest screen shows up, user receives OTP on their phone and login works. But when I download the same build from TestFlight, it gets stuck after the user sends OTP request.
I've added Push Notifications and App Attest in capabilities. I've also additionally added Remote Notifications.
In device log I see an error about mobile provisioning file but I've added that to my account also. Is this expected behavior that phone number authentication does not work on TestFlight? If yes, how can I get this approved from apple since they need to test it before approving it.
Thanks!
Having issues updating app and publishing online, due to paid apps agreement. The app is free for distribution not a paid app, hence it is price at 0$.
Can't access the agreement as well to verify and account is showing error messages when action is done.
Also getting a membership expired message, and account membership is renewed till 2026.