We’ve been encountering build failures when switching Git branches in Xcode (15 & 16), where the project fails to build due to missing symbols. Typically, running an Xcode clean resolves the issue, but this is disruptive—especially on large projects where a full rebuild after cleaning can be time-consuming.
We’ve managed to reproduce this issue in a minimal setup:
Create a new Xcode project.
Include a local Swift Package in the project. The main project depends on the package.
Add a new Objective-C class to the package.
Use that new class in the main project.
Build (FAILS).
Clean the project.
Build (SUCCEEDS).
This issue tends to arise when switching Git branches that introduce new files, such as Objective-C files that don’t exist on the main branch. If a new file is introduced in a feature branch, switching between main and feature requires a clean before the project will build successfully again.
We plan to file a feedback report, but in the meantime, we’re wondering if anyone has found effective workarounds for this problem when switching branches.
The only reasonable work-around we have found is to create an umbrella header manually and include the new header. It would be nice to not have to resort to maintaining umbrella headers in packages but this is ok.
Developer Tools
RSS for tagAsk questions about the tools you can use to build apps.
Posts under Developer Tools tag
200 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
Hi,
I'm using the following command to extract information about the code coverage:
xcrun xcresulttool get --format json --path /some/path/to/xcresult
However, since Xcode 16 I get:
Error: This command is deprecated and will be removed in a future release, --legacy flag is required to use it.
But this message doesn't tell us what's the alternative to get the same result. Or are you just getting rid of useful functionality and there is no alternative?
We are working on to enable enterprise api account from our developer account. But it is not showing me that option. We are referring below link from apple :
https://developer.apple.com/help/account/get-started/apple-developer-enterprise-program-api/
We don't find "Apple Developer Enterprise Program API configuration" in our developer account Inside Integration tab
I am attach our developer account Screenshot. Please guide us!!
In Xcode 16 RC and Xcode 16 the minimum deployment drop down menu to select which version is iOS you want to deploy to is missing. I filed feedback on it for both the release candidate and the release version. I'm just wondering if this is happening for everyone. I'm still using Sonoma 14.6.1.
FB15149078
I am having trouble releasing my app to the app store since I am collecting tacking user data. However, this is an ue5 project that I imported over to Xcode to release my game and I don't have any tracking permissions. After making a blank ue5 project and doing the same the tracking permission is there automatically so I guess for ue5 projects they activate this. Is there any way to remove this feature in Xcode. I've also tried requesting the data from the user but since I made the project in xcode, I don't know how to code additional things into the game using xcode. I tried adding some code for requesting permission but it didnt show nor effect my game at all. If impossible to remove the tracking where should I write the permission code if this is an ue5 project?
Environment: Xcode16 RC, iOS14/iOS15
Bug description: When creating a Widget Extension in Demo and running, it will crash with the following error:
But if running on iOS16 or above, it is normal
In iPhone Settings App > My App > settings list I see this error.
But, we do have info.plist file.
May I know why this error happens?
When I build and run my iOS app with Xcode 16.0 RC (16A242), it fails to run on both a physical iPhone (running iOS 18.0) and any iOS simulator (17.5, 18.0 RC tested). To be clear, this is an issue when running – there are zero build errors, and compilation always completes successfully.
The same app, building and running from Xcode 15.4 (15F31d) runs on both a physical iPhone (same OS version) and an iOS simulator (same version) with no issues, and is currently deployed to TestFlight with no crashes at launch reported from users.
Xcode 16's console logs the following:
warning: (arm64) /Users/seb/Library/Developer/Xcode/DerivedData/Feed-bvzobcgzcnaibqbcwiasvpoxsetu/Build/Products/Debug-iphonesimulator/Feed.app/Feed empty dSYM file detected, dSYM was created with an executable with no debug info.
No entry point found. Checked '(null)'
I've so far tried a clean build, as well as clearing out my derived data folder entirely. Happy to provide any more info.
Does anyone have any pointers as where I even start to debug this issue and narrow down on what's going on with Xcode 16?
We have developed an electron app which we want to extend with an action extension. The action extension is written in swift in Xcode. Our plan was to build the .appex file and insert it into the PlugIns folder in our electron app, but I don't think this is the right way to do it?
If we insert the .appex file before notarization then we get an error that we are "replacing existing signature".
If we manually insert it after the notarization then we get an error with the app is damaged and can’t be opened.
Can anybody provide a procedure for this kind of merge I would imagine that it goes something like:
Sign app
Sign extension
Add extension to App
Notarize app
For signing the app we use electron-builder.
自定义分类文件中】
#import "NSDate+Utilities.h"
文件中中有个方法是@property (readonly) NSInteger weekday; 调用此属性崩溃,我必须把属性名改成@property (readonly) NSInteger nweekday; 才不会崩溃,在iOS18以前没有出现这个问题,今天iOS18上会出现此问题,找不出原因,麻烦给解释一下。
Inquiry about Running Enterprise Apps in Killed State and MDM Payload Management:-
I am developing an enterprise iOS application that needs to perform specific tasks or network calls even when the app is in a killed state (i.e., when it is not actively running in the foreground or background). I understand that standard iOS restrictions prevent apps from executing code while in this state, but I am exploring potential solutions within the scope of enterprise apps and MDM (Mobile Device Management) capabilities.
Howdy everyone, I'm researching for a potential product so I can't give too many details. To be brief, I need to put an iPhone or iPad into Wifi Monitor mode. I plan on creating an app to control this for users to utilize. I can't find material on this topic in the Xcode Docs, or if the iPhone/iPad even supports Wifi Monitor mode.
Does anyone know if it's even possible?
Translate the complete passage into English: "When using xctrace to record mobile process performance parameters, it happens that long duration recordings (exceeding about 20 minutes) result in the trace file missing some information, as shown in the diagram. However, there is no issue when recording directly with the instrument on the problematic machine. Now, using xctrace for recording for over 20 minutes almost certainly causes this problem. The macOS versions are all 12.5.1, and the processors are M1 and Intel Core i7, respectively. Additionally, the Xcode versions are all 13.4 (13F17a). There is no problem with short recording durations. Only when it records for a longer period does it result in nearly all data being lost. The situation is pretty much the same with the other templates as well.
I have an app that uses FrameworkA and FrameworkB.
FrameworkA is simple, i.e., no dependencies.
FrameworkB includes FrameworkA, which is normal. But it also uses pieces of FrameworkA's public interface in its own public interface. Yes, I find that a bit odd... (I didn't make those frameworks... just trying to sort out things...)
Now I am trying to enable Xcode's module verifier for FrameworkB and the problem begins...
FrameworkB can no longer have
#import <FrameworkA/FramworkASomethingSomething.h>
in its public headers.
The modulemap file for FrameworkB currently looks like
framework module FrameworkB {
umbrella header "FrameworkB.h"
export *
module * { export * }
}
Is it possible still use FrameworkA's public interface in FrameworkB's public interface?
And if yes, how is that sorted out in the modulemap?
So far I have tried
framework module FrameworkB {
umbrella header "FrameworkB.h"
export *
module * { export * }
link framework "FrameworkA"
module FrameworkA [system] {
umbrella header "FrameworkA.h"
export *
}
}
But it gives the error
Umbrella header 'FrameworkA.h' not found
Thanks!
As of Xcode 15.4 (and possibly earlier), Xcode does does not build all architectures for a target when 'Build Active Architecture Only' (ONLY_ACTIVE_ARCH) is set to 'No'. Instead, the run destination ('My Mac' vs 'Any Mac') appears to completely override that setting.
The help documentation blurb for ONLY_ACTIVE_ARCH states the run destination is only used when the build setting is enabled, and that was indeed the case in earlier versions of Xcode.
Has the expected behaviour of that setting changed?
Is it possible to play audio in the Background or when the app is Terminated? If yes, how can I play audio in the Background or when the app is Terminated in iOS using Swift? I am receiving an audio link in a Firebase notification. How can I play this audio link when the app is in the Background or Terminated?
Using Xcode 15.4, I have successfully built and run my app using Reality Composer Pro Version 1.0 package. I then successfully submitted that app version for release. Now, using Xcode 16 Beta 6, I've created a new branch repository for updating my app for iOS/iPadOS 18 and visionOS 2. However, once I created and switched to the new branch and did a build, I get build errors. It seems to be regarding the package manifest that relates to my Reality Composer Pro package that is part of my app. When I go to the package file in my project navigator and click the Open in Reality Composer Pro button, my package opens in Reality Composer Pro 2.0, which makes sense since it it the version for Xcode 16. However, I don't know how to address/get rid of the build errors.
I've added and image of my build errors.
Hello everyone,
I'm working on developing an app that allows users to share and enjoy experiences together while they are in the same physical locations. Despite trying several approaches, I haven't been able to achieve the desired functionality. If anyone has insights on how to make this possible or is interested in joining the project, I would greatly appreciate your help!
Hello,
I'm using the custom symbol feature in the official SF Symbols app. I'm wondering if there is a way to sync my custom symbols across different devices? Since I have multiple Macs to work on, maybe iCloud?
I'm trying to add a pass to Apple Wallet, but it isn't being detected when I attempt to add it. I've created the .pkpass file, and it contains the following files:
en.lproj/
icon.png
icon@2x .png
manifest.json
pass.json
signature
{
"formatVersion": 1,
"passTypeIdentifier": "pass.com.yourdomain.com",
"serialNumber": "123456",
"teamIdentifier": "5ZXXXXXX",
"description": "This is an Event Pass",
"eventTicket": {
"primaryFields": [
{
"key": "event",
"label": "EVENT",
"value": "Concert"
}
],
"secondaryFields": [
{
"key": "location",
"label": "LOCATION",
"value": "Example Venue"
},
{
"key": "date",
"label": "DATE",
"value": "2024-08-15"
}
],
"auxiliaryFields": [
{
"key": "time",
"label": "TIME",
"value": "7:00 PM"
}
],
"backFields": [
{
"key": "terms",
"label": "TERMS & CONDITIONS",
"value": "Non-refundable. Please arrive 30 minutes early."
}
],
"barcode": {
"message": "1234567890",
"format": "PKBarcodeFormatQR",
"messageEncoding": "iso-8859-1"
}
},
"organizationName": "ORGANIZATION NAME",
"logoText": "Concert 2024",
"foregroundColor": "rgb(255, 255, 255)",
"backgroundColor": "rgb(0, 0, 0)",
"eventTicketStrip": {
"primaryFields": [
{
"key": "event",
"label": "Event",
"value": "Concert"
}
]
},
"relevantDate": "2024-08-15T19:00:00Z"
}
What I've Done So Far:
Validated the Manifest: The SHA-1 hashes in the manifest.json match the actual files in the package.
Checked the pass.json: It seems to be correctly formatted, and all fields are populated.
Verified Pass Structure: The .pkpass file structure appears to be correct.
Validate with PKpass Validator: It's seems like all points are valid I put screenshot over here.
My Questions:
What could be preventing Apple Wallet from detecting this pass?
How can I verify if the signature is correctly applied?
Are there any recommended online tools or methods to debug this pass and identify what might be wrong?
I've tried using a few online validators, but the issue persists. Any guidance on how to resolve this would be greatly appreciated!