Search results for

xcode github

92,017 results found

Post

Replies

Boosts

Views

Activity

Provisioning Profile, Automatic Sign In Failures
Hello, I'm working in Xcode Version 16.4. I have not been able to sign in without errors. I've paid for the dev account. I've created certificates. Downloaded and uploaded CSRs. Use background mode, not used background mode. Nothing seems to work. Thank you for looking into this! Hopefully you can point me in the right direction or find a solution. Attached screenshots with errors.
2
0
398
3w
iOS 26, bottom UIToolbar not extending behind safe area to screen edge
An app with a UIToolbar pinned to the bottom of a view controllers view extends to the screen edge (behind the safe area) when run on iOS 18.X but not iOS 26. This UIToolbar is set as constrained to the safeAreaLayoutGuide with the following constraints. self.view.addConstraints([ bottomToolbar.leadingAnchor.constraint(equalTo: self.view.leadingAnchor), bottomToolbar.trailingAnchor.constraint(equalTo: self.view.trailingAnchor), bottomToolbar.bottomAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.bottomAnchor), bottomToolbar.heightAnchor.constraint(greaterThanOrEqualToConstant: 44.0) ]) This is especially noticeable when the UIToolbar background color differs from the view background color. This occurs on iOS 26 beta 6, app built with Xcode 26 beta 5. I've posted a Feedback FB19664903 including a minimal Xcode workspace that reproduces this issue. Anyone suggestions would be appreciated ... this definitely seems like a regression.
3
0
196
3w
Xcode 26: Sendable checking + NSManagedObjectContext.perform in Swift 6
I have some code which handles doing some computation on a background thread before updating Core Data NSManagedObjects by using the NSManagedObjectContext.perform functions. This code is covered in Sendable warnings in Xcode 26 (beta 6) because my NSManagedObject subclasses (autogenerated) are non-Sendable and NSManagedObjectContext.perform function takes a Sendable closure. But I can't really figure out what I should be doing. I realize this pattern is non-ideal for Swift concurrency, but it's what Core Data demands AFAIK. How do I deal with this? let moc = object.managedObjectContext! try await moc.perform { object.completed = true // Capture of 'object' with non-Sendable type 'MySpecialObject' in a '@Sendable' closure try moc.save() } Thanks in advance for your help!
1
0
104
3w
Reply to Icon Composer: Any way to add icons to the app bundle for older macOS versions?
Amazing! Thanks @superpixel! Adding the secret undocumented --enable-icon-stack-fallback-generation=disabled to the ASSETCATALOG_OTHER_FLAGS build setting does work on Xcode 26 beta 6. What I do is enable this, disable Include all app icon assets and copy a separately compiled AppIcon.incs (with the legacy icons) to the Resources folder while making sure the CFBundleIconFile is in the Info.plist pointing to this file - this results in the correct icon showing up on older macOS versions, while Tahoe uses the Icon Composer variant. This should work on macOS (not sure if works for App Store, but my app is not an App Store app, so it does not matter). An other way is to have Include all app icon assets which generates the proper variants in Assets.car, but it bloats the bundle size somewhat (especially as I have some assets that depend on build configuration and this option makes all those into the bundle) - this might be the proper way though. Hope Apple fixes this properly though or add least adds a pr
3w
Is there a tutorial or good resource about publishing a Python based app on Apple Store?
Hi guys, Is there any good up-to-date tutorial about publishing a Python based app on Apple Store? Now, I have developed a standalone Python app from PyCharm, and it's using Pyside6 for UI and some major Python libraries. It's a productivity app with a little A.I. features. I used PyInstaller to prepare the app. Currently, I am stuck at the stage of codesign and Apple Review process, because I am manually doing codesign and building the package from command-line. Without using Xcode, things can get messy or miss easily. It would be nice to follow a up-to-date tutorial about how to complete the codesign and Apple Review process for a Python based app. For example, what to do, how to do, what to be careful during the Apple Review process, etc. Thanks!
1
0
98
3w
Reply to Xcode 16.4 Can't Attach to iPhone app for debugging
[quote='854898022, Steve-Olson-1951, /thread/797142?answerId=854898022#854898022, /profile/Steve-Olson-1951'] I built a very basic test app from Xcode templates [/quote] That’s always a great diagnostic test. In this case it confirms that there’s something specific about your main project that’s causing this issue. I have some further suggestions: From the Home screen, remove your main app from the device. And then restart the device. These steps should remove any state leftover from any previous builds of the app. Do a clean build of the app. Do a Product > Run. Does it still reproduce the problem? Presuming it does, run the app from the Home screen and then do a Debug > Attach to Process. Does that work? Also, after the rebuild in step 3, choose Product > Show Build Folder in Finder, then navigate to the Debug-iphoneos folder and, in Terminal, run this command: % codesign -d --entitlements - MyApp.app … [Dict] … [Key] get-task-allow [Value] [Bool] true As this code is Development signed, y
3w
App Bundle issue
We have an app which is hybrid using React Native and Native features. We released our app recently which showed issues related to missing packages/corrupt package but xCode didn't gave any error and we were able to Archive and submit app successfully.
Topic: Code Signing SubTopic: General
1
0
134
3w
Reply to Function types as return types
Yeah, this is definitely bugworthy. Dinisan, I’d appreciate you filing a bug about this, and then posting the bug number here, just for the record. Given these: func stepForward(_ input: Int) -> Int { input + 1 } func stepBackward(_ input: Int) -> Int { input - 1 } then these two fail: func chooseStepFunctionNG1(backward: Bool) -> (Int) -> Int { backward ? stepBackward : stepForward } func chooseStepFunctionNG2(backward: Bool) -> (Int) -> Int { backward ? stepBackward(_:) : stepForward(_:) } but these three succeed: func chooseStepFunctionOK1(backward: Bool) -> (Int) -> Int { if backward { stepBackward } else { stepForward } } func chooseStepFunctionOK2(backward: Bool) -> (Int) -> Int { backward ? (stepBackward as (Int) -> Int) : (stepForward as (Int) -> Int) } func chooseStepFunctionOK3(backward: Bool) -> (Int) -> Int { let result = backward ? stepBackward : stepForward return result } The gating factor seems to be type resolution with function types between the func
Topic: Programming Languages SubTopic: Swift Tags:
3w
Reply to TextKit 2 calls NSTextLayoutFragment's draw method too often
Hello @DTS Engineer, No, this is definitely not expected Since you answer was specifically quoting iOS 18 and iOS 26 beta 4, what about the older iOS versions? If the behavior expected on those versions? I am curious how you confirmed the behavior though. I have confirmed this behavior by returning a custom NSTextLayoutFragment subclass in NSTextLayoutManager's delegate method textLayoutManager(_:textLayoutFragmentFor:in:). The layout fragment subclass then executes a print statement in its draw(at:in:) method override. Do you have a test project that unveils the issue to share? I just created a demo project for you. I've attached it to my feedback report, but I've also uploaded it to GitHub: https://github.com/galijot/NSTextLayoutFragment-PerformanceIssues I've faced slightly different results today on iOS 17 in this demo project, where just the 2nd paragraph's draw(at:in:) would be called on every scroll step, and other paragraphs would be rendered once per its appearance in the viewport. iOS 18 st
Topic: UI Frameworks SubTopic: UIKit Tags:
3w
Reply to Preventing GPS Location Manipulation in iOS Apps
I tried using isSimulatedBySoftware and tested with tools like iMyFone/iTools to simulate the location, but the property still returned false. So I’m not sure if I did something wrong. From what I’ve read https://developer.apple.com/documentation/corelocation/cllocationsourceinformation/issimulatedbysoftware , it seems that isSimulatedBySoftware only works when running and debugging with Xcode.
3w
Reply to CLLocationSourceInformation to prevent GPS spoofing
I tried using isSimulatedBySoftware and tested with tools like iMyFone/iTools to simulate the location, but the property still returned false. So I’m not sure if I did something wrong. From what I’ve read https://developer.apple.com/documentation/corelocation/cllocationsourceinformation/issimulatedbysoftware , it seems that isSimulatedBySoftware only works when running and debugging with Xcode.
3w