with the latest Xcode version, i am getting all kinds of errors:
few main ones:
/Users/akashbhatia/MyApp/ios/Pods/Target Support Files/ReactCodegen/ReactCodegen-prefix.pch:2:9 Could not build module 'UIKit'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.4.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:18:10 Could not build module 'CoreFoundation'
/Users/akashbhatia/MyApp/ios/Pods/Headers/Public/RCT-Folly/folly/portability/Config.h:20:10 'folly/folly-config.h' file not found
I have reinstalled Xcode, removed derived data, installed pod over and over again, but I have realized from the first error here, that it has more to do with Xcode and React Native now. Any help will be appreciated.
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
As far as I know, there was a time that you can capture GPU workload for opengles game app on iOS using Xcode. However, currently I'm using Xcode version 15.2 and iOS18,it seems the "capture GPU workload" button is always disabled when I'm trying to debug my game app which is using opengles api for graphics rendering no matter switchinng "GPU Frame Capture" to "OpenGL ES" or "Metal" or "Automatically" in the scheme. And I'm not able to capture GPU workload for my game on iOS.
The only way to make the "capture GPU workload" button enabled is creating a new project using metal api for graphics rendering. But I don't want to change the graphics API, because it will cause a lot.
Does Xcode still support capturing GPU workload for OpenGLES game app on iOS? If not, is there an alternative way?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi, I'm currently facing an issue where my React Native app crashes only on a real iPhone. On the simulator and in Xcode preview, the app runs fine.
Previously, I had an issue with FlatList regarding props.getItem, which I solved by installing some missing Babel dependencies. After that, everything worked correctly in the simulator.
But when I try to open the app on a real device, it shows the splash screen and crashes immediately. I've already done a full clean and reset, including:
npx react-native start --reset-cache
Deleted node_modules and Pods, reinstalled everything
Cleaned build folder via Xcode
Deleted DerivedData
Restarted Metro bundler and simulator/device
The issue only happens on the physical device.
Here’s a portion of the crash log
IDate/Time: 2025-04-14 19:11:28.6796 -0300
Launch Time: 2025-04-14 19:11:28.5292 -0300
OS Version: iPhone OS 18.3.2 (22D82)
Release Type: User
Baseband Version: 4.20.03
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: JazminChebar [1973]
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x19a0865fc __exceptionPreprocess + 164 (NSException.m:249)
1 libobjc.A.dylib 0x197601244 objc_exception_throw + 88 (objc-exception.mm:356)
2 JazminChebar 0x1009b2c04 RCTFatal + 568 (RCTAssert.m:147)
3 JazminChebar 0x1009c81f8 __28-[RCTCxxBridge handleError:]_block_invoke + 532 (RCTCxxBridge.mm:1178)
4 libdispatch.dylib 0x1a1e19248 _dispatch_call_block_and_release + 32 (init.c:1549)
5 libdispatch.dylib 0x1a1e1afa8 _dispatch_client_callout + 20 (object.m:576)
6 libdispatch.dylib 0x1a1e29a34 _dispatch_main_queue_drain + 984 (queue.c:8093)
7 libdispatch.dylib 0x1a1e2964c _dispatch_main_queue_callback_4CF + 44 (queue.c:8253)
8 CoreFoundation 0x19a0d2bcc CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 (CFRunLoop.c:1793)
9 CoreFoundation 0x19a0cf1c0 __CFRunLoopRun + 1996 (CFRunLoop.c:3163)
10 CoreFoundation 0x19a121284 CFRunLoopRunSpecific + 588 (CFRunLoop.c:3434)
11 GraphicsServices 0x1e73914c0 GSEventRunModal + 164 (GSEvent.c:2196)
12 UIKitCore 0x19cc6a674 -[UIApplication _run] + 816 (UIApplication.m:3846)
13 UIKitCore 0x19c890e88 UIApplicationMain + 340 (UIApplication.m:5503)
14 JazminChebar 0x100178708 main + 80 (main.m:7)
15 dyld 0x1c037dde8 start + 2724 (dyldMain.cpp:1338)
I have one of our developer when he attempts to login to xcode on his macos device, he get a message that account is not found but he has an account and he logs in to app developer portal with no issue. Thanks
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi everyone,
I’m facing a major roadblock with my family location tracking app, and I need some advice or guidance from the community.
Background
Back in 2021, I implemented NSE filtering entitlement to send location-based notifications and retrieve the device's location in return (as suggested by Apple’s technical code support). Over time, I built my app around this entitlement, adding many features that depend on it.
When Location Push Service Extension was introduced for iOS 15+, I adapted accordingly:
NSE filtering was used for devices below iOS 15
Location Push Service Extension was used for iOS 15+
NSE filtering also played a crucial role in:
✅ Accepting/rejecting location-based notifications
✅ Checking device settings & location permissions (since location push won’t work without proper permissions)
The Issue
In November 2024, I created a new developer account to change my business entity. Since then, I’ve been requesting the NSE entitlement repeatedly for four months, but Apple keeps rejecting it. Meanwhile, they approved the Location Push Entitlement, but without NSE filtering, I’m forced to rewrite a huge part of my app’s core functionality.
I’ve sent multiple emails explaining my use case, but I keep getting rejected without any clear explanation or workaround.
My Ask
Has anyone faced a similar issue with NSE entitlement?
Are there any alternative approaches to achieve the same functionality?
Any advice on how to escalate this to Apple or get proper feedback on why it's being rejected?
I’ve invested years into this app, and a forced rewrite would take months. Any help, insights, or contacts who could assist would be greatly appreciated!
Thanks in advance! 🙏
Topic:
Developer Tools & Services
SubTopic:
Xcode
I've recently upgraded to Sequoia and Xcode 16.3 (now 16.4RC) and a significant change I've noticed vs 16.2 is that the height of UINavigationBar components in storyboards and XIBs is incorrect.
Xcode 16.2:
Xcode 16.4:
This only affects simulated metrics in storyboard / XIB files.
I have been unable to find any discussion of this issue anywhere online.
Is this actually an Xcode bug that has gone unnoticed / unfixed or is there some underlying intentional change here that I'm unaware of?
Topic:
Developer Tools & Services
SubTopic:
Xcode
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=station%20bab%20saadoun&key=GOOGLE_API_KEY&components=country:TN
func googleAutocomplete(for query: String, completion: @escaping ([GooglePlaces]) -> Void) {
let apiKey = GoogleMapAPIs.shared.apiKey
let baseURL = "https://maps.googleapis.com/maps/api/place/autocomplete/json"
guard let url = URL(string: "\(baseURL)?input=\(query)&key=\(apiKey)&components=country:TN") else {
print("Invalid URL")
completion([])
return
}
print(url)
let task = URLSession.shared.dataTask(with: url) { data, response, error in
if let error = error {
print("Error fetching data: \(error.localizedDescription)")
completion([])
return
}
guard let data = data else {
print("No data received")
completion([])
return
}
do {
let decodedResponse = try JSONDecoder().decode(GooglePlacesResponse.self, from: data)
completion(decodedResponse.predictions)
} catch {
print("Decoding error: \(error)")
completion([])
}
}
task.resume()
}
struct GooglePlaces: Codable {
let title: String?
let region: StructuredFormatting?
let placeID: String?
enum CodingKeys: String, CodingKey {
case title = "description"
case region = "structured_formatting"
case placeID = "place_id"
}
}
struct StructuredFormatting: Codable {
let main_text: String
let secondary_text: String?
}
struct GooglePlacesResponse: Codable {
let predictions: [GooglePlaces]
}
Error fetching data: The network connection was lost.
Topic:
Developer Tools & Services
SubTopic:
Xcode
I'm following the steps laid out in Creating a static framework which states:
When a client links and embeds the framework, Xcode 15 or later omits the main binary from the embedded framework bundle because it’s already statically linked into the client.
Specifically, I'm adding a new framework target to my project, and then changing the Mach-O type in its build settings to Static Library.
What I'm observing when I build (debug or release) is that that the resulting framework folder inside of the app bundle still contains a binary.
Furthermore, upon inspecting strings and symbols in both the main app executable and this library binary, it appears that my strings and symbols do end up in the main executable and not in the library binary.
Does this mean that this binary is just a stub left behind?
Is this intended?
Can I safely delete this binary with a build phase script?
the Xcode Version 16.2 (16C5032a),
I want to know how to setup a directory in Xcode project when develop the iOS app.
Here is the whole thing:
I start a new iOS App project "test_path".
then I right click, and choose "New Folder", to make a new folder "configx"
then I right click on the configx folder, and choose the "add files to test_path", add a file in it
But the folder does not exist in the project when try to access by "Bundle.main.urls" func.
5. when ls in the Mac, /data/Containers/Bundle/Application/E4F11903-3FAD-467F-A4CD-60AC68D64934/test_path.app, the file just at the root path of test_path.app, no "configx" folder ahead the file.
so, how to setup a directory or a path in iOS project?
I am trying to setup a unversal linking for my new developing app.
but it look like not function well. did any one have some examples or demo domains suggest to use?
In fact finally my app is just internal using, user will not suppose connect to internet , how can I using the universal linking without a website ?
Thanks
Xcode 16 insists on showing deprecations of this type:
Some.xib SF Symbol 'doc.on.doc' is deprecated, use 'document.on.document' instead.
The problem is that the XIBs in question are set with a Deployment Target of macOS 12, where "document.on.document" actually isn't available and produces a missing image.
So the warnings are wrong, as they ignore the deployment target set on the XIB. I filed a bug against this long ago and it was ignored. Having given up... does anyone know how to disable this particular warning?
When I execute:
geoCoder.reverseGeocodeLocation(location, completionHandler:{[weak self](placemarks, error) in
print("reverse geocoding location after altitude: ",location.altitude)
print("placemark location first", placemarks?.first?.location?.altitude ?? -1)
The input CLLocation has correct altitude 25, instead the location in the output placemarks have altitude 0, when of course they should have the same location. Moreover it is impossible to retrofit any data in the returned placemarks as they are portrayed as a read only property.
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.
I am trying to add in-app purchases to my app. I created a StoreKit Configuration file and checked the option 'Sync this file with an app in App Store Connect' because I have already completed the subscription setup in my Apple Developer account.
I also tried implementing the in-app purchases directly without using the StoreKit Configuration file, but I’m getting an 'Invalid Product Identifiers' error. I’ve double-checked, and the product ID matches the one listed in my Apple account.
Please guide me on what I should do.
I'm integrating Apple Pay with PayFort in a Swift iOS application, and I’m currently working on preparing a valid purchase request using Apple Pay, as described in PayFort’s documentation:
🔗 https://docsbeta.payfort.com/docs/api/build/index.html?shell#apple-pay-authorization-purchase-request
The documentation outlines the following required parameters:
apple_data
apple_signature
apple_header
apple_transactionId
apple_ephemeralPublicKey
apple_publicKeyHash
apple_paymentMethod
apple_displayName
apple_network
apple_type
Optional: apple_applicationData
I understand these should be derived from the PKPayment object after Apple Pay authorization, but I’m having trouble mapping everything correctly. Here’s what I’m seeing in code:
payment.token
// Returns something like: <PKPaymentToken: 0x28080ae80; transactionIdentifier: "..."; paymentData: 3780 bytes>
payment.token.paymentData
// Contains 3780 bytes of encrypted data
payment.token.paymentData.base64EncodedString()
// Returns a long base64 string, which at first glance seems like it could be used for apple_data,
// but PayFort doesn't accept it as-is — so this value appears to be incomplete or incorrectly formatted
I can successfully retrieve the following values from payment.token.paymentMethod:
apple_displayName
apple_network
apple_type
However, I’m still unsure how to extract or build the following in the format accepted by PayFort:
apple_data
apple_signature
apple_header
apple_transactionId
apple_ephemeralPublicKey
apple_publicKeyHash
apple_paymentMethod
These may be contained within the paymentData JSON, but I’m not sure how to decode it or if Apple allows decrypting it in a way that matches PayFort’s expected format.
How can I correctly extract or build apple_data, apple_signature, and apple_header from the Apple Pay token?
Also, how should I handle the decryption or decoding (if necessary) of paymentData to retrieve values like apple_transactionId, apple_ephemeralPublicKey, and apple_publicKeyHash?
If anyone has successfully set this up or has example code that bridges Apple Pay and PayFort’s expected request format, it would be super helpful!
Thanks in advance 🙏
Hi,
in XCode and iOS app. Tried to add Icon, got image size errors. reuploaded with correct sizes and started getting this error.
Tried all the solutions from forums, didn't work.
Restarted Mac
Deleted Assets.xcassets and recreated with AppIcon and AccemntColor
Copied "Assets.xcassets" from new dummy Project to main one.
I don't have info.plist file
Could you please help.
Thanks,
Bhanu
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi everyone,
I'm trying to add standard, non-unique database indexes to my Core Data entities for performance optimization (e.g., indexing Date or String attributes used in predicates and sort descriptors). I'm using Xcode 16.2 on macOS Sequoia 15.1.
My problem is that I cannot find the expected UI element in the Core Data model editor (.xcdatamodeld) to configure these database indexes.
What I Understand / Expect:
I know the old "Indexed" checkbox on the Attribute Inspector is deprecated/gone.
My understanding from recent documentation and tutorials is that database indexing (separate from Spotlight indexing) should be configured in the Entity Inspector (when the Entity itself is selected), within a section titled "Indexes" (usually located below "Constraints").
This "Indexes" section should allow adding individual or compound indexes that translate to SQL CREATE INDEX commands, distinct from uniqueness constraints.
What I'm Experiencing:
When I select an Entity in the model editor, the "Indexes" section is completely missing from the Data Model Inspector pane on the right. I see sections for Name, Class, Constraints, Spotlight, User Info, Versioning, etc., but no "Indexes" section appears between Constraints and Spotlight (or anywhere else).
Troubleshooting Steps Taken:
Verified Selection: I have confirmed I am selecting the Entity itself in the left-hand list, not an individual Attribute.
Ruled out Spotlight Indexing: I understand the difference between database indexing (for internal query performance) and the "Index in Spotlight" checkbox/Core Spotlight framework (for system search). I specifically need the former.
Basic Xcode Troubleshooting: I have tried restarting Xcode, cleaning the build folder (Shift+Command+K), and deleting the project's Derived Data. The "Indexes" section remains missing.
Checked File Placement/Target Membership: Confirmed the .xcdatamodeld file is correctly included in the target. Its location in the project navigator doesn't seem relevant.
Checked Model Versioning: Ensured the correct model version is set as "Current" in the File Inspector.
Ruled out Other Features: Confirmed that Fetch Requests, Fetched Properties, and User Info keys are not the mechanisms for defining database indexes.
Confirmed Not Project-Specific: I created a brand new, template-generated iOS App project with "Use Core Data" checked. In this new project, when selecting the default "Item" entity, the "Indexes" section is also missing from the Entity Inspector. This strongly suggests the issue is with my Xcode environment/version itself, not my specific project's setup.
Considered Programmatic/Manual: I understand Core Data expects schema definitions (including indexes) declaratively in the model file. While manual XML editing of the contents file works (adding ... within the tag), this is not the desired or intended workflow via the standard tools.
My Questions:
What is the correct, current procedure for defining non-unique Core Data database indexes using the Xcode UI in Xcode 16.2?
Has the location or method for configuring database indexes changed in this version of Xcode? If so, where is it now?
Is the absence of the "Indexes" section in the Entity Inspector a known issue or intentional change for this Xcode version?
If the standard UI method is unavailable, what is the officially recommended approach (other than manual XML editing)?
I've reviewed the documentation ("Configuring Entities", "Configuring Attributes") and while screenshots show the inspectors, they don't definitively show the "Indexes" section within the Entity Inspector, sometimes focusing on attributes or potentially being cropped.
Any clarification or guidance would be greatly appreciated!
Hi,
I'm unable to install provisioning profile on my iPad and I know the xcode component iOS/iPadOs version and iPadOS version should be same or below the latest compared to xcode components.
Now the issue is xcode component version is iOS 18.4 (22E235) SDK + iOS 18.4 (22E238) Simulator (Installed) and iPadOS version is iOS 18.4.1(22E252) could this be cause of issue ?
If yes then when will apple release components for 18.4.1?
Because iOS 18.4.1 release at least 3-4 weeks before this post.
I've got a 2019 Intel iMac running Sequoia 15.4.1 and Xcode 16.3. Every time I try to view a storyboard Xcode locks up and beachballs on me. It takes minutes to load the file. When I force-quit Xcode, the report that shows up has this as the reason:
Processes reached dispatch thread soft limit (64): launchd_sim [96305] [unique pid 194673], launchd_sim [96260] [unique pid 194628]
Deadlock: AppleSpell [1494] thread 0x1df0c4 DispatchQueue 313 -> AppleSpell [1494] thread 0x1df0c4 DispatchQueue 313
Deadlock: AppleSpell [1494] thread 0x1df114 DispatchQueue 86 -> AppleSpell [1494] thread 0x1df114 DispatchQueue 86
Blocked by Deadlock: 1 task - AppleSpell [1494]
I'm wondering, why is AppleSpell trying to spell-check a plist file?
Is there any way to tell AppleSpell to ignore a file?
Hello!
I'm experiencing a persistent SwiftCompile warning that I haven't been able to resolve for several months:
<unknown>:0: warning: default will never be executed
Observations:
Appears randomly across different files during the build.
No source location or line highlighting is provided.
Persists across clean builds and project reopenings.
Occurs in both Xcode Cloud and local builds.
What I’ve tried:
Ensuring all switch statements on enums explicitly handle every case.
Removing default cases from fully covered enum switches.
Refactoring optional enum handling (e.g., using if let instead of switch).
None of these resolved the issue. Any guidance would be greatly appreciated!
Project details:
Xcode: 16.2
Swift: 6
iOS Target: 17.0+
UI: SwiftUI-only (no UIKit)
Dependencies: SwiftPM