Search results for

xcode github

94,729 results found

Post

Replies

Boosts

Views

Activity

Reply to Game Center and Push Notifications
There sure area lot more questions posted than helpful replies in these forums. No response even by Apple. I submitted a request for help and they asked for screenshots! Of what? The lack of a banner notification? Upshot of it all, if you're having this problem, move your app to Test Flight - that uses the production notification system, whereas Xcode and the simulator do not and are very low priority. After moving my app to Test Flight, I got all the notifications expected.
3w
DeviceActivityReportExtension: NSExtensionPrincipalClass required by App Store but rejected at runtime
I'm experiencing a contradictory validation issue with DeviceActivityReportExtension that creates an impossible situation: The Problem: Without NSExtensionPrincipalClass in Info.plist → App Store Connect rejects upload with: Missing Info.plist values. No values for NSExtensionMainStoryboard or NSExtensionPrincipalClass found With NSExtensionPrincipalClass → Local install fails with: defines either an NSExtensionMainStoryboard or NSExtensionPrincipalClass key, which is not allowed for the extension point com.apple.deviceactivityui.report-extension Setup: Extension point: com.apple.deviceactivityui.report-extension Using SwiftUI with @main attribute and DeviceActivityReportExtension protocol Xcode 16.2, iOS 17.6 deployment target Code structure: @main struct SpoolReport: DeviceActivityReportExtension { var body: some DeviceActivityReportScene { // Report scenes here } } The extension builds and runs perfectly without NSExtensionPrincipalClass, but cannot be uploaded to App Store Connect. Adding the key
6
0
313
3w
hapticpatternlibrary.plist error with Text entry fields in Simulator only
When I have a TextField or TextEditor, tapping into it produces these two console entries about 18 times each: CHHapticPattern.mm:487 +[CHHapticPattern patternForKey:error:]: Failed to read pattern library data: Error Domain=NSCocoaErrorDomain Code=260 The file “hapticpatternlibrary.plist” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSURL=file:///Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSUnderlyingError=0x600000ca1b30 {Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory}} <_UIKBFeedbackGenerator: 0x600003505290>: Error creating CHHapticPattern: Error Domain=NSCocoaErrorDomain Code=260 The file “hapticpatternlibrary.plist” couldn’t be opened because there is no such file. UserInfo={NSFilePath=/Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSURL=file:///Library/Audio/Tunings/Generic/Haptics/Library/hapticpatternlibrary.plist, NSUnd
2
0
285
3w
Push Notifications Error
Hi, I'm experiencing an issue with my app. I use Firebase as my server, and it is great. Still, there is one issue: when I send push notifications from my app to users, the users will get the notification if the app is open, but not when it is closed. I have tried many solutions to fix it, even asking AI, but the issue is still there. I would be happy to give you access to Firebase and the Xcode workspace, as I have no clue how to fix it.
1
0
77
3w
Reply to UI Tests troubles with Xcode 26.1 and Xcode 26.2
So, after more tests and refactoring, we have the feeling all this mess started from our custom component providing a TabView with more or less customization depending to the OS version (i.e. Liquid Glass or not). Our old implementation, with a ZStack and some conditions inside, brought this cycle in attributes graph issue. Such cycle broke the view hierarchy, the UI tests and had side effects on other elements of navigation. The only interesting thing I can share is our Git diff (on GitHub, public repository,hope it would help someone.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
3w
Reply to SensorKit - Questions about the startRecording() and data holding period
If the user toggled the permission (turned off and turned on again) in Settings Privacy & Security -> Research Sensor & Usage Data -> Optical Sensor -> apps and studies with access, will the holding period get reset ? The 24 hours holding period is counting from the calendar day 24:00 or the time startRecording() got called ? I tried the following step but got a empty export, any ideas why ? Delete the app Install the app from Xcode with dev profile Called startRecording() and wait 24 hours exactly During the 24 hours, I wore my watch for around 12 hours, and update the app in place(without change the Xcode build number) for couple times. Export from system settings Optical Sensor -> Export All Current Collected Data
Topic: App & System Services SubTopic: General Tags:
4w
Reply to XCode26 - Unable to launch Image in storyboard for landscape picture in Portrait orientation
I had updated the github code here for the setting . Please advise the specific setting The configuration that I see in the GitHub repository looks correct now in terms of overall configuration of your Launch Storyboard and the overall keys. However, I will reiterate what I said earlier to make sure that the contents of your launch screen match the Human Interface Guidelines. — Ed Ford,  DTS Engineer
Topic: UI Frameworks SubTopic: SwiftUI Tags:
4w
Reply to How can I configure the application or environment to suppress this repeated permission prompt?"
Hi @Ankita-Shrivastava, These forums for intended for code-level questions from our Developer community. This question is about a user-facing feature of macOS. Please see the following support page for more details about Full Disk Access: Mac User Guide: Change Privacy & Security settings on Mac https://support.apple.com/guide/mac-help/change-privacy-security-settings-on-mac-mchl211c911f/15.0/mac/15.0#:~:text=Full%20Disk%20Access Cheers, Paris X Pinkney |  WWDR | DTS Engineer
4w
Reply to Multi-machine Code Signing
Thanks for the replies. You are both quite right that I should have provided more information. When I say that notarization succeeds, I mean that I submit the dmg file produced by the build to the Apple notarization service and receive a status of 'Accepted'. I take this to mean all is well. When I say that notarization fails, I mean that the notarization step produces a status of 'Invalid'. Retrieving the notarization log indicates that the binaries were not signed. I've just gone through this again with my two machines. The build here is performed by scripts that are maintained in source code control and forced to be identical in both setups. The build infrastructure is also the same for both. Before beginning, both machines were powered off for a period of time. Power up one machine. Ensure the source tree is up-to-date. Run the build to produce a signed dmg. Submit it for notarization. The submission produces a status of Accepted. Power down the first machine. Power up the second machine. Again ensure the
4w
Unable to profile Metal app on M2 Ultra (profiling works on M3 Pro)
On MacBook Pro M3 14 I can profile the Metal App performance by running it, then clicking on the M icon and choosing profile after replay. On Mac Studio M2 Ultra I cannot: the profiler starts and crashes. I have tried everything including reinstalling the OS, Xcode, the Metal SDK, you name it. The app uses the Metal 4 API. The content of the replayer errorinfo report is shown at the end. Any ideas what is going on here and/or what else I can do do root cause this and fix it? FWIW, it was worse on 26.1 (Xcode just reported Metal 4 profiling not available). In 26.2 Xcode attempts to profile and invariably crashes. === Error summary: === 1x DYErrorDomain (512) - guest app crashed (512) 1x com.apple.gputools.MTLReplayer (100) - Abort trap: 6 === First Error === Domain: DYErrorDomain Error code: 512 Description: guest app crashed (512) GTErrorKeyPID: 26913 GTErrorKeyProcessName: GPUToolsReplayService GTErrorKeyCrashDate: 2026-01-09 19:22:52 +0000 === Underlying Error #1 === Domain: com.a
1
0
348
4w
Unable to run embedded binary due to quarantine
Hi! I've been scratching my brain for a few days now to no avail. I have a Perl project that I need to embed within my app. Perl includes a pp command (https://metacpan.org/pod/pp) which takes the runtime binary and then slaps the Perl code at the end of the binary itself which in brings some woes in a sense that the binary then needs to be fixed (https://github.com/rschupp/PAR-Packer/tree/master/contrib/pp_osx_codesign_fix) by removing the linker-provided signature and fixing LINKEDIT and LC_SYMTAB header sections of the binary. Nevertheless, I've successfully gotten the binary built, fixed up and codesigned it via codesign -s '$CS' mytool (where $CS is the codesigning identity). I can verify the signature as valid using codesign -v --display mytool: Identifier=mytool Format=Mach-O thin (arm64) CodeDirectory v=20400 size=24396 flags=0x0(none) hashes=757+2 location=embedded Signature size=4820 Signed Time=5. 1. 2026 at 8:54:53 PM Info.plist=not bound TeamIdentifier=XXXXXXX Sealed Resources=none Internal requi
4
0
339
4w
Reply to UI Tests troubles with Xcode 26.1 and Xcode 26.2
After more investigations, we spotted there is a component we implemented (tab bar) with special behavior which creates such cycle in attributes graph. Thus in that case it breaks the view hierarchy for the accessibility inspector and UI tests, and creates troubles on other navigation components. We still look in our codebase and will share here which stuff brings the issue with the Xcode 26.2 buildchain.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
4w