Developer Tools

RSS for tag

Ask questions about the tools you can use to build apps.

Posts under Developer Tools tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Adding ObjC Files in Xcode Packages Requires a Clean Build
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.
0
0
241
Sep ’24
"xcrun xcresulttool get --format json --path" deprecated - what's the alternative?
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?
5
2
1.2k
Sep ’24
Enterprise API for Vision pro
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!!
3
0
434
Sep ’24
Cant get rid of tracking usage description plist value.
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?
1
0
245
Sep ’24
iOS app fails to run with Xcode 16, no issue with Xcode 15 (no build errors)
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?
11
3
6.2k
Sep ’24
Signing application with app extensions
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.
3
0
467
Sep ’24
分类文件中 #import "NSDate+Utilities.h" 中有个方法是@property (readonly) NSInteger weekday; 调用此属性崩溃
自定义分类文件中】 #import "NSDate+Utilities.h" 文件中中有个方法是@property (readonly) NSInteger weekday; 调用此属性崩溃,我必须把属性名改成@property (readonly) NSInteger nweekday; 才不会崩溃,在iOS18以前没有出现这个问题,今天iOS18上会出现此问题,找不出原因,麻烦给解释一下。
0
0
237
Sep ’24
How to create an enterprises app that run in kill state? and How managed By MDM payloads for this?
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.
0
0
368
Sep ’24
xctrace Recording Failure
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.
1
0
322
Sep ’24
modulemap for a framework that uses another framework's interface in its interface
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!
0
0
268
Sep ’24
ONLY_ACTIVE_ARCH is not working in Xcode 15.4
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?
1
0
261
Sep ’24
Build Errors for Reality Composer Pro Packages in Xcode 16 Beta 6 for iOS 18
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.
5
0
519
Sep ’24
Creating Shared Experiences in Physical Locations
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!
3
0
568
Sep ’24
Apple Wallet Not Detecting My Pass (.pkpass) - How to Identify the Issue?
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!
1
0
305
Oct ’24