I upgraded IOS to 15.5 yesterday and then my xcode failed to preview today. The error message I got is:
Communication with Apple failed
Your team has no devices from which to generate a provisioning profile. Connect a device to use or manually add device IDs in Certificates, Identifiers & Profiles. https://developer.apple.com/account/
Any one knows how to fix it?
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
I want to block incoming calls using my backend server, like the unwantend sms using message filter extension. I saw that Call Directory Extension can block numbers, but you need update the list, is not in real time. I was reading the Live Caller ID Look up extension documentation, and it seems that with this extension is possible send the number to backend and retrieve a value to know if the call should be block or not.
Am I right? Or is not possible this feature with this extension?
Thanks!
Hi everyone, I’ve been trying since yesterday to set up an Apple Watch app alongside my iOS app, but it’s not working at all. I created the app by adding a new target, selected watchOS > App, and linked it to my iOS project. When I run the Apple Watch scheme directly, the app works, but if I try to install it on my Apple Watch via the iOS app, it doesn’t work. Every time I tap install, I get a message saying that the installation failed. While reading the documentation, they mention an Info.plist file that is supposed to be generated with the watchOS app, but when I check, I don’t see any .plist file. Is that normal? Thanks for your help.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hello everyone, I have the problem at the moment that when I create a new project in a new empty repository, the files are always opened the old project.
I have already deleted all caches and also deleted Xcode 16.2 and reinstalled.
Does anyone of you know the problem?
Best regards
Joerg
After updating to Xcode 16.4, Package resolution fails with some cryptic errors. Each package fails with the following message
Showing Recent Errors Only
<unknown>:0: warning: legacy driver is now deprecated; consider avoiding specifying '-disallow-use-new-driver'
<module-includes>:200:9: note: in file included from <module-includes>:200:
198 | #import "mach/mach_traps.h"
199 | #import "mach/mach_types.h"
200 | #import "mach/mach_vm.h"
| `- note: in file included from <module-includes>:200:
201 | #import "mach/mach_voucher.h"
202 | #import "mach/mach_voucher_types.h"
/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/mach/mach_vm.h:436:2: error: unknown type name 'mach_vm_offset_list_t'; did you mean 'mach_vm_offset_t'?
434 | (
435 | vm_map_t target,
436 | mach_vm_offset_list_t in_pointer_list,
| `- error: unknown type name 'mach_vm_offset_list_t'; did you mean 'mach_vm_offset_t'?
437 | mach_msg_type_number_t in_pointer_listCnt,
438 | mach_vm_offset_list_t out_pointer_list,
/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/mach/arm/vm_types.h:108:33: note: 'mach_vm_offset_t' declared here
106 |
107 | typedef uint64_t mach_vm_address_t __kernel_ptr_semantics;
108 | typedef uint64_t mach_vm_offset_t __kernel_ptr_semantics;
| `- note: 'mach_vm_offset_t' declared here
109 | typedef uint64_t mach_vm_size_t;
110 |
<module-includes>:200:9: note: in file included from <module-includes>:200:
198 | #import "mach/mach_traps.h"
199 | #import "mach/mach_types.h"
200 | #import "mach/mach_vm.h"
| `- note: in file included from <module-includes>:200:
201 | #import "mach/mach_voucher.h"
202 | #import "mach/mach_voucher_types.h"
<unknown>:0: error: could not build Objective-C module 'Darwin'
/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/mach/mach_vm.h:438:2: error: unknown type name 'mach_vm_offset_list_t'; did you mean 'mach_vm_offset_t'?
436 | mach_vm_offset_list_t in_pointer_list,
437 | mach_msg_type_number_t in_pointer_listCnt,
438 | mach_vm_offset_list_t out_pointer_list,
| `- error: unknown type name 'mach_vm_offset_list_t'; did you mean 'mach_vm_offset_t'?
439 | mach_msg_type_number_t *out_pointer_listCnt
440 | );
/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/mach/arm/vm_types.h:108:33: note: 'mach_vm_offset_t' declared here
106 |
107 | typedef uint64_t mach_vm_address_t __kernel_ptr_semantics;
108 | typedef uint64_t mach_vm_offset_t __kernel_ptr_semantics;
| `- note: 'mach_vm_offset_t' declared here
109 | typedef uint64_t mach_vm_size_t;
110 |
/Users/paulwilliamson/Developer/ios-app/Packages/Modules/ModalAdvert/Package.swift:4:8: error: failed to build module 'PackageDescription' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
2 | // The swift-tools-version declares the minimum version of Swift required to build this package.
3 |
4 | import PackageDescription
| `- error: failed to build module 'PackageDescription' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
5 |
6 | let package = Package(
We don't specify -disallow-use-new-driver, so I'm unsure where that message comes from. We have cleared derived data and are performing a clean build.
Hey,
I've been having a lot of problems with Xcode 16 not seeing changes made to code in local Swift packages (the packages are inside the root directory of the project).
Whenever I make any change like renaming a variable or type, or adding new methods or whatever, autocomplete doesn't see those changes and when I type in that new type/variable manually it gives me an error. However, building the project still works fine, even with the errors never going away.
The only way for it to notice the code changes is to clean the project and build it again which takes a long time.
At first, I thought this was connected to the new "Explicitly built modules" feature in Xcode 16, but I turned it off and it still happens.
Any ideas what I can try? I'm on the latest Xcode version, but this problem has been happening since Xcode 16 originally came out.
Thanks!
Dennis
Start from clean iOS 18.4 simulator. Application tried to request authorisation from user for microphone access. Clicking allow caused the application crashed.
Used Swift 6. Report Identifier FB17686864.
Could not build inference plan - ANECF error: failed to load ANE model file:///System/Library/Frameworks/Vision.framework/Resources/saliency_attention_box_head_i4fgq3rswb_fp16.espresso.net Error=_ANEEspressoIRTranslator : error Espresso exception: "I/O error": Cannot open additional blob file (DESIGN)
Topic:
Developer Tools & Services
SubTopic:
Xcode
When a new application runs on iOS 18.4 simulator and tries to access the Speech Framework, prompting a request for authorisation to use Speech Recognition, the application will crash if the user clicks allow. Same issue in the visionOS 2.4 simulator.
Using Swift 6. Report Identifier: FB17686186
/// Checks speech recognition availability and requests necessary permissions.
@MainActor
func checkAvailabilityAndPermissions() async {
logger.debug("Checking speech recognition availability and permissions...")
// 1. Verify that the speechRecognizer instance exists
guard let recognizer = speechRecognizer else {
logger.error("Speech recognizer is nil - speech recognition won't be available.")
reportError(.configurationError(description: "Speech recognizer could not be created."), context: "checkAvailabilityAndPermissions")
self.isAvailable = false
return
}
// 2. Check recognizer availability (might change at runtime)
if !recognizer.isAvailable {
logger.error("Speech recognizer is not available for the current locale.")
reportError(.configurationError(description: "Speech recognizer not available."), context: "checkAvailabilityAndPermissions")
self.isAvailable = false
return
}
logger.trace("Speech recognizer exists and is available.")
// 3. Request Speech Recognition Authorization
// IMPORTANT: Add `NSSpeechRecognitionUsageDescription` to Info.plist
let speechAuthStatus = SFSpeechRecognizer.authorizationStatus()
logger.debug("Current Speech Recognition authorization status: \(speechAuthStatus.rawValue)")
if speechAuthStatus == .notDetermined {
logger.info("Requesting speech recognition authorization...")
// Use structured concurrency to wait for permission result
let authStatus = await withCheckedContinuation { continuation in
SFSpeechRecognizer.requestAuthorization { status in
continuation.resume(returning: status)
}
}
logger.debug("Received authorization status: \(authStatus.rawValue)")
// Now handle the authorization result
let speechAuthorized = (authStatus == .authorized)
handleAuthorizationStatus(status: authStatus, type: "Speech Recognition")
// If speech is granted, now check microphone
if speechAuthorized {
await checkMicrophonePermission()
}
} else {
// Already determined, just handle it
let speechAuthorized = (speechAuthStatus == .authorized)
handleAuthorizationStatus(status: speechAuthStatus, type: "Speech Recognition")
// If speech is already authorized, check microphone
if speechAuthorized {
await checkMicrophonePermission()
}
}
}
I have an iOS app and that has CarPlay enabled. I have Siri capability and the feature has been tested in Car. The voice commands are working perfectly fine.
However, I am facing a weird issue as described below,
The key NSSiriUsageDescription, is set to custom text in info.plist. After generating archive, I exported and checked the package contents, in which the the key NSSiriUsageDescription was reset to default text(Describe why your app needs Siri access) in the info.plist.
I do not have any dynamic build process that's writing to the info.plist. Only the Siri key is being reset, rest of keys like camera/location permissions are intact.
Kindly suggest what needs to be done at my end
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Siri and Voice
App Intents
Organizer Window
Privacy
I am on MacOs 15.4.1 which is being deployed with an old version of Ruby ruby 2.6.10 and bundler version 1.17.2. I ran pod install after generating the pods with these versions and during the application compilation there have been several issues reported against pods code.
I'm encountering an issue while trying to build my iOS app in Xcode for the simulator.
Issue:
Xcode Version: 15.x
macOS Version: 14.x (Sonoma)
Simulator: iPhone 16 Pro
Error Message: Command ClangStatCache failed with a nonzero exit code
Steps Taken:
Cleaned build folder (Shift + Cmd + K)
Deleted DerivedData (rm -rf ~/Library/Developer/Xcode/DerivedData)
Updated Xcode and checked iOS SDK updates
Disabled Clang Static Analyzer Cache
None of these steps resolved the issue. Any help would be appreciated!
Thanks in advance.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Developer Tools
Xcode Static Analyzer
Simulator
Command Line Tools
Hi everyone,
We're developing an AR app using Unity with Vuforia for object detection. Our app works well in full-screen mode, including detection and post-detection phases. However, we're facing a specific issue in iPad Split View multitasking mode.
Problem:
The AR camera (Vuforia-based) freezes during object detection if another app is opened in Split View.
Post-detection, everything works fine in Split View. The problem only occurs during detection.
Testing Environment:
iPadOS 16+
Unity with Vuforia plugin
Using EnableMultitaskingCameraAccess() method with AVFoundation to support camera multitasking
AR scene is set up properly with detection capabilities in full-screen
I am attempting to generate screenshots at various logical times using a watchOS 11 simulator.
% xcrun simctl status_bar "Apple Watch Series 10 (46mm)" override --time 9:06
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=45):
Simulator device failed to complete the requested operation.
Operation not supported
Underlying error (domain=NSPOSIXErrorDomain, code=45):
Status bar overrides not supported on this platform.
Operation not supported
Using WatchOS Clock Settings gives me at most 59 minutes in which to succeed.
Even if I had a physical watch for every series and size, I would have to wait up to 23 hours before being able to generate my marketing screenshots to support various user scenarios. With three settings variations, a minimal wait time to get to good marketable content would be on the order of 1 month per app version.
Topic:
Developer Tools & Services
SubTopic:
Xcode
If I install RealmSwift into an ios app using SPM, I have no problems.
However if I install it into an ios framework, then when building there is this error:
error: missing required modules: 'Realm.Private', 'Realm', 'Realm.Swift'
I have discovered that if I change the import statement from:
import RealmSwift
to
private import RealmSwift
then doing that makes this build error goes away (but doing that isn't a feasible workaround as I would like to publicly export classes stored in Realm from the framework).
There's no point in posting issues with Realm on their support board as its being deprecated and its tumble weeds on their forum.
But I would be very interested in hearing from the Apple expects explanation or speculation on:
why is importing the same framework via SPM into a framework xcode project resulting in different behavior then when importing it into an app?
why would changing import to private import make the build error go away?
TIA
I am currently using Xcode 16 (16A242d) and testing on an iPhone 7 running iOS 12.1.3. However, when I try to launch the app on the device, it crashes immediately. Below are the crash logs from the iPhone 7:
错误 11:54:55.731858+0800 kernel Sandbox: assertiond(62) System Policy: deny(1) file-read-metadata /private/var/mobile/Library/DuetExpertCenter/caches/ATXCacheFile-_ATXAppPredictor-TotalScore
错误 11:54:55.731897+0800 kernel Sandbox: assertiond(62) System Policy: deny(1) file-read-metadata /private/var/mobile/Library/DuetExpertCenter/caches
错误 11:54:55.754498+0800 kernel Sandbox: duetexpertd(132) deny(1) mach-lookup com.apple.proactive.ActionPrediction.predictions
错误 11:54:55.756102+0800 duetexpertd Unable to remove recent engagement cache file. Error: Error Domain=NSCocoaErrorDomain Code=4 UserInfo={NSFilePath=, NSUserStringVariant=, NSUnderlyingError=0x100db60a0 {Error Domain=NSPOSIXErrorDomain Code=2}}
错误 11:54:56.571640+0800 symptomsd Attempt to add an app with insufficient id, info {
BKSApplicationStateAppIsFrontmost = 1;
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "com.igetcool.app";
SBApplicationStateKey = 8;
SBApplicationStateProcessIDKey = 696;
SBApplicationStateRunningReasonsKey = (
{
SBApplicationStateRunningReasonAssertionIdentifierKey = UIApplicationLaunch;
SBApplicationStateRunningReasonAssertionReasonKey = 10000;
}
);
SBMostElevatedStateForProcessID = 8;
}
错误 11:54:56.829372+0800 assertiond [IGCProject:696] SyscallError: setpriority(PRIO_DARWIN_ROLE, 696, 3): No such process
错误 11:54:56.944833+0800 dasd Activity not tracked as being started, ignoring it
错误 11:55:06.153790+0800 symptomsd Attempt to add an app with insufficient id, info {
BKSApplicationStateAppIsFrontmost = 1;
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "com.igetcool.app";
SBApplicationStateKey = 8;
SBApplicationStateProcessIDKey = 697;
SBMostElevatedStateForProcessID = 8;
}
错误 11:55:06.430433+0800 assertiond [IGCProject:697] SyscallError: setpriority(PRIO_DARWIN_ROLE, 697, 3): No such process
错误 11:55:13.158889+0800 symptomsd Attempt to add an app with insufficient id, info {
BKSApplicationStateAppIsFrontmost = 1;
BKSApplicationStateExtensionKey = 0;
SBApplicationStateDisplayIDKey = "com.igetcool.app";
SBApplicationStateKey = 8;
SBApplicationStateProcessIDKey = 699;
SBMostElevatedStateForProcessID = 8;
}
错误 11:55:13.416290+0800 assertiond [IGCProject:699] SyscallError: setpriority(PRIO_DARWIN_ROLE, 699, 3): No such process
I am trying to understand what is causing this issue. Even after archiving and installing the app, it still crashes. According to the official documentation, Xcode 16 is supposed to support iOS 12, but this issue persists. I would like to know the possible reasons for this behavior.
in xcode i have select the developer team. but show some error that is here,
"Communication with Apple failed
Your team has no devices from which to generate a provisioning profile. Connect a device to use or manually add device IDs in Certificates, Identifiers & Profiles. https://developer.apple.com/account/"
and show this error also
"No profiles for 'com.kuntaldoshi.homeautomation' were found
Xcode couldn't find any iOS App Development provisioning profiles matching 'com.kuntaldoshi.homeautomation'."
Our business is to scan the code to open App Clip, but then App Clip will appear in App Library and Siri Suggestions. This can be opened quickly, but the URL of the last scan will be included. This will cause a problem, for example: if the previous scan was code A, but the user does not scan code B when going to place B and directly opens it through App Library or Siri Suggestions, the code I get is still code A, so the result I want is that I want to know where it was opened from, and then if it is opened quickly, I will clear the URL and remind the user to scan the code again. Or if it is opened by quick opening, do not include the URL
Topic:
Developer Tools & Services
SubTopic:
Xcode
We have started facing an issue after updating Xcode from version 15.2 to 16, we have a voip application with webview and call kit, and we have the Background Modes capabilities: Voip, Audio, Background fetch, and Background processing.
We had no problem on Xcode 15, but ever since updating Xcode 16 and sdk 18, when app goes into the background during an active call, the app is suspended and no events are triggered UNTIL the app is resumed to the foreground.
Hi,
is there documentation on how to write a deep link that will open Xcode on a given file, and optionally a line number?
I know about xed, and I would like exactly that functionality, but in link form, so that I can link to a certain file from an app such as Obsidian or from a README.md file.
I checked Xcode's Info.plist and it understands several URL schemes, the most promising of which is xcode://, which successfully launches the app, but no matter what I tried, I get an error dialog telling me that Xcode did not understand the URL.
Any help on this topic would be greatly appreciated.
Victor