So I have a MacOS application that was working just fine before Xcode 16. The Widgets are not working anymore.
The main application and the widgets share a file in a common App Group.
The widget app now get a permission error when accessing the file.
Also, the Widget Kit simulator keeps crashing.
I also try to start a new project in Xcode, add a target with a Widget extension with an App Intent and run it, and it also crashes.
Sometimes, it doesn't crash but just display the error: "Failed to load widget. The operation couldn't be completed. (WidgetKit_Simulator.WidgetDocument.Error error 2.).
Edited to attach WidgetKit error log
widgetKitError.txt
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
Has anyone used the Xcode AI coding assistant called CodeNext?
It is a free tool and can be downloaded at codenext.ai.
It autocompletes code, has a chat function, and can use any AI model which is a cool feature.
Curious to know your thoughts and what other tools you've used.
Just because the original post was locked
Is it possible to develop the following app? The app will measure heart rate variability five times at 2-minute intervals triggered by an event and output the values.
通过UIInputViewController自定义的一个键盘,键盘内部有一个自定义的输入框UITextField。
需要实现的效果:外部输入框和键盘上自定义输入框可互相点击切换第一响应,从而控制输入的文字插入在哪个输入框。
遇到的问题:当点击了自定义输入框并设置了自定义输入框为第一响应之后,再次点击外部输入框时,无法获取到点击外部输入框的事件,从而无法取消内部输入框的第一响应事件。
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hello folks,
I'd like to report a bug in Swift Playground to Apple official dev team, it's in "Learn to Code 2" - "Seeking Seven Gems".
The puzzle map can't be loaded, please check the following screenshot,
My system environment:
MacOS 15.3
Swift 6.0.3 (swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1))
Swift Playground 4.6.2
Xcode 16.2
Hardware: MacBook Pro/M2 Pro/32G
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Developer Tools
Swift Student Challenge
Swift
Main Issue:
While building an iOS project using IL2CPP in Unity, I encountered the following error:
Command PhaseScriptExecution failed with a nonzero exit code
Sub-Issue:
Unity is unable to detect a compatible iPhoneOS SDK, even though Xcode is correctly installed and functioning as expected.
Error Message:
Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code.
In order to build C++ code for Mac, you must have Xcode installed.
Building for Apple Silicon requires Xcode 9.4 and Mac 10.12 SDK.
Xcode needs to be installed in the /Applications directory and have a name matching Xcode*.app.
Or be selected using xcode-select.
It's also possible to use /Library/Developer/CommandLineTools if those match the listed requirements.
More information and installation instructions can be found here:
https://developer.apple.com/support/xcode/
Specific Xcode versions can be downloaded here:
https://developer.apple.com/download/more/
Unable to detect any compatible iPhoneOS SDK!
Additional Errors & Observations:
bee_backend Not Found
chmod: /Users/vaunicacalji/Desktop/DinoKite/Il2CppOutputProject/IL2CPP/build/deploy_x86_64/bee_backend/mac-x86_64/bee_backend: No such file or directory
Issue: Manually checking the file, bee_backend does exist and is executable, but the build process still reports it as missing.
2. IL2CPP Build Failure
Build failed with 0 successful nodes and 0 failed ones
Error: Internal build system error. BuildProgram exited with code 1.
3. Xcode Not Detected by Unity
Unable to detect any compatible iPhoneOS SDK!
Issue: Running xcode-select -p confirms that Xcode is installed at /Applications/Xcode.app/Contents/Developer, and xcodebuild -showsdks lists available SDKs, including iOS 18.2.
Environment Details:
macOS Version: Sonoma 14.5
Mac Model: MacBook Air (Retina, 13-inch, 2018)
Processor: 1.6 GHz Dual-Core Intel Core i5
Memory: 8GB 2133 MHz LPDDR3
Graphics: Intel UHD Graphics 617 1536MB
Unity Version: 2022.2.21f1
Installed Unity Modules:
✅ iOS Build Support
✅ Mac Build Support (IL2CPP)
✅ IL2CPP
Current Status & Key Issues:
✅ Xcode is properly installed, and xcode-select -p shows the correct path.
✅ xcodebuild -showsdks confirms that iOS SDK 18.2 is available.
✅ bee_backend is present and executable when checked manually.
❌ Unity still reports Unable to detect any compatible iPhoneOS SDK! during the build process.
❌ Unable to successfully build the iOS project.
Could you please provide guidance on how to resolve this issue?
Xcode Build Settings (for reference):
Command PhaseScriptExecution failed with a nonzero
ALWAYS_SEARCH_USER_PATHS = NO
ARCHS = arm64
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
CLANG_CXX_LANGUAGE_STANDARD = c++0x
CLANG_CXX_LIBRARY = libc++
CLANG_ENABLE_OBJC_ARC = YES
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution
CODE_SIGN_IDENTITY[config=Debug] = Apple Development
CODE_SIGN_IDENTITY[config=Release] = Apple Distribution
CODE_SIGN_STYLE = Manual
DEVELOPMENT_TEAM[sdk=iphoneos*] = 4429TL28T7
IPHONEOS_DEPLOYMENT_TARGET = 15.6
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks
PRODUCT_BUNDLE_IDENTIFIER = com.torihiplay.DinoKite
PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*] = DinoKite.
SDKROOT = iphoneos
SUPPORTED_PLATFORMS = iphoneos
TARGETED_DEVICE_FAMILY = 1,2
UNITY_RUNTIME_VERSION = 2022.2.21f1
UNITY_SCRIPTING_BACKEND = il2cpp
This build is intended for a production release.
I would appreciate any help in resolving this issue. Thank you!
I get this error: Apple 403 detected - Access forbidden.
This request is forbidden for security reasons - You currently don't have access to this membership resource. Contact your team's Account Holder, [redacted], or an Admin. But I have access to the membership resource as a developer, and my account is not blocked. What is the reason?
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Hello! I have asked this question in previous years, but I want to make sure I can be safe as each challenge could be different.
Are applicants for the Swift Student Challenge allowed to use the features and technologies involved with Metal/MetalKit? Last year, the answer was yes. I have seen a few people here and there use it with Swift and won.
I would like to know if we can use it for the 2025 challenge for this year as well.
Thanks! :)
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift Student Challenge
Metal
MetalKit
I used Swift Playground to develop application in Mac OS. Also using ZStack I used limited area in full page (using .frame(width: $, height: $)). However using command + R or clicking start button to see preview .app, while non resizing application my ZStack show as cutted. Please tell me how to set preview .app frame size as width, height... The buttom code is ContentView.swift code.
@main
struct ContentView: App {
init() {
MyFont.registerFonts()
}
// @StateObject private var audioPlayer = AudioPlayer()
var body: some Scene {
WindowGroup {
NavigationStack {
StartMenuView()
.frame(minWidth: 594, maxWidth: 594,
minHeight: 1142, maxHeight: 1142)
.preferredColorScheme(.dark) // Dark Mod
.statusBar(hidden: true) // Hidden Status Bar
.edgesIgnoringSafeArea(.all) // Ignoring Safe Area
}
}
.windowResizability(.contentSize)
}
}
Thank you for reading.


Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift
App Review
Swift Playground
My membership got expired and I don't see the renew button anywhere on the website or the developer app.
In my case, I have changed the developer account email address 6 months ago and the new email was not mapped for renewal that's why the renew button was not showing (I guess).
I tried to reach to Apple support, the phone support wasn't available so I wrote couple of emails. After 48 hrs they have sent an email saying the new email address has been mapped but still I see no renew button. I added required funds and disabled the auto-renew option yet no hope.
it's been four days still no replay from Apple. I was constantly checking for the phone support. Today I saw phone support was available so I immediately requested the call and explained the support staff about my situation and he fixed within a minute.
so guys if you are facing similar issue and see no solution even after contacting multiple times via emails, wait for phone support and request a call. This is the fastest and efficient way to resolve this "renew" issue. add the required funds so that the subscription payment will be done instantly.
Have a good day y'll
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
Accounts
Developer Program
Hi can you please help me.
I am using macbook M1, macOS Sonoma 14.5. I have installed Xcode latest version 16.2 (everything OK). But then i launch Xcode and i also need to install iOS simulator 18.2. When i click install it takes a long time "Preparing" and then error...
Please help me
Thank you
I have applied for developer account from 16 days ago and got the email telling i made the payment but till now nothing new.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Main Issue:
While building an iOS project using IL2CPP in Unity, I encountered the following error:
Command PhaseScriptExecution failed with a nonzero exit code
Sub-Issue:
Unity is unable to detect a compatible iPhoneOS SDK, even though Xcode is correctly installed and functioning as expected.
Error Message:
Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code.
In order to build C++ code for Mac, you must have Xcode installed.
Building for Apple Silicon requires Xcode 9.4 and Mac 10.12 SDK.
Xcode needs to be installed in the /Applications directory and have a name matching Xcode*.app.
Or be selected using xcode-select.
It's also possible to use /Library/Developer/CommandLineTools if those match the listed requirements.
More information and installation instructions can be found here:
https://developer.apple.com/support/xcode/
Specific Xcode versions can be downloaded here:
https://developer.apple.com/download/more/
Unable to detect any compatible iPhoneOS SDK!
Additional Errors & Observations:
bee_backend Not Found
chmod: /Users/vaunicacalji/Desktop/DinoKite/Il2CppOutputProject/IL2CPP/build/deploy_x86_64/bee_backend/mac-x86_64/bee_backend: No such file or directory
Issue: Manually checking the file, bee_backend does exist and is executable, but the build process still reports it as missing.
2. IL2CPP Build Failure
Build failed with 0 successful nodes and 0 failed ones
Error: Internal build system error. BuildProgram exited with code 1.
3. Xcode Not Detected by Unity
Unable to detect any compatible iPhoneOS SDK!
Issue: Running xcode-select -p confirms that Xcode is installed at /Applications/Xcode.app/Contents/Developer, and xcodebuild -showsdks lists available SDKs, including iOS 18.2.
Environment Details:
macOS Version: Sonoma 14.5
Mac Model: MacBook Air (Retina, 13-inch, 2018)
Processor: 1.6 GHz Dual-Core Intel Core i5
Memory: 8GB 2133 MHz LPDDR3
Graphics: Intel UHD Graphics 617 1536MB
Unity Version: 2022.2.21f1
Installed Unity Modules:
✅ iOS Build Support
✅ Mac Build Support (IL2CPP)
✅ IL2CPP
Current Status & Key Issues:
✅ Xcode is properly installed, and xcode-select -p shows the correct path.
✅ xcodebuild -showsdks confirms that iOS SDK 18.2 is available.
✅ bee_backend is present and executable when checked manually.
❌ Unity still reports Unable to detect any compatible iPhoneOS SDK! during the build process.
❌ Unable to successfully build the iOS project.
Could you please provide guidance on how to resolve this issue?
Xcode Build Settings (for reference):
ALWAYS_SEARCH_USER_PATHS = NO
ARCHS = arm64
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
CLANG_CXX_LANGUAGE_STANDARD = c++0x
CLANG_CXX_LIBRARY = libc++
CLANG_ENABLE_OBJC_ARC = YES
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution
CODE_SIGN_IDENTITY[config=Debug] = Apple Development
CODE_SIGN_IDENTITY[config=Release] = Apple Distribution
CODE_SIGN_STYLE = Manual
DEVELOPMENT_TEAM[sdk=iphoneos*] = 4429TL28T7
IPHONEOS_DEPLOYMENT_TARGET = 15.6
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks
PRODUCT_BUNDLE_IDENTIFIER = com.torihiplay.DinoKite
PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*] = DinoKite.
SDKROOT = iphoneos
SUPPORTED_PLATFORMS = iphoneos
TARGETED_DEVICE_FAMILY = 1,2
UNITY_RUNTIME_VERSION = 2022.2.21f1
UNITY_SCRIPTING_BACKEND = il2cpp
This build is intended for a production release.
I would appreciate any help in resolving this issue. Thank you!
When I try to compile with XCode an app that is about 10 years old gives me the following compiler errors in JSONModel.h header file. There are only 4 lines in that file.
Content of file with the error messages.
XSym <- Uknown type name ‘Xsym’
0075 <- Expected identifier or ‘(’
a7b090c047283ff76fc7f1def7ba7425
../../../JSONModel/JSONModel/JSONModel/JSONModel.h
The app was originally compiled wit XCode 3.2, targeting iPhone 7
Now I am using XCode 16, targeting iPhone 12.
Original coder is unaccessible.
I am very new to this environment and any guidance / assistance is greatly appreciated.
Please let me know if it is more appropriate to post this somewhere else.
When trying to use the watchOS preview the simulator fails to load and throws about 15 errors. Clearly the simulator is trying to load all of the iOS packages to the watchOS simulator. However, these packages clearly aren't included in the watchOS app. Furthermore, both apps build successfully to the main simulators, just not the previews. Having a list of errors that simply should not be there is a pretty big annoyance when something is going wrong. How do I fix this?
Greeting everyone, I have been trying to enroll for apple developer program membership for the past 2 weeks, all efforts prove abortive with same error "I will receive acknowledement" email from Apple but i do not get charged and when I try to contact support they usually do not provide any help and often take long to reply once and take another week for another reply. I have now move the funds equivalent to $99 to my apple account.
Please does anyone know how I can go about the enrollment using the funds from my apple account?
Does anyone have such experience how did you resolve it?
Do you know how i can successfully pay for the program from my bank using my debit card, because my card works easily and instantly for other subscriptions but except the Apple development program
Please I will greatly appreciate any help i can get. thanks in advance
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I keep getting this message when trying to create an account "Your enrollment could not be completed."
I am over 18 and tried on both developer app and website
Can anyone please help with this?
Thank you!
Hello,
We‘ve submitted for enrollment as an organization in December. So far it is still pending, and we get same reply from developer support team:
Your enrollment is pending.
How else can we contact Apple team? How long can this take?
iOS simulator way slower to launch after updating to Xcode Version 16.2 (16C5032a).
macOS 15.3.1 (24D70)
MacBook Air M1, 8GB