I have created two different apps using ADEP, and they were working on iPad with iOS 14.6 and 14.7.1. The environments are as follows:
Environment:
1.Mac mini (Mac OS X 10.7.5)
Xcode 8.3.2
2.iMac (OS X El Capitan 10.11.6)
Xcode 7.3
The certificates were exported from the environment in 1 and imported into 2.
When I tried to switch from ADEP to AdHoc for app creation, I encountered an error. Specifically, the app worked fine on an iPad running iOS 12.5.7 in environment 1, but on devices with iOS 14.6, 14.7.1, and 17.7, the installation was successful, but when I tried to open the app, the following error message appeared:
“XXXXX” needs to be updated
To run this app on this version of iOS, the developer needs to update the app.
Additionally, in environment 2, I’m unable to archive the app.
Is it possible to create a working app by simply switching from ADEP to AdHoc without making any other changes to the environment?
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Post
Replies
Boosts
Views
Activity
So I started a project in Xcode but without GitHub.
Now I have prepared Xcode for GitHub and kind of made it work.
I have also made a folder where I have cloned my project from GitHub.
So is there any way to connect Xcode and the new folder. If I save my project it doesn't know about my new folder I presume:
I could continue to use GitHub via Xcode but I'm afraid I will forget about commands in Git if I only use Xcode. If I should work on another project without Git.
I'm getting hundreds of the message below in Xcode. I've narrowed it down to when I instantiate the following
AVAudioUnitComponentManager.shared()
Message send exceeds rate-limit threshold and will be dropped. { reporterID=231700600717315, rateLimit=32hz }
Currently I only see the right eye view when running my test app on the Vision Simulator. But to be able to evaluate if what I'm doing is actually possible on the device before buying one for developing my app I like to be able to switch between viewing the right eye and left eye in the simulator.
Hello,
My payment system works correctly when my backend is in sandbox mode, but when I submit my app for review, I get the following error:
VerificationException [Error]
at SignedDataVerifier.verifyNotification (/Users/---/node_modules/@apple/app-store-server-library/dist/jws_verification.js:126:19)
at SignedDataVerifier.verifyAndDecodeNotification (/Users/---/node_modules/@apple/app-store-server-library/dist/jws_verification.js:121:14)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///Users/---/src/api/routes/apple.routes.js:22:18 {
status: 2,
cause: undefined
}
Main Question
For Apple to approve in-app purchases, should I submit my app for review with the backend in sandbox mode or production?
Possible Causes of the Error
I would appreciate any suggestions on what might be causing this error and how to fix it.
Thanks in advance! 🚀
I'm trying to build an app for Mac from an external source and the build process fails due to the requirement of a provisioning profile. I'm new to developing in Xcode and as far as I've know rn, you need to have a developer account to create a profile. I just want to test the app locally. Not sure if a profile is required for that.
Hello everyone, I currently have a M1 Pro MacBook Pro (16gb) and a M1 Mac Mini (8gb), and I was searching a way to use the computing power of the Mac Mini to build my projects, even being a less powered machine, I think it can help since it will be doing just one thing.
I wanted to normally write code on the MacBook, but instead of building it locally (including the previews), it will be done on the Mac Mini via network connection or even Thunderbolt Bridge (if possible).
On a past Apple event (Oct. 30, 2018), was said that it was possible (31:00), but I was not able to find any kind of documentation or guidance on that.
Event Video:
https://youtu.be/bfHEnw6Rm-4?si=6wyoCLnWyyqG3Qm6
I'm trying to track down why an external tool is claiming that Xcode isn't installed, despite it being installed (and used daily) in its default location.
A visit to Xcode's Settings/Locations page shows a version selected for command-line tools, but underneath it says "No Xcode Selected."
Why?
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?
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?
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!
Hello everyone,
I'm looking for updated information on CloudKit pricing for both public and private users. Apple provides a free tier, but I couldn't find a clear breakdown of the costs for exceeding the free limits.
Specifically, I would like to know:
Public data storage: What are the costs associated with storing and querying public records?
Private data storage: How is pricing handled when a user's private data exceeds their iCloud quota?
Additional requests and bandwidth: Are there any charges for extra API requests or data transfer beyond the free limits?
If anyone has insights or an official reference, I'd really appreciate your help. Thanks in advance!
Trying to use App Data on Xcode 16.2, and failing
I'm running the app with the debugger. When I run the app, I need to do a handful of things, which affects my app's cache files, and UserDefaults. What I'd like to do is store all of these settings, then have them loaded in when the app launches, so I don't need to do same, tedious work of changing settings by hand in the UI.
So, I discovered that I can provide an xcappdata directory in the Run options. This seems like exactly what I'm looking for. But I can't seem to get it to work. Like, when the app runs, it looks like none of those settings are brought in.
I ran the app on a device, and pulled down the application data, and then put that in the project. And you can see in the screenshot, that the value is set.
So, either I'm missing something (which is totally possible) or this feature is broken. Documentation on this is not great, so maybe I'm doing something wrong. If the feature is known to be broken, I'll give up on this. But if it should work, it would be great to get some tips here.
I'm converting SwiftData models into structs so I can fetch them in the background. To know when and which ones I need to update, I'm using iOS 18's new HistoryTransaction.
Starting with iOS 18.3 (worked perfectly fine before), I'm getting this crash every time:
Thread 18: Fatal error: Failed to validate placeVideosIn.placeVideosIn because placeVideosIn is not a member of VideoPlacement
The crash is happening here:
static func findTransactions(after token: DefaultHistoryToken?) -> [DefaultHistoryTransaction] {
var historyDescriptor = HistoryDescriptor<DefaultHistoryTransaction>()
if let token {
historyDescriptor.predicate = #Predicate { transaction in
(transaction.token > token)
}
}
var transactions: [DefaultHistoryTransaction] = []
let taskContext = ModelContext(container)
do {
transactions = try taskContext.fetchHistory(historyDescriptor) // <- CRASH
} catch let error {
Logger.log.warning("findTransactions Error: \(error)")
}
return transactions
}
The SwiftData model has this enum property:
@Model
public final class Subscription {
// ...
public var placeVideosIn = VideoPlacement.defaultPlacement
}
The enum looks like this:
public enum VideoPlacement: Int {
case inbox = 0
case queueNext = 1
case nothing = 2
case defaultPlacement = 3
case queueLast = 4
}
The enum has changed at one point, but I was expecting that change to be transparent/additive. It looked like this before:
public enum VideoPlacement: Int {
case inbox, queue, nothing, defaultPlacement
}
Changing all values manually to e.g. .defaultPlacement did not fix the crash. What did fix it was deleting all HistoryTransactions:
var descriptor = HistoryDescriptor<DefaultHistoryTransaction>()
try modelContext.deleteHistory(descriptor)
For some reason, deleting all HistoryTransactions sometimes also deletes actual models. Is that to be expected?
Any idea how I could attempt to fix this issue?
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
In the app we are developing, we are referencing the UITextView layoutManager in a ViewController method.
However, the popup menu that appears when long tapping on a text field cannot be displayed.
This occurs in apps built with Xcode16 (iOS 18.0 or higher).
On the other hand, this does not occur in apps built with Xcode15 (iOS 18.0 or higher).
What is the cause?
Please let me know how to fix it.
SampleViewController.h
@property (weak, nonatomic) IBOutlet UITextView *textField;
SampleViewController.m
- (void)viewWillLayoutSubviews {
[super viewWillLayoutSubviews];
self.textField.layoutManager;
}
The operation couldn’t be completed. (IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $123069a90).DownloadError error 3.)
Domain: IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $123069a90).DownloadError
Code: 3
User Info: {
DVTErrorCreationDateKey = "2025-01-31 01:58:50 +0000";
}
There was an error processing the asset.
Domain: IDELanguageModelKit.IDEModelDownloadAdapter.(unknown context at $123069a90).DownloadError
Code: 3
System Information
macOS Version 15.3 (Build 24D60)
Xcode 16.2 (23507) (Build 16C5032a)
Timestamp: 2025-01-31T09:58:50+08:00
I am experiencing an issue where Xcode's predictive code completion is not downloading. Despite having a stable internet connection, the necessary code completion data does not seem to install, leading to incomplete or missing suggestions while coding.
Steps Taken:
1.Restarted Xcode
2.Checked for Xcode and macOS updates (everything is up to date)
3.Cleared Derived Data (~/Library/Developer/Xcode/DerivedData)
4.Reset Xcode’s package caches
5.Attempted reinstalling Xcode
6.Verified that "Enable Predictive Code Completion" is turned on in preferences
System Details:
Xcode Version: [Xcode 16.2 (23507) (Build 16C5032a)]
macOS Version: [macOS Version 15.3 (Build 24D60)]
Ever since I updated to Xcode 16.2, no device running iOS 18 shows up in Xcode. I can see the devices in Finder and Apple Configurator, but not in Xcode. When I run xcrun devicectl list devices, I also do not see the devices, so I assume the issue is in CoreDevice somewhere.
I've tried many things I've seen suggested in similar threads (toggling developer mode, reinstalling Xcode, using a different physical cable, etc) and so far nothing has helped. This same behavior is also happening for my entire development team, which has been as difficult as you might imagine.
Any info on how to resolve this would be much appreciated.
After upgrading to xcode 16.2 I see the following crash when resolving dependencies via command line:
** INTERNAL ERROR: Unable to load workspace '....' **
Uncaught Exception: *** -[NSMutableArray insertObjects:atIndexes:]: count of array (15) differs from count of index set (14)
Stack:
0 __exceptionPreprocess (in CoreFoundation)
1 objc_exception_throw (in libobjc.A.dylib)
2 -[__NSCFString characterAtIndex:].cold.1 (in CoreFoundation)
3 -[NSMutableArray insertObjects:atIndexes:] (in CoreFoundation)
4 __50-[IDEGroup insertGroupSubitems:atIndexes:context:]_block_invoke (in IDEFoundation)
5 -[DVTModelObjectGraph performBlockCoalescingModelChanges:] (in DVTFoundation)
6 -[IDEGroup insertGroupSubitems:atIndexes:context:] (in IDEFoundation)
7 -[NSMutableArray(DVTFoundationClassAdditions) dvt_sortedInsertOfObjects:withComparator:] (in DVTFoundation)
8 specialized IDESPMWorkspaceDelegate.registerDependencyFileReferences(_:modelGraphSynchronizerToken:) (in IDESwiftPackageCore)
9 specialized IDESPMWorkspaceDelegate.dependencyPackagesDidUpdate(packages:graphHasErrors:revalidatedFilePathCaches:modelGraphSynchronizerToken:) (in IDESwiftPackageCore)
10 closure #1 in IDESPMWorkspaceDelegate.packageGraphDidFinishAction(_:duration:result:) (in IDESwiftPackageCore)
11 partial apply for closure #1 in IDESPMWorkspaceDelegate.disableWorkspaceContentSynchronization(during:) (in IDESwiftPackageCore)
12 closure #1 in DVTModelObjectGraph.performBlockCoalescingModelChanges<A>(_:) (in DVTFoundation)
13 thunk for @callee_guaranteed () -> (@owned [String : NSObject]) (in DVTFoundation)
14 thunk for @escaping @callee_guaranteed () -> () (in DVTFoundation)
15 __58-[DVTModelObjectGraph performBlockCoalescingModelChanges:]_block_invoke (in DVTFoundation)
16 -[DVTModelGraphTransactionScope performTransaction:] (in DVTFoundation)
17 -[DVTModelObjectGraph performBlockCoalescingModelChanges:] (in DVTFoundation)
18 DVTModelObjectGraph.performBlockCoalescingModelChanges<A>(_:) (in DVTFoundation)
19 IDESPMWorkspaceDelegate.disableWorkspaceContentSynchronization(during:) (in IDESwiftPackageCore)
20 IDESPMWorkspaceDelegate.packageGraphDidFinishAction(_:duration:result:) (in IDESwiftPackageCore)
21 partial apply for thunk for @escaping @isolated(any) @callee_guaranteed @async () -> () (in IDESwiftPackageCore)
22 SPMWorkspace.packageGraphActionFinished(_:) (in SwiftPM)
23 closure #2 in closure #3 in SPMWorkspace.processPackageGraphActionsInBackgroundIfNeeded(canProcessPackageGraphActions:) (in SwiftPM)
24 dispatch thunk of SPMWorkspaceOrchestrationDelegate.packageGraphDidFinishAction(_:duration:result:) (in SwiftPM)
25 specialized thunk for @escaping @isolated(any) @callee_guaranteed @async () -> (@out A) (in SwiftPM)
26 partial apply for specialized thunk for @escaping @isolated(any) @callee_guaranteed @async () -> (@out A) (in SwiftPM)
27 completeTaskWithClosure(swift::AsyncContext*, swift::SwiftError*) (in libswift_Concurrency.dylib)
sh: line 1: 24112 Abort trap: 6 env NSUnbufferedIO=YES xcodebuild -scheme ***-Package -destination 'platform=iOS Simulator,id=950768B8-85B4-4250-A7EC-5AE8758369EE' -derivedDataPath .DerivedData -resultBundlePath '/.../***-Package.xcresult' -enableCodeCoverage YES -skipPackagePluginValidation -skipMacroValidation -disablePackageRepositoryCache build test```
Are there any workaround for this?