Chat about spatial computing

Xcode 15 beta 2 is now available, and includes the visionOS SDK and Reality Composer Pro. Get started creating spatial computing apps, and post your questions and comments.

View posts about visionOS

View posts about Reality Composer Pro

Posts

Sort by:
Post not yet marked as solved
0 Replies
20 Views
https://developer.apple.com/documentation/networkextension/nevpnprotocol/3131931-includeallnetworks The ‘includeAllNetworks’ property was introduced in iOS 14 to allow VPN configuration on iOS to force all network traffic through the VPN tunnel, to prevent any leaks outside the tunnel. Older version of this document said:
 "A Boolean value that indicates whether the system sends all network traffic over the tunnel." Current documentation says: "A Boolean value that indicates whether the system sends most network traffic over the tunnel." There are a few issues with this change: The change in functionality was introduced without any notice or change in developer documentation. The documentation was updated almost a year after the change in functionality. The property should have been deprecated in iOS 16, and the new property should have been introduced. I would suggest a more accurate name - ‘includeMostNetworks’ instead of ‘includeAllNetworks’. After reading the updated documentation, it is not clear what the ‘includeAllNetworks’ actually does, as when it is disabled, the VPN also sends most network traffic over the tunnel. In iOS 16 and above, there is no way to configure a VPN tunnel without iOS bypassing the tunnel and leaking traffic to Apple servers.
Posted
by
Post not yet marked as solved
0 Replies
10 Views
hello! I have the latest developers version of iOS 17 and I am trying to create a custom plan in the fitness app but it will not allow me to click the "create plan" button at the very last page of that process. everything else seems to be working fine but I was able to see people like iJustine and people being able to make it so I'm wondering how they were able to do it. Ive tried restarting my phone, checking for the latest updates but nothing has worked. If you can help me, that would be great!
Posted
by
Post not yet marked as solved
0 Replies
18 Views
Hello everybody, I am a junior on iOS app development with Swift and Xcode IDE. I want to ask about the framework compatible issue. I got a framework called "RFIDBleFramework" which provided by vendor and this framework can help connecting to a RFID device and function well. After imported this framework to my project and build, I got the following error: "Failed to build module 'RFIDBleFramework'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2 (swift-5.7.2-RELEASE)', while this compiler is 'Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK." I want to know whether that means xcode for the same major, minor, and patch version of Swift(in this case, 5.7.2) still not compatible? Or I have some mistakes on import a framework? Sorry for my poor English, if there are some additional information required, I am willing to provide. Thank you for helping. My xcode version: Version 14.2 (14C18)
Posted
by
Post not yet marked as solved
0 Replies
20 Views
Although I was able to get simplefirewall to work, I still have a problem. When I start it for the first time (start button), every target traffic will be captured normally, but when I pause (stop button) and start again (start button), the same target traffic will not be captured. If I want it to work again, I need to stop it from xcode start the program again. What is the reason? Any suggestions?
Posted
by
Post not yet marked as solved
0 Replies
12 Views
hello. on my app i have 3 different subscriptions of 1,3,12 months, i have to test it and something is going wrong. i do all in this way open the app purchase 1 month subscription close the app and under Settings->App Store->sandbox account->manage->subscriptions switch to 3 months subscription after 5 minutes open up the app again and check that the current subscription is the 3 months one. the downgrade it back to the 1 month one and a message that says "you have already purchased this item" will be showed. are this ok? by the way my app is made with unity and their IAP, but the error is coming from IOS UI so should be related to the sandbox test part instead a problem with unity IAP..
Posted
by
Post not yet marked as solved
0 Replies
18 Views
Hi, We are getting a lot of these crashes in our app. Not really pointing to any screen, hard to figure out where the problem is! Please help with some pointers to figure out and solve this issue. Its happening in PROD and affecting mostly iOS 16 users. Complete stacktrace is attached. Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0x92d1c __exceptionPreprocess 1 libobjc.A.dylib 0x14ee4 objc_exception_throw 2 CoreFoundation 0xe5f08 __CFDictionaryCreateGeneric 3 UIFoundation 0x1c090 -[NSCountableTextLocation compare:] 4 UIKitCore 0x208b0 -[_UIModernTextLayoutController comparePosition:toPosition:] 5 UIKitCore 0x2080c -[UITextInputController comparePosition:toPosition:] 6 UIKitCore 0x2044c -[UIFieldEditor comparePosition:toPosition:] 7 UIKitCore 0x203b8 -[UITextField comparePosition:toPosition:] 8 UIKitCore 0x10728f4 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) scheduleChineseTransliteration] 9 UIKitCore 0x10a9b88 -[UITextField _transliterateChinese:] 10 UIKitCore 0xdbd47c +[UIPasteboard _performAsDataOwnerForAction:responder:block:] 11 UIKitCore 0xad1fb8 -[UICalloutBar buttonPressed:] 12 UIKitCore 0xad0bc8 -[UICalloutBarButton fadeAndSendActionWithAuthenticationMessage:] 13 Foundation 0x34b40 __NSFireDelayedPerform 14 CoreFoundation 0xa7268 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION 15 CoreFoundation 0x30b08 __CFRunLoopDoTimer 16 CoreFoundation 0x2b6c0 __CFRunLoopDoTimers 17 CoreFoundation 0xb3b4 __CFRunLoopRun 18 CoreFoundation 0x1e250 CFRunLoopRunSpecific 19 GraphicsServices 0x1988 GSEventRunModal 20 UIKitCore 0x4e5a94 -[UIApplication _run] 21 UIKitCore 0x27efd4 UIApplicationMain 22 EssoProd 0x2b08c main + 15 (AppDelegate.swift:15) 23 ??? 0x1054b44d0 (Missing) stacktrace copy.txt
Posted
by
Post not yet marked as solved
0 Replies
15 Views
it's really a simple demo here, when I use NavigationLink destination, go to ContentView3(),i show a custom alert, when it show up, the navigation back button still work.what can I do, when my alert show , and set the back button clickable to false?(the alert must be a custom one, cannot use system .alert) import SwiftUI struct ContentView: View { @State var isActive : Bool = false var body: some View { NavigationView { NavigationLink( destination: ContentView2(rootIsActive: self.$isActive), isActive: self.$isActive ) { Text("Hello, World!") } .isDetailLink(false) .navigationBarTitle("Root") }.navigationViewStyle(.stack) } } struct ContentView2: View { @Binding var rootIsActive : Bool var body: some View { NavigationLink(destination: ContentView3(shouldPopToRootView: self.$rootIsActive)) { Text("Hello, World #2!") } .isDetailLink(false) .navigationBarTitle("Two") } } struct ContentView3: View { @Binding var shouldPopToRootView : Bool @State var showTip = false var body: some View { ZStack { VStack { Text("Hello, World #3!") Button (action: { self.shouldPopToRootView = false } ) { Text("Pop to root") } Button (action: { self.showTip.toggle() } ) { Text("show tip") } } // when alert show up, the back button still work, what can I do stop it? let the back button clickable to false? if showTip { TipAlert(isPresented: $showTip, tip: "123445", negative: "", positive: "OK") { } } } .navigationBarTitle("Three") } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } } struct TipAlert: View { @Binding var isPresented: Bool let tip: String let negative: String let positive: String let action: (() -> Void) var body: some View { ZStack { Color.gray.edgesIgnoringSafeArea(.all).opacity(0.75) VStack(spacing: 10) { Text(tip) .font(.system(size: kFrontSize_18)) .foregroundColor(.black) HStack (alignment: .center, spacing: 20){ Spacer() if !negative.isEmpty { Button { isPresented.toggle() } label: { Text(negative) .font(.system(size: kFrontSize_15)) .padding(.horizontal, 12) .padding(.vertical, 8) .frame(minWidth: 55) .foregroundColor(.white) .clipShape(RoundedRectangle(cornerRadius: 5)) } } Button { action() isPresented.toggle() } label: { Text(positive) .font(.system(size: kFrontSize_15)) .padding(.horizontal, 12) .padding(.vertical, 8) .frame(minWidth: 55) .foregroundColor(.white) .clipShape(RoundedRectangle(cornerRadius: 5)) } Spacer() } } .padding(10) .background(.white) .frame( width: 340 ) .cornerRadius(5) } } }
Posted
by
Post not yet marked as solved
0 Replies
27 Views
Hi everyone! I've encountered an issue while developing an app using SwiftUI and could use some help or suggestions. It seems that there's a conflict between using PasteButton and a background gesture simultaneously. Xcode: 14.3.1 var body: some View { VStack(spacing: 25) { Button("button") { debugPrint("tap button") } PasteButton(payloadType: String.self, onPaste: { _ in debugPrint("tap PasteButton") }) } .background(.yellow) .onTapGesture { debugPrint("tap background") } } In the code snippet above, when I tap the Button, it displays tap button. However, when I tap the PasteButton, it shows tap background. Strangely, if I long-press for a second and then release, it displays tap PasteButton. From the view hierarchy perspective, Button and PasteButton both appear at the top level. The only peculiar aspect is that upon screen generation, the PasteButton doesn't immediately appear; it gradually emerges with an animation after approximately 0.5 seconds. If anyone has experience or thoughts on handling this PasteButton and background gesture issue in SwiftUI, I'd greatly appreciate your input. Thanks so much!
Posted
by
Post not yet marked as solved
0 Replies
22 Views
Hi all, I'm working on a SwiftUI app (macOS only) that uses a Table to show contents of a directory. Each Table Cell seems to have a padding / gap which I would like to remove. If you look at the picture, I want the red rectangle to fill the whole cell. Does anybody know how to achieve this? Here's my current code for that column: TableColumn("name", value: \.name) { item in HStack { if item.type == .directory { Image(systemName: "folder") .frame(width: 14) } else { Text("") .frame(width: 14) } Text(item.name) Spacer() } .contentShape(Rectangle()) .gesture(TapGesture(count: 2).onEnded { print(item) doubleClick(path: item.path) }).simultaneousGesture(TapGesture().onEnded { self.selectedFileItem = item.id }) .background(.red) .padding(.all, 0) } I want this to be applied to all columns in the table. I only showed one column as a reference. The table style is .tableStyle(.bordered(alternatesRowBackgrounds: true))
Posted
by
Post not yet marked as solved
0 Replies
24 Views
Does AVP simulator have a way to simulate hand events on safari such as click, double click, etc.? The Problem Whilst using the AVP Simulator with a Trackpad on my Macbook Pro, Safari on VisionOS produces trackpad events such as as touchstart, touchmove, mouseout, etc on the window object. To ensure things work well with hands, we need to know what kind of events will be generated on the window object when hands is used as an input. Can anyone recommend how this can be tested?
Posted
by
Post not yet marked as solved
0 Replies
34 Views
In the Required Reason API doc, the UserDefaults section defines NSPrivacyAccessedAPITypeReasons CA92.1: Declare this reason to access user defaults to read and write information that is only accessible to the app itself. This reason does not permit reading information that was written by other apps or the system, or writing information that can be accessed by other apps. If I store a user generated string in UserDefaults, later on fetch it within the same app, send it to my backend component, and lastly my backend component share the string with 3rd party developers, do I still fall into the CA92.1 category? In other words, do I need to submit an approval request for this kind of usage? My understanding is this usage still falls into CA92.1 because it does not access device signals for fingerprinting purposes, but I am not sure. Please advice. Thanks!
Posted
by
Post not yet marked as solved
0 Replies
25 Views
When asking for ScreenTime permission from users, were are seeing cases where guard let error = error as? FamilyControlsError else { print(String(describing: error) print("\n") print(error.localizedDescription) return } prints Error Domain=FamilyControls.FamilyControlsError Code=5 "(null)" The operation couldn’t be completed. (FamilyControls.FamilyControlsError error 5.) We've also seen this with error code 4 and 7. Why are these failing to cast to FamilyControlsError?
Posted
by
Post not yet marked as solved
0 Replies
37 Views
Under the latest Venture, the SSHD refuses ssh connections or never runs before a user logins in. Only after a user logins in will sshd accept ssh connections. How do we fix this problem? It is critical bug for us running a remote headless Mac. Both the server and the client are running Mac OS X 13.5
Posted
by
Post not yet marked as solved
0 Replies
26 Views
The application I am creating is using CNContact() and I am trying to attach an Instagram profile. There currently is no CNSocialProfileService for Instagram. Does anyone know of a way to do so? Currently I have: let socialProfile = CNLabeledValue(label: social.service, value: CNSocialProfile(urlString: "https://www.instagram.com/" + social.username, username: social.username, userIdentifier: nil, service: "Instagram")) That works but when it saves to contacts it creates a Custom Service and then capitalizes the service name and the username.
Posted
by
Post not yet marked as solved
0 Replies
25 Views
has anyone gotten their 3d Models to render in seperate windows, i tried following the code in the video for creating a seperate window group, but i get a ton of obsecure errors, i was able to get it to render in my 2d windows, but when i try making a seperate window group i get errors
Posted
by
Post not yet marked as solved
1 Replies
38 Views
TLDR: WD External Hard Drive shows in finder and in NTFS/WD software but won't mount when pressed. I have two WD External Hard Drives, a 1 and 4 TB Drive. I am a graphic designer and like keeping photography, videos and assets or old projects on other drives so they don't take up space on my computer. A couple months ago one of my 4 TB Drive wouldn't mount to my computer, and after messing with the WD software that I had installed on my computer for a few hours I gave up and decided to just start saving stuff onto my computer. While working in Photoshop I got the error that my Scratch Disks were full and that I needed to free up some space, so I tried off loading some undergrad work onto my 1TB Drive and had the same issue. I tried using different cords, reinstalling software, and troubleshooting to no avail. I live pretty far from the nearest Genius Bar so I thought I'd try posting here before scheduling a appointment. Reminder that I can physically click the "Mount" button, but it gives me loading animation for a second then reverts back to the same "Mount" button as before and the drive doesn't show on my desktop or in my Finder.
Posted
by
Learn More about - WWDC22.

Pinned Posts

Categories

See all