Welcome to the Apple Developer Forums

Post your questions, exchange knowledge, and connect with fellow developers and Apple engineers on a variety of software development topics.

For questions about using Apple hardware and services, visit Apple Support Communities

Posts

Sort by:
Post not yet marked as solved
0 Replies
4 Views
Basically, can a third party IDE run inside a Vision Pro device to give programmers the opportunity to live test the API in real world circumstances? Static programming may be safer and all that is allowed for end-users, but there's a jillion use-cases for live programming using the Smalltalk IDE (e.g. Squeak) undreamt of in the current Apple development ecosystem. There's always ways around whatever walled garden Apple sets up, but if Apple allows developers the same affordances for testing their apps in vOS by installing them on at least their own vOS device that they do in iOS, then they can't stop it and instead should embrace it.
Posted
by
Post not yet marked as solved
0 Replies
3 Views
I'm using VisionKit framework for text recognition and detecting rectangles in the image. For that, I'm using VNRecognizeText & VNDetectRectangles features of the VisionKit. In macOS and iOS results, I found slight difference in the boundingBox coordinates of the text and the rectangles detected for the same image. Is this expected? Can we do anything to make the results identical? Also, on macOS, when I'm using same features of VisionKit from python (using pyobjc-framework-Vision package), there also i'm getting slightly different results.
Posted
by
Post not yet marked as solved
0 Replies
5 Views
in iOS 17, I found the function [compareDate:toDate:toUnitGranularity] in NSCalendar always return “same” here is the code : NSString *transformedFromDateStr = "2023-06-16"; NSString *transformedToDateStr = "2023-06-20"; NSDate *transformedFromDate = [NSDate dateWithString:transformedFromDateStr formatString:@"yyyy-MM-dd" timeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]]; NSDate *transformedToDate = [NSDate dateWithString:transformedToDateStr formatString:@"yyyy-MM-dd" timeZone:[NSTimeZone timeZoneForSecondsFromGMT:0]]; NSCalendarUnit uint = NSCalendarUnitDay; NSCalendar *calendar = [NSCalendar currentCalendar]; calendar.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0]; //the result always return true NSComparisonResult result = [calendar compareDate:transformedFromDate toDate:transformedToDate toUnitGranularity:uint]; now before iOS 17 is right, why this happened ?
Posted
by
Post not yet marked as solved
0 Replies
7 Views
I haven’t found any way to have a swift data model contain an enum with different associated values, each different types of models, in order to deal with models that require heterogenous collections. Is this simply not supported? Is it supported but not ever used with SwiftUI binding? Instead I’ve had to create my own sort of enum in the form of a model that contains optionals for every case but this is obviously not ideal.
Posted
by
Post not yet marked as solved
0 Replies
12 Views
I have variants of MacOS installed on external SSD's (using APFS) that I no longer need, mixed with large data sets that I do need. I'd like to wipe the OS on a volume without erasing the whole volume, to avoid the hours-long data copy/archive before wiping the volume to wipe the OS. Is that possible? Moving forward, I can try to segregate data to other volumes, but the production deployment is OS and data on the same volume (again, to avoid copies), so it's not ideal. (I realize it's not a high-traffic use case and unlikely to be supported.) Thanks...
Posted
by
Post not yet marked as solved
0 Replies
53 Views
Hi, I had upload a new build through Transporter 2 days ago (14 Jun 2023 3:22PM), but after waiting for 36+hour it still would not show in the app store connect. I had uploaded version 1.0.0+1 and now trying to upload version 1.0.0+2 of same app. I had checked that it is successfully delivered and appear the option to open App Store Connect, however, it won't show in add build section nor the test flight section. I also tried to reupload the thing but showing need higher build number, which I assume the build 2 is actually successfully uploaded. Did I miss out something or Apple side is having trouble?
Posted
by
Post not yet marked as solved
0 Replies
19 Views
Hi all, We recently got some new weird crash reports on our monitoring systems. These crashes happen in the table view diffable data source on iOS 17. We had these crashes never before on any other operating systems. The error says: Diffable data source detected an item identifier whose hash value changed. The hash value of an identifier cannot change once it has been added to a snapshot. Based on this information, an item's hash value should never change while we expect diffable datasource's apply() function to reload a row if its hash value changed. Full report of bug attached c5671824114048ed87d18f5afe967a97-symbolicated.crash
Posted
by
Post not yet marked as solved
0 Replies
15 Views
I have two related functions to retrieve the weather and then insert it into a "Live Workout Builder"... The first function calls the second to get the weather info after which it inserts the metadata into the builder. public func stopGatheringLocationData() { logger.info("Stopped gathering location data...") Task { let (humidity, temperature) = await getCurrentWeather() if humidity != nil && temperature != nil { logger.log("Current humidity \(humidity!), temperature: \(temperature!)") let metaData = [HKMetadataKeyWeatherHumidity: humidity!, HKMetadataKeyWeatherTemperature: temperature!] logger.log("Current metadata: \(metaData)") do { try await workoutManager.liveBuilder?.addMetadata(metaData) } catch { logger.error("FAILED to add weather metadata to workout -> \(error.localizedDescription)") } } else { logger.error("FAILED to retrieve weather data...") } } locationManager.stopUpdatingLocation() } private func getCurrentWeather() async -> (humidity: HKQuantity?, temperature: HKQuantity?) { // Get the weather for the starting location... let tempUnit = HKUnit.degreeFahrenheit() let humidityUnit = HKUnit.percent() guard let startingLocation else { logger.error("No starting location...") return (nil, nil) } do { let wx = try await wxService.weather(for: startingLocation) let humidity = wx.currentWeather.humidity let temp = wx.currentWeather.temperature.converted(to: .fahrenheit) let curWx = wx.currentWeather let wxAttr = try await wxService.attribution.legalAttributionText await MainActor.run { currentWx = curWx wxServiceAttribution = wxAttr } return (HKQuantity(unit: humidityUnit, doubleValue: humidity), HKQuantity(unit: tempUnit, doubleValue: temp.value)) } catch { logger.error("FAILED to retrieve weather data -> \(error.localizedDescription)") return (nil, nil) } } The two log statements in the first function print out the following information: [Location/Weather] Current humidity 52 %, temperature: 76.226 degF [Location/Weather] Current metadata: ["HKWeatherTemperature": 76.226 degF, "HKWeatherHumidity": 52 %] However, when I look at the workout in the Activity app on my iPhone, the map generated by my app is present but the weather information is missing. The data looks formatted correctly per the limited documentation but for some reason that data is just not showing up. Any help greatly appreciated...
Posted
by
Post not yet marked as solved
0 Replies
18 Views
I am trying to update my app in app store with xcode-beta. The application uses plugins like camera, file_picker, image_picker, video_player. I have allowed them all in the info.plist file. I am able to run the app through Xcode. But when I archive the application, the following errors appear: This is my info.plist file: I have given the necessary permissions but still cannot publish my app. Has anyone encountered this problem before?
Posted
by
Post not yet marked as solved
0 Replies
13 Views
The Run scheme > Options section in Xcode 14.x used to contain the ability to utilize a recorded video from Reality Composer as the replay data for an ARSession. That option is now gone in the Xcode 15.0-beta. Is this intentional?
Posted
by
Post not yet marked as solved
1 Replies
19 Views
Hello , I am facing following error while building my project on xcode cloud using custom ci scripts . Error: ci_post_clone.sh script is failing with following error. Run command: 'cd /Volumes/workspace/repository/ci_scripts && /Volumes/workspace/repository/ci_scripts/ci_post_clone.sh' /Volumes/Task/ci_plan.env: line 2: unexpected EOF while looking for matching `'' /Volumes/Task/ci_plan.env: line 3: syntax error: unexpected end of file Here is my script : ci_post_clone.sh #!/bin/sh touch availCert-dev.p12 touch availCert-qa.p12 touch availCert-stage.p12 touch availCert-prod.p12 ls -la It also shows a warning message for shebang: The ci_post_clone.sh is executable but exited with 1 exit code. Make sure a valid shebang line is specified if the file is a script and that the interpreter specified in the shebang line is supported on Xcode Cloud. I will be appreciative for response on this issue. Thank You
Posted
by
Post not yet marked as solved
0 Replies
14 Views
Anyone testing the new CellularPrivateNetwork.GeofenceItem in a profile? I am not seeing the phone under test switch from the private cellular (or non-public) connection (set as the preferred, when available) to the public cellular connection when I move outside of the set geofence. It has had no affect. The profile is accepted and the parameters are all in scope of the function. Anyone else finding the same, or did they identify additional settings that needed to be applied if you found it to work?
Posted
by
Post not yet marked as solved
0 Replies
19 Views
We have a 7-year old codebase that uses a mix of frameworks including Rx and Firebase through Cocoapods. The compilation works fine up to XCode 14.2 but for some unknown reason the compilation just stuck / hang on XCode 14.3.x and XCode 15. There are several warnings in the codebase but the compiler does not output any error. Which is why we don't know what the exact issue(s) is/are. What's the change in XCode 14.3.x that could be causing this issue? If anyone has an idea on possible fix, willing to try it out.
Posted
by
Post not yet marked as solved
0 Replies
28 Views
I have a strange warning in Xcode associated with ARKit. It isn't a big issue because there is a work around, but I am curious why this is happening and how I can avoid it in the future. I opened up an old AR project in Xcode, and the editor gave a strange error message on the "import ARKit" line saying Cannot load underlying module for 'ARKit' Despite the error message, the code continues to build and run. I've quit & restarted Xcode, rebooted the Mac, and even deleted and and redownloaded Xcode, but the error/warning was still there. Upon some additional testing, I discovered that I only get this message when targeting "iOS 16.2" but not when targeting 16.0, 16.1, 16.3, or 16.4. (I did not try pre-iOS 16) Any idea why my Xcode no longer likes ARKit on iOS 16.2 on my Mac? Development platform: Xcode: Version 14.3.1 (14E300c) macOS: 13.4 (22F66) Mac: Mac Studio 2022 iOS on iPhone 14 Pro Max: 16.5 (20F66) Screenshot:
Posted
by
Post not yet marked as solved
0 Replies
20 Views
The Screen Time API allows developers to block / shield all apps that aren't in the user's "Always Allowed" list in the Screen Time settings (by setting .all() for ShieldSettings.ActivityCategoryPolicy. What I've found, though, is that if an app is blocked, the user can simply go to this Always Allowed list, add that app, and it immediately becomes unblocked. I am trying to either prevent a user from being able to do this or detect when a user does this, as the point of an app like mine (that allows the user to block other apps) is to prevent people from easily accessing those apps that are blocked. Is this possible?
Posted
by
Post not yet marked as solved
0 Replies
19 Views
WWDC 2021 session 10064 introduced UIButtonConfiguration, a new way to configure the visual appearance of buttons, for iOS 15. I've run into a surprising bit of behavior with its image setup: if you give it an image from an asset catalog that's bigger than the button's bounds, the image is sized too big for the button. See the attached screenshot of an example app. The upper play icon is a button set up with setImage:forState:, and it sizes the image down as expected. The lower one is set up with UIButtonConfiguration, and is constrained to the same size (both buttons have a red border), but its image is too big. How do I control the image sizing behavior here? FB12358840 if any engineers look at this and think there could be an API improvement here.
Posted
by
Post not yet marked as solved
0 Replies
15 Views
I'm trying to create a new application in my account with apple developer but it doesn't appear in the list of applications and I can't do it or upload it via XCode. I receive a message that the bundleId already exists, but the bundleId is in my own account.
Posted
by
Post not yet marked as solved
0 Replies
20 Views
Hello, I can not update my Apple Watch to WatchOS 9.6 beta 3 because it's saying that I have to update the iPhone first. The Apple Watch is connected to my iPhone X with iOS 16.6 beta 3. I think that the Apple Watch is set to developer beta for WatchOS 10 (free developer account) and I'm not able to set it back to developer beta for WatchOS 9.6. Does anyone knows a work around for this? Greets Dominic
Posted
by
Post not yet marked as solved
0 Replies
20 Views
I have iOS 17 on iPhone 13 Pro Max I have Mac OS 14 Beta on MacBook Pro I have Xcode Beta installed on MacBook Pro Now I have followed the Instructions to the T to install AirPods Beta but some reason for life of me cannot get it to install on AirPods Pro or AirPod Max
Posted
by
Post not yet marked as solved
0 Replies
23 Views
Hey Guys, I am looking to add VP9 support to an application and am trying to figure out how to access these APIs on iOS. Is it possible to access the VP9 encoders / decoders without using HLS? Looking for some help on this. Thanks, Norris
Posted
by
Learn More about - WWDC22.

Pinned Posts

Categories

See all