Search results for

xcode github

92,021 results found

Post

Replies

Boosts

Views

Activity

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
iPhone app Liquid Glass icon on iPad not respecting icon display mode
Hi, I'm updating my iPhone app (iPhone only) to be ready with iOS 26. I'm building my app using Xcode 26.0 beta 6 (17A5305f) and testing it on an iPad running iPadOS 26 (23A5326a). I found an issue with my new app icon updated using Icon Composer and I was able to find the issue. An iPhone only app running on iPadOS 26 doesn't use the provided app icon. It always displays the standard light icon. I just added iPad in Supported Destinations and the app icon now respect light/dark/translucent/tinted modes on the Home Screen. I submitted feedback FB19768667
1
0
140
3w
Reply to Function types as return types
It works in iOS playground, but not in MacOS playground, either Xcode 16.4 or 26.0ß6. So, that's definitely a bug you should report. You got the answer in your SO post: https://forums.swift.org/t/why-is-there-a-type-of-expression-is-ambiguous-without-a-type-annotation-error-when-using-a-ternary-operator-on-inferred-function-types-in-swift/77306/2 As said, this works: func chooseStepFunction(backward: Bool) -> (Int) -> Int { let res = oneStepBackward ? stepBackward : oneStepForward return res }
Topic: Programming Languages SubTopic: Swift Tags:
3w
Reply to Function types as return types
Thx for your reply . I am using Xcode version 16.4 and running in a playground. Just by typing these functions in the IDE (without any calls to the functions) I get the error message in the Code Review Pane. It is a blank macOS playground running on a Mac Studio M1. The code is from Apple's Swift Programming Language (5.7). Section Functions - Function types as return types.
Topic: Programming Languages SubTopic: Swift Tags:
3w
Reply to Issue with UIActivityViewController Not Showing X (formerly Twitter) and Facebook Icons When Sharing Images on iOS 26 Beta
I also noticed that when sharing photos or videos directly from Apple’s built-in apps like Photos, the icons for X and Facebook appear properly. So it seems the issue is limited to third-party apps using UIActivityViewController. What’s especially confusing is that my implementation of UIActivityViewController follows the standard pattern — it’s almost textbook code. I haven’t excluded X or Facebook explicitly, and as far as I know, there haven’t been any changes to UIActivityViewController in iOS 26 that would explain this behavior. It’s definitely puzzling.
Topic: UI Frameworks SubTopic: UIKit Tags:
3w
Issue with beta Declared Age Range
I'm trying to work with the beta version of the Declared Age Range framework based on an article's tutorial but am getting the following error: [C:1-3] Error received: Invalidated by remote connection. and AgeRangeService.Error.notAvailable is being thrown on the call to requestAgeRange. I'm using Xcode 26 beta 5 and my simulator is running the 26.0 beta. The iCloud account that I have signed into the simulator has a DOB set as well. This is my full ContentView where I'm trying to accomplish this. struct ContentView: View { @Environment(.requestAgeRange) var requestAgeRange @State var advancedFeaturesEnabled = false var body: some View { VStack { Button(Advanced Features) {} .disabled(!advancedFeaturesEnabled) } .task { await requestAgeRangeHelper() } } func requestAgeRangeHelper() async { do { let ageRangeResponse = try await requestAgeRange(ageGates: 16) switch ageRangeResponse { case let .sharing(range): if let lowerBound = range.lowerBound, lowerBound >= 16 { advancedFeaturesEnabled = true } c
1
0
100
Aug ’25
App Attest Error
Hi, I'm running into an issue with App Attest in my iOS app, and I'm hoping you can help me troubleshoot. I've registered my app in App Check for both App Attest and Device Check, and I've double-checked that my bundle ID is correct. I've also enabled App Attest in Xcode capabilities and am testing on a physical device. However, when I run the app, I'm getting the following error in the console: Error getting App Check token; using placeholder token instead. Error: App attestation failed. HTTP status code: 403 message: App attestation failed. I've tried a few things, but I'm still stuck. Any suggestions on what might be causing this or how to resolve it would be greatly appreciated! Thanks in advance
1
0
53
3w
Reply to App rejected by App Store Connect with ITMS-90714: Invalid binary
Hi Ed, FB19732875 Great! This information is en route back to you in Feedback Assistant, but I'm sharing here for everyone's benefit in the future. Your app is getting this message because it happens to have a malformed Objective-C protocol list. One way this can happen is if older compliers are involved in the build of your app, including the builds done for any libraries that you depend on. Please make sure that your app is built with a recent version of Xcode. You may need to contact support for any vendor libraries you depend on to make sure you have a version of that library that has also been compiled with a recent Xcode version. The other way this can happen is through build post-processing that obfuscates your binary. If you have anything in builds scripts or other steps in your build process that do this, then you should remove those steps, and verify if an upload to the App Store without that post-processing is accepted as a way to check if that is the source of this issue for you.
3w
App rejected by App Store Connect with ITMS-90714: Invalid binary
Hi, I am on Mac OS Sequoia 15.5, XCode 16.4 (16F6) Uploading via XCode or Transporter is successful, then binary gets refused by App Store Connect. I have tried: Removing all Other Linker Flags except -ld64 as the app cannot be generated without ld64. My original Other Linker Flags: -all_load -w -Xlinker -no_objc_category_merging -ld64 2. Running xcrun dyld_info -objc Payload/YourApp.app/YourApp | grep (null) return nothing. Please, advise what else can I do.
3
0
115
3w
Reply to SwiftData Fatal error: Editors must register their identifiers before invoking operations on this store
Do you have a full symbolicated crash report to share? You can include crash reports directly in your post using the forums attachment feature. For any random crash related to SwiftData / Core Data, I'd suggest that you add com.apple.CoreData.ConcurrencyDebug 1 as a launch argument of the app to check if there is any violation, as discussed here. Also, I guess ConsumptionSession is Sendable? Otherwise, Xcode will give you an error if you compile with Swift 6. If you haven't used Swift 6, I'd suggest that you give it a try to see if that unveils any race condition. Best, —— Ziqiao Chen  Worldwide Developer Relations.
3w
Reply to Upload failed Validation Issue WKApplication or WKWatchKitApp is required
It was generated by XCode with the settings turned to YES in the Build Settings no third party tool or otherwise. Thanks for your clarification. I don't have an Apple Connect account to really go through the whole process of uploading an app to App Store, but I did try the following: Creating an iOS app using Xcode template. Adding a watchOS app target by following the steps. Archiving the app, and distributing it for releasing testing. The whole process went through pretty well. I also tried validating the app. The process also went well, until it hit the App Record Creation Error, which was expected because I didn't have an app record. To move forward in this situation, I suggest that you start an Xcode template project, as described above, and share the details of your steps with screenshots, and also the project that reproduces the issue. That way, folks may be able to figure out the issue more easily. Alternatively, you can consider contacting Apple's DTS, if you can't share on
Topic: Code Signing SubTopic: General Tags:
3w
Reply to iOS 26, bottom UIToolbar not extending behind safe area to screen edge
These attached screenshots (from the simple Xcode workspace we submitted with FB19664903) show this issue, the first screenshot is from iOS 26 beta 7 (white gap below the red bottom toolbar), the second screenshot is the same code running on iOS 18.6 (red toolbar extends behind safe area). We have an app that uses many of these bottom toolbars and I'd prefer not to have to refactor....I'm surprised this hasn't received more me toos
Topic: UI Frameworks SubTopic: UIKit Tags:
3w
Reply to Function types as return types
Which Xcode version do you test with ? Do you test in playground or in app, or SwiftUI App ? I tested in Xcode 16.4, with the following call: print(chooseStepFunction(backward: true) (10)) And got 9 as expected. I tested also in Xcode 26 ß6, works as expected. How do you use chooseStepFunction? please give more context.
Topic: Programming Languages SubTopic: Swift Tags:
3w
Reply to Entitlement granted to Bundle does not appear in the Capabilities list
Sorry guys, it didn't work. I followed all the recommendations from the Development and Technical Support team. I created new provisioning profiles and imported/downloaded them into Xcode using manual signing, but there are no Critical Alerts in Capabilities list yet. So they gave up and asked me to reply in this thread, saying they can't help me with Xcode. When the entitlement was approved, I received this instructions: https://developer.apple.com/help/account/reference/provisioning-with-managed-capabilities . There it says to enable the Automatic signing in Xcode target and all would be solved, but it's not working. I suspect there is something wrong with my entitlement, or there is a bug in Xcode or in Certificates, Identifiers & Profiles web page. What can I do next? Thanks, The VIAWEB Developer Team.
Topic: Code Signing SubTopic: Entitlements Tags:
3w