Post not yet marked as solved
I have internet inside but 5G outside. The Apple TV device responds to INTERNET only, not 56. So why not have an autodetect?
Post not yet marked as solved
I want to add this button with some space in a tab bar I don't know what this button is called and how to add it in Vision Pro app
Post not yet marked as solved
I have a package stored on iCloud Drive and want to list it as a dependency in another package. This worked fine when the package was stored on the Mac hard drive, but moving it to iCloud seems to cause a problem.
dependencies: [ .package(url: "file:///Users/bill/Library/Mobile Documents/com~apple~CloudDocs/Projects/Matrix", from: "0.0.1") ],
This results in an Xcode error message:
x-xcode-log://812C74F5-B7CA-4E15-A87C-E6C9586B0926 /Users/bill/Library/Mobile%20Documents/com~apple~CloudDocs/Projects/Matrix: The source control operation failed because the specified URL cannot be used. Make sure the URL is valid and try again.
Can anyone advise how to make the URL valid, or is storing the package on iCloud Drive not yet possible?
Post not yet marked as solved
I referred to the code provided in the article Adding and Editing Persistent Data in Your App in the SwiftData documentation and tested the "/PreviewHelper" approach. I found that if a model class contains a property of a struct, and that struct includes a Set property or an Array property, the Preview would throw an error. Here is an example of the model:
@Model
class Book {
// ...
var someStruct: SomeStruct
// ...
}
struct SomeStruct: Codable {
// ...
var someCollection: Set<Int>
// ...
}
In actuality, this model can run and store data without any issues, but it fails to run in the Preview. Is there a problem with the implementation of this Preview or is there any other reason? Are there better ways to perform Preview in SwiftData?
Post not yet marked as solved
Other than the big name HLS, anything else?
Post not yet marked as solved
Before Apple Silicon was a thing, I published a separate version of my iOS app for macOS. I'm no longer able to maintain this version, so I would like users to be able to use the iPadOS version of my app on Apple Silicon. Unfortunately I can't make it available through Prices & Availablity, because it says:
"Once your macOS version has been approved, your iOS app will no longer be available to Mac users." (translated from the German user interface)
How do I remove the previous version and publish the iPadOS version to the mac app store?
Post not yet marked as solved
I'm encountering a problem on some Iphone models with photo gallery authorization.
On some devices, the authorization only displays "add photos" and "None". However, for many devices, most of them have "Full access", "Limited access" and "None" authorizations, which means that you can't access the gallery.
Example of device affected by the bug: Iphone 11 IOS 17.3.
I tested on an emulator with the same version, but it works with all 3 authorizations.
In Info.plist , I have the following information:
NSCameraUsageDescription
The application wants to have access to your camera to help you add photos to your worksites.
NSPhotoLibraryAddUsageDescription
The application wants access to your photos to help you add photos to your building sites.
NSPhotoLibraryUsageDescription
The application wants access to your photos to help you add photos to your worksites.
Post not yet marked as solved
hello. I want to set the Products Path to a visible location of my choice, rather than the Derived Data path that Xcode sets by default (a.k.a ~/Library/Developer/Xcode/DerivedData).
I specified the 'Build Products Path' in each project target, but Xcode ignores this and creates the Product in the Derived Data path.
I found that if I specify Workspace Settings - Advanced - Legacy, it will create a Product in the specified 'Build Products Path'. This works very well for me.
But since the Workspace Settings - Advanced - Legacy setting is a per-user setting, I'll have to ask other colleagues to do this as well.
I want people who share my project to have the same Product path without any additional settings. (Of course, it is a project-relative path)
Workspace Settings - Advanced - Legacy Is there a way to save and share the settings as shared rather than per-user?
Post not yet marked as solved
I think it's kind of essential to have eye tracking data available to apps in VR mode (with the user's permission).
The biggest problem I've observed is that Unity isn't able to implement dynamic foveated rendering without eye tracking data.
Without the eye tracking it's only possible to have fixed foveated rendering. That gives a performance boost to rendering, but it also makes it so it gets blurry for the user if they look to the side without turning their head.
I understand why it's a privacy issue to have apps tracking where the user is looking in the real world, but video passthrough is disabled in VR -- so it should be ok to enable eye tracking in VR (with the user's permission).
Unity already supports dynamic foveated rendering (with eye tracking) for other VR headsets, and Vision Pro has the best eye tracking -- so Vision Pro should definitely have the best dynamic foveated rendering in VR.
Post not yet marked as solved
Is there a way to access the Core NFC Framework from within a watchOS app?
Post not yet marked as solved
extension Entity {
func addPanoramicImage(for media: WRMedia) {
let subscription=TextureResource.loadAsync(named:"image_20240425_201630").sink(
receiveCompletion: { switch $0 {
case .finished: break
case .failure(let error): assertionFailure("(error)")
}
},
receiveValue: { [weak self] texture in
guard let self = self else { return }
var material = UnlitMaterial()
material.color = .init(texture: .init(texture))
self.components.set(ModelComponent(
mesh: .generateSphere(radius: 1E3),
materials: [material] ))
self.scale *= .init(x: -1, y: 1, z: 1)
self.transform.translation += SIMD3(0.0, -1, 0.0) } ) components.set(Entity.WRSubscribeComponent(subscription: subscription))
}
problem:
case .failure(let error): assertionFailure("(error)")
Thread 1: Fatal error: Error Domain=MTKTextureLoaderErrorDomain Code=0 "Image decoding failed" UserInfo={NSLocalizedDescription=Image decoding failed, MTKTextureLoaderErrorKey=Image decoding failed}
Post not yet marked as solved
Is it possible to get access to the class SRWristDetection of the SensorKit Framework in a watchOS app? As part of a project, we need to be able to log in to a service and as soon as the watch is taken off, the user must be logged out.
Post not yet marked as solved
As part of a university project, we need to be able to display a website on an Apple Watch and log in to a service. Is it possible to get access to the WebKit framework in a watchOS app? We also need to be able to execute JavaScripts in the browser so that the login process works.
Post not yet marked as solved
When the user finish the Product.purchase in ios, I get an transaction id in the client side. But how can I use the App Store Server API to confirm this transaction whether it is in success status or not in server side?
thanks
Post not yet marked as solved
I need user installed app information like first install time (purchase to install)
last time use "Bundle.main.appStoreReceiptURL" to request Receipt was successful
but when i Reinstall the app by Xcode has ERROR:"Error reading receipt data: Error Domain=NSCocoaErrorDomain Code=260"
what wrong with ERROR?
Post not yet marked as solved
xtension Entity {
func addPanoramicImage(for media: WRMedia) {
let subscription = TextureResource.loadAsync(named:"image_20240425_201630").sink(
receiveCompletion: {
switch $0 {
case .finished: break
case .failure(let error): assertionFailure("(error)")
}
},
receiveValue: { [weak self] texture in
guard let self = self else { return }
var material = UnlitMaterial()
material.color = .init(texture: .init(texture))
self.components.set(ModelComponent(
mesh: .generateSphere(radius: 1E3),
materials: [material]
))
self.scale *= .init(x: -1, y: 1, z: 1)
self.transform.translation += SIMD3(0.0, -1, 0.0)
}
)
components.set(Entity.WRSubscribeComponent(subscription: subscription))
}
func updateRotation(for media: WRMedia) {
let angle = Angle.degrees( 0.0)
let rotation = simd_quatf(angle: Float(angle.radians), axis: SIMD3<Float>(0, 0.0, 0))
self.transform.rotation = rotation
}
struct WRSubscribeComponent: Component {
var subscription: AnyCancellable
}
}
case .failure(let error): assertionFailure("(error)")
Thread 1: Fatal error: Error Domain=MTKTextureLoaderErrorDomain Code=0 "Image decoding failed" UserInfo={NSLocalizedDescription=Image decoding failed, MTKTextureLoaderErrorKey=Image decoding failed}
Post not yet marked as solved
Suppose I received a Privacy Manifest from Apple in the process of reviewing the app.
I used "UserDefaults" and "File timestamp APIs" among the APIs, and I didn't add Privacymanifest. And there is nothing in the mail other than "UserDefaults" and "File timestamp APIs".
And so is the code.
If I remove all the code related to "UserDefaults" and "File timestamp APIs" from the library in this situation, is it okay not to add "Privacy Manifest" from the library as well??
The library can be FrameWork or Static Library.
Post not yet marked as solved
Looking for info on the best way to convert a MTLTexture to SKTexture.
I am migrating a project where a SpriteKit scene is rendered in an SKView - and relies heavily on SKView.texture(from: SKNode) API
I am trying to migrate to an SKRenderer based SpriteKit scene - and wondering the best way to grab an SKTexture from an SKNode when rendered in a MTKView instead of SKView?
Post not yet marked as solved
Hi there,
Since Apple keeps force updating macOS and Xcode versions, and iOS versions, whats the point in keeping support for Storyboards?
SwiftUI is the new standard.
Storyboards can be used in older versions of mac and Xcode.
I would like to see Apple focusing on performance more than features.
Thanks
Post not yet marked as solved
Hi,
I have had this issue since I started working again in iOS this year with Xcode 15.
What happened to the SwiftUI Previews?
My problem is that they are stuck forever in the Loading screen "Preparing iPhone Simulator for Previews".
I now test the code on the actual Simulator and waiting for Xcode 16 to fix this.
The characteristics of my project are:
Using Swift Package Manager (10+ dependencies)
Using Unit Tests and Test Plans.
Using macOS Ventura (reverted from Sonoma because it's even worse)
Macbook Air M1 - 16GB of RAM.
I have tried everything including:
Erasing derived data.
Restarting.
Reinstalling the whole computer.
Reverting Sonoma to Ventura.
Reverting Xcode 15.2 to 15.1 and 15.0.1.
Using Previews_Provider and #Previews {}
Using completely empty projects to test previews.
Please help.
Thanks