Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Activity

Build input file cannot be found
I have a project that imports SPM swift-navigation which in-turn imports SPM https://github.com/pointfreeco/swift-perception I have a test target it builds and runs with no issues in XCode however if I run with xcodebuild i get the below error (I have done basics removed derived data etc.) ❌ error: Build input file cannot be found: '/Users/chris/mtp-iOS-retail-iPhone/build/Build/Products/Debug/PerceptionMacros'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it? (in target 'Perception' from project 'swift-perception')
0
0
379
Dec ’24
Changed vendor uuid
I updated a new app and the vendor uuid changed. I didn't change the way I generate the vendor uuid, but I confirmed that the uuid value I received from the app store is output differently. Can you tell me why identifierForVendor changes when I distribute it?
2
0
175
Dec ’24
waiting for reply from DTS engineer.
Hello , am facing issue in submitting my app to store I have submitted my case to apple developer team my case ids "101969263018","101975805043". they told me to submit the report from feedback assistance my case id : FB12141270. but still I don't get any replay form feedback assistance. after that I submitted my case to DTS engineer case id : 2394373. got email to submit some file which I have submitted after that still I don't get any reply from DTS team. please help me to short out this issue. last one month am trying to short out this issue with apple developer team. still I don't get solution.
2
0
904
Sep ’25
Xcode simulator & preview not loading
Hello, I recently decided to start learning how to code for iOS. I don't have much coding experience but I still wanted to explore it for fun at least. I downloaded Xcode on my Macbook, and opened a new iOS file after downloading iOS 18.1 so I could run the simulator/get a preview of my code. Even though I only had the basic "Hello World!" that is auto-generated in my code, the preview would never show and sat at a loading screen for multiple hours, saying "Preparing (Automatic) iPhone Simulator" at the top. There is probably a simple solution that I'm missing. I would appreciate any tips! Thanks.
2
0
906
Dec ’24
Xcode crashed after last update 18.2
i don't know if the crash happened because of the system update or not but now when i try to open it its completely crash , here is the error , Translated Report (Full Report Below) Process: Xcode [1067] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 16.1 (23503) Build Info: IDEApplication-23503000000000000~2 (16B40) App Item ID: 497799835 App External ID: 869932297 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2024-11-30 11:10:55.9269 +0100 OS Version: macOS 15.2 (24C5089c) Report Version: 12 Anonymous UUID: C79C335A-F74F-AE24-F4A0-C185D480C480 Time Awake Since Boot: 160 seconds System Integrity Protection: enabled Crashed Thread: 16 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: Xcode [1067] Application Specific Information: abort() called Application Specific Signatures: __objc_no Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x1876def34 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1876f15e4 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x1876e7ad8 mach_msg_overwrite + 480 3 libsystem_kernel.dylib 0x1876df27c mach_msg + 24 4 CoreFoundation 0x187808a3c __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x18780729c __CFRunLoopRun + 1212 6 CoreFoundation 0x187806724 CFRunLoopRunSpecific + 588 7 HIToolbox 0x192d65530 RunCurrentEventLoopInMode + 292 8 HIToolbox 0x192d6b348 ReceiveNextEventCommon + 676 9 HIToolbox 0x192d6b508 _BlockUntilNextEventMatchingListInModeWithFilter + 76 10 AppKit 0x18b371034 _DPSNextEvent + 660 11 AppKit 0x18bcd52d4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688 12 AppKit 0x18b364060 -[NSApplication run] + 480 13 IDEKit 0x10579c798 -[IDEApplication run] + 60 14 AppKit 0x18b33a854 NSApplicationMain + 888 15 dyld 0x1873a0274 start + 2840 Thread 1:: Dispatch queue: com.apple.dt.IDESourceControlTree.FileStatusQueue 0 libsystem_kernel.dylib 0x1876e0c8c __ulock_wait + 8 1 libdispatch.dylib 0x18756dfa4 _dlock_wait + 56 2 libdispatch.dylib 0x18756dca0 _dispatch_wait_on_address + 140 3 libdispatch.dylib 0x18756e374 _dispatch_group_wait_slow + 56 4 IDEFoundation 0x109fe90c8 -[IDESourceControlWorkingTreeUpdater _fileStatusQueue_fetchStatusForEntireWorkingCopyWithRemoteStatus:error:] + 384 5 IDEFoundation 0x109fe8ef8 __97-[IDESourceControlWorkingTreeUpdater fetchStatusForEntireWorkingCopyWithRemoteStatus:completion:]_block_invoke + 116 6 libdispatch.dylib 0x18756b854 _dispatch_call_block_and_release + 32 7 libdispatch.dylib 0x18756d5b4 _dispatch_client_callout + 20 8 libdispatch.dylib 0x187574bd8 _dispatch_lane_serial_drain + 768 9 libdispatch.dylib 0x187575730 _dispatch_lane_invoke + 380 10 libdispatch.dylib 0x1875809a0 _dispatch_root_queue_drain_deferred_wlh + 288 11 libdispatch.dylib 0x1875801ec _dispatch_workloop_worker_thread + 540 12 libsystem_pthread.dylib 0x18771c3d8 _pthread_wqthread + 288 13 libsystem_pthread.dylib 0x18771b0f0 start_wqthread + 8 Thread 2: 0 libsystem_pthread.dylib 0x18771b0e8 start_wqthread + 0 Thread 3:: Dispatch queue: SDK Loading 0 libswiftCore.dylib 0x1988ea27c swift_unknownObjectRelease + 36 1 libswiftCore.dylib 0x1986d0f58 String.init(cocoaString:) + 44 2 Foundation 0x188cdbc14 static String.unconditionallyBridgeFromObjectiveC(:) + 712 3 SymbolCacheSupport 0x1277466ec @objc Buffer.string() + 28 4 SourceModel 0x125974f40 -[SMSourceModel textOfItem:] + 56 5 SymbolCacheSupport 0x1277cdfdc SMSourceModel.splitIntoStatements(:splitOnNewLine:) + 748 6 SymbolCacheSupport 0x127707eb8 ObjCSourceModelExtractor.body(children:) + 484 7 SymbolCacheSupport 0x127878b2c ObjcToSwiftFileTranslator.init(fileInfo:symbolCache:isSystemModule:options:platformFilter:importErrorAsBridgedStoredNSError:) + 644 8 SymbolCacheSupport 0x1275ee49c ClangToSwiftModuleImporter.import(moduleData:importData:allAPINotes:directoryURL:relativeBasePath:) + 3056 9 SymbolCacheSupport 0x127761e10 ClangModuleImporter.import(dependencyRetriever:recursiveAPINotes:type:relativeBasePath:) + 3060 10 SymbolCacheSupport 0x127703020 ModuleImporter.importSystemModule(:) + 1468 11 SymbolCacheSupport 0x1277026e0 ModuleImporter.import(:) + 980 12 SymbolCacheSupport 0x127705684 ModuleImporter.importObjcDependencyImport(:) + 692 13 SymbolCacheSupport 0x12774894c specialized collectDependencies #1 (:) in SymbolCacheSDKStorage.indexedModule(type:dependencyRetriever:) + 512 14 SymbolCacheSupport 0x127747a38 specialized SymbolCacheSDKStorage.indexedModule(type:dependencyRetriever:) + 1156 15 SymbolCacheSupport 0x12770236c ModuleImporter.import(:) + 96 16 SymbolCacheSupport 0x127705684 ModuleImporter.importObjcDependencyImport(:) + 692 17 SymbolCacheSupport 0x12774894c specialized collectDependencies #1 (:) in SymbolCacheSDKStorage.indexedModule(type:dependencyRetriever:) + 512 18 SymbolCacheSupport 0x127747a38 specialized SymbolCacheSDKStorage.indexedModule(type:dependencyRetriever:) + 1156 19 SymbolCacheSupport 0x12770236c ModuleImporter.import(:) + 96 20 SymbolCacheSupport 0x127705684 ModuleImporter.importObjcDependencyImport(:) + 692 21 SymbolCacheSupport 0x12774894c specialized collectDependencies #1 (:) in
1
0
314
Dec ’24
Threads with classic lock-based synchronization in SwiftUI in Xcode 16
Hi, I am stuck moving one of my projects from Xcode 15 to Xcode 16. This is a SwiftUI application that uses in some places classic Threads and locks/conditions for synchronization. I was hoping that in Swift 5 mode, I could compile and run this app also with Xcode 16 so that I can start migrating it towards Swift 6. Unfortunately, my application crashes via EXC_BREAKPOINT (code=1, subcode=0x1800eb31c) whenever some blocking operation e.g. condition.wait() or DispatchQueue.main.sync { ... } is invoked from within the same module (I haven't seen this happening for frameworks that use the same code that I linked in dynamically). I have copied an abstraction below that I am using, to give an example of the kind of code I am talking about. I have verified that Swift 5 is used, "strict concurrency checking" is set to "minimal", etc. I have not found a workaround and thus, I'm curious to hear if others were facing similar challenges? Any hints on how to proceed are welcome. Thanks, Matthias Example abstraction that is used in my app. It's needed because I have synchronous computations that require a large stack. It's crashing whenever condition.wait() is executed. public final class TaskSerializer: Thread { /// Condition to synchronize access to `tasks`. private let condition = NSCondition() /// The tasks queue. private var tasks = [() -> Void]() public init(stackSize: Int = 8_388_608, qos: QualityOfService = .userInitiated) { super.init() self.stackSize = stackSize self.qualityOfService = qos } /// Don't call directly; this is the main method of the serializer thread. public override func main() { super.main() while !self.isCancelled { self.condition.lock() while self.tasks.isEmpty { if self.isCancelled { self.condition.unlock() return } self.condition.wait() } let task = self.tasks.removeFirst() self.condition.unlock() task() } self.condition.lock() self.tasks.removeAll() self.condition.unlock() } /// Schedule a task in this serializer thread. public func schedule(task: @escaping () -> Void) { self.condition.lock() self.tasks.append(task) self.condition.signal() self.condition.unlock() } }
1
0
390
Dec ’24
Another Xcode doc. error: Non-existent 'App Icons & Launch Images' menu item
In "Create asset catalogs and sets" - https://help.apple.com/xcode/mac/current/#/dev10510b1f7 - I read this: " Create an iOS or tvOS launch screen image set: Choose App Icons & Launch Images > New [OS] Launch Image from the Add button (+) or from the Editor > Add Assets menu. For an iOS app, you can also change the default launch screen source to an image set. " But neither the Editor -> Add New Asset menu nor the Add button (+) menu contains an "App Icons & Launch Images" item. I can add that I use Xcode 16.1. So again, the Xcode documentation is quite misleading and confusing! My (real) question is if it is possible to give Xcode ONE launch image from which Xcode creates all necessary image sizes automatically? Or do we still need the apps and services that creates a bunch of launch images from ONE image?
1
0
226
Nov ’24
ASWebAuthenticationSession not working in Preview
class ViewModel : NSObject, ObservableObject, ASWebAuthenticationPresentationContextProviding { private var authSession: ASWebAuthenticationSession? func signInWithOpenID(provider: OAuthProvider) { let url = getOIDCAuthenticationURL(provider: provider) authSession?.cancel() authSession = nil authSession = ASWebAuthenticationSession(url: url, callbackURLScheme: "com.ninjanutri") { callbackURL, error in if let error = error { print("Error: \(error.localizedDescription)") return } guard let callbackURL = callbackURL else { return } guard let idToken = callbackURL.valueOf("id_token") else { return } self.signInWithIdToken(provider: provider, idToken: idToken) } authSession?.prefersEphemeralWebBrowserSession = false authSession?.presentationContextProvider = self authSession?.start() } public func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor { return ASPresentationAnchor() } } struct ContentView: View { @StateObject private var viewModel = ViewModel() var body: some View { Button { viewModel.signInWithOpenID(provider: .github) } label: { Text("Test") } } } when the prefersEphemeralWebBrowserSession is false, the alert and webview is totally working fine in Simulator and Real device, but not XCode Preview. Is this behaviour expected or it's a bug?
1
0
461
Dec ’24
Is "remotepairingd" Xcode-related?
Is remotepairingd part of Xcode? It seems to be stuck using 119% CPU. This may have started when I recently paired my new Apple Watch with Xcode - or maybe that is a coincidence. The console is full of: error 16:40:26.237601+0000 remotepairingd socket-1: No more data can be received, connection was closed
0
0
560
Dec ’24
Trouble Seeing print debug statements
I am working on an XCode project and I have some Swift functions within a helper functions file. This file has some functions declared that create 3 global variables. These global variables are then used in various views throughout the app. In the functions, there are print statements for when it catches an error. However, when I run the app and I get an error that stems from this file, there are no print statements. How can I have this print statements show up in the debug console?
1
0
383
Mar ’25
String Catalog
I have enabled Code Review with the button and then String Catalog turned up to code view anyways i can't get it back to original view. Disable Code Review button doesn't do anything. Any idea?
1
0
267
Jun ’25
Can't transfer CSV file to iPhone simulator
I'm trying to transfer a CSV file to my iPhone 16 simulator to use for testing my application, but it keeps failing. See the image below. That occurs when I try to drag the file into the simulator. I also tried to use the Share option for the file, but nothing happens with that. It doesn't transfer but it also doesn't fail. I'm assuming it's failing in the background. Anyone know what I can do?
0
0
272
Dec ’24
For iOS is not a valid binary
I have a problem uploading to testflight. When I archived my app, it announced success, but when I went to the appstoreconnect website I didn't see any builds, while I waited a long time for it to be pushed up. And one more problem, when the upload notification is uploaded, after a while there is a notification that my app for ios is not a valid binary, I don't understand this problem. Can you please ask me how to solve it?
0
0
435
Dec ’24
Scipy problems with OpenBLAS and Accelerate
I'm using M1pro and have successfully installed Numpy with Accelerate following, and it really speedup my programs. I also ran np.test() to check the correctness and every test passed. However, I can't install Scipy with Accelerate, since the official document said Accelerate has a LAPACK of too old version. I can't even find a scipy that can pass scipy.test(). I tried the codes below: conda install numpy 'libblas=*=*accelerate' conda install scipy np.test() as fails, sp.test() can't even finish conda install numpy 'libblas=*=*openblas' conda install scipy Both np.test() and sp.test() can finish, but with many failures. I believe the bugs are due to Conda. pip install --no-binary :all: --no-use-pep517 numpy pip install scipy np.test() has no failure and went fast, sp.test() uses OpenBLAS and has 3 failures. This is the best version I have found. So my question is: can we find a reliable version of scipy on M1? Considering the popularity of scipy, I think it's not a high-living expectation. And a question for Apple: is there really a plan to upgrade the LAPACK in Accelerate?
2
0
2.7k
Jan ’25