Search results for

file uri scheme

78,694 results found

Post

Replies

Boosts

Views

Activity

Reply to Add a C++ function that can be used by multiple XCTest files in Xcode
This works. There is a question at the end. I added a Utilities.hpp file in my XCTest folder, TestsOrangeSpider (separate from my project code.) #ifndef Utilities_hpp #define Utilities_hpp #import void testGLMVEC3(const glm::vec3& actual, const glm::vec3& expected); #endif In the same folder I have a Utilities.cpp file. #include Utilities.cpp void testGLMVEC3(const glm::vec3& actual, const glm::vec3& expected) { XCTAssertEqualWithAccuracy(actual.x, expected.x, 0.00001f);... } In one of my test files I import the .cpp file. In all other test files I import the .hpp file. Importing the .cpp file in all test files doesn't work. Importing the .hpp file in all test files doesn't work. It has to be one file imports the .cpp and all other files import the .hpp. Why is there this odd combination requirement? Thanks : )
2w
Add a C++ function that can be used by multiple XCTest files in Xcode
I'm testing a c++ project. I would like multiple XCTest files to be able to use this function: void testGLMVEC3(const glm::vec3& actual, const glm::vec3& expected) { XCTAssertEqualWithAccuracy(actual.x, expected.x, 0.00001f); XCTAssertEqualWithAccuracy(actual.y, expected.y, 0.00001f); XCTAssertEqualWithAccuracy(actual.z, expected.z, 0.00001f); } I'm not sure how to do this. I don't think I should put this function in my project code. I'd like it to be in my XCTest files. (I wouldn't know how to put it in my project code anyhow.) Here's how I'd expect to use it: #import #import ../OrangeSpider/SpLeftLeg.hpp ... @interface SpLeftLegTest : XCTestCase @end @implementation SpLeftLegTest - (void)setUp {} - (void)tearDown {} - (void)testGetPoints{ // Set up float topLength = 10.0f; ... // Actual SpLeftLeg SpLeftLeg spiderLeg{spLegAnatomy, spLegAngles, minExtensionAngles, maxExtensionAngles}; // Test points testGLMVEC3(spiderLeg.getConnectionPoint(), glm::vec3(0.0f, 0.0f, 0.0f)); } - (void)
1
0
91
2w
Reply to Matter Media Playback Cluster
I did not recieve a bug number. Could you please assist and share the correct page I should access to fill in the bug ? Sorry, I should have included my usual link to Quinn's post on bug filing. That points you to the right page but also includes a good overview of the bug process. But, yes: Hi David you can use the Feedback Assistant app on macOS, or https://feedbackassistant.apple.com ...either of those work. __ Kevin Elliott DTS Engineer, CoreOS/Hardware
2w
Reply to Safari block the access to some port of an IP on the whole system
I'm self-hosting a web project called mempool (https://github.com/Retropex/mempool). This project is entirely self-hosted on my own infrastructure, so I have advanced control to be sure it's just not an anti-DDoS feature that makes the bug happen. If you haven't already, please do the following: You can do the testing below on any machine you can reproduce the issue on. I'd probably use a Mac, but you can use iOS if that's simpler. However, with whatever machine you’re testing with, try and use the most minimal system possible. Ideally, that's a device that's just been reset, but using a newly created account works reasonably well on macOS as long as there isn't too much 3rd party software running system-wide. The key here is that having less on the machine minimizes the risk of private data leaking and extraneous log noise. I'd recommend installing the mDNSResponder and Network Diagnostics on the device. Those might not be necessary, but both of those increase the level of network diagnostic data, and instal
2w
Reply to Xcode Signing Fails: Provisioning Profile "doesn't match" com.apple.developer.driverkit.userclient-access entitlement
are you developing for macOS or iPadOS, or both? com.apple.developer.driverkit.communicates-with-drivers is for iPadOS. It won't do any harm to set this to true in a macOS app, but you don't need it. When you say your driver fails at runtime, there are various ways this can occur: it fails to load (perhaps due to an entitlement issue), your code fails to find the driver your code finds the driver, but fails to open a user client for it It sounds like you're failing at stage 2. Look in the system log for messages related to your driver's bundle ID. I like to plug in the device, then run log collect --last 1m and peruse the resulting log file in the Console app. Use IORegistryExplorer (part of the additional tools for Xcode) to look for your driver in the IORegistry. If it isn't there, IOServiceGetMatchingService won't find it. IOServiceGetMatchingService takes a matching dictionary as a parameter, but you said you are calling IOServiceGetMatchingService(DriverKitAcxxx) Did you mean IOServiceNameMatchi
Topic: App & System Services SubTopic: Drivers Tags:
2w
Reply to ManipulationComponent in both parent and child entities
hi @matthewyang , This sounds like a bug report to me, if you wouldn't mind filing that at https://feedbackassistant.apple.com and pasting the FB number here so I can follow up with the right folks, that'd be great! In the meantime, this does work for me, what it will do is allow you to drag both the child and the parent (together) if you drag the parent. If you drag the child, only the child will move. Where child is green box and parent is red box. RealityView { content in var manipulationComponent = ManipulationComponent() manipulationComponent.releaseBehavior = .stay manipulationComponent.dynamics.inertia = .low let cube = Entity(components: ModelComponent(mesh: .generateBox(size: 0.1), materials: [SimpleMaterial(color: .red, isMetallic: true)])) cube.generateCollisionShapes(recursive: true) cube.components.set([HoverEffectComponent(), InputTargetComponent(), manipulationComponent ]) let cube2 = Entity(components: ModelComponent(mesh: .generateBox(size: 0.1), materials: [SimpleMaterial(color: .gr
Topic: Spatial Computing SubTopic: General Tags:
2w
NSLocationTemporaryUsageDescriptionDictionary crashes Xcode 13
I just submitted a feedback for this (FB9662125) but in the spirit of “share and enjoy”… The cool new Generate Info.plist File feature in Xcode 13 crashes if you try to put an NSLocationTemporaryUsageDescriptionDictionary in your Info.plist file. Here’s a simple repro scenario: Create a minimal iOS app (no Core Data, no tests) Go to target settings → Info tab → Custom iOS Target Properties Click the (+) button on any row to begin inserting a new row Select Privacy - Location Temporary Usage Description Dictionary Click somewhere else or press Return to commit the selection Xcode crashes immediately More generally, it seems that Xcode crashes any time it tries to regenerate your Info.plist file if it contains an NSLocationTemporaryUsageDescriptionDictionary, even if (for example) you manually pasted that dictionary into the file earlier. In that case, merely tapping the (+) button in step 3 above is enough to crash it.
16
0
4.7k
2w
Reply to Multipeer Connectivity connection is flaky on iOS 26
While updating our test devices to iOS 26, we noticed that the connection between devices is flaky. Often when connecting to a peer from a device running iOS 26, we can observe the invite coming through and when accepting said invite, both ends go to .connecting state and a while later go back to .notConnected within the peer(_ peerID: MCPeerID, didChange state: MCSessionState) function. This happens regularly, and retrying the invitation process several times usually resolves it. Have you filed a bug on this, and if so, what is the bug number? Does anyone have any information or guidance on how to resolve this issue? Well, unfortunately, my (and Quinn's) longstanding advice has been to move to a new API and stop using MultipeerConnectivity. Quinn actually has an extended forum post describing how to move to the Network framework. I'd also suggest taking a look at the Building a custom peer-to-peer protocol sample, which uses the Network framework to implement something very similar to what Multipeer
2w
Reply to codesign stubbornly failing
If you run codesign on your executable, it tells you exactly what the problem is: /tmp $ codesign -vv -R=anchor apple generic renderrob.app renderrob.app: unsealed contents present in the root directory of an embedded framework In subcomponent: /private/tmp/renderrob.app/Contents/Frameworks/Python.framework If you explore that framework using Terminal, you'll see what it's complaining about: /tmp $ find /private/tmp/renderrob.app/Contents/Frameworks/Python.framework ... /private/tmp/renderrob.app/Contents/Frameworks/Python.framework/Versions/._Current /private/tmp/renderrob.app/Contents/Frameworks/Python.framework/._Resources /private/tmp/renderrob.app/Contents/Frameworks/Python.framework/._Python Remove those files and try again: /tmp $ rm /private/tmp/renderrob.app/Contents/Frameworks/Python.framework/Versions/._Current /tmp $ rm /private/tmp/renderrob.app/Contents/Frameworks/Python.framework/._Resources /tmp $ rm /private/tmp/renderrob.app/Contents/Frameworks/Python.framework/._Python /tmp $ codes
2w
Unabe to use writeHEIFRepresentation - failed to add image to the PhotoCompressionSession.
I'm getting an error writing a ciImage as a heif image: // Create CIImage directly from pixel buffer let ciImage = CIImage(cvPixelBuffer: pixelBuffer, options: [CIImageOption.properties: combinedMetadata]) // Write HEIC synchronously do { try ciContext.writeHEIFRepresentation(of: ciImage, to: url, format: .RGBA8, colorSpace: colorSpace) The error I'm getting is: Error Domain=CINonLocalizedDescriptionKey Code=3 (null) UserInfo={CINonLocalizedDescriptionKey=failed to write HEIC data to file., NSUnderlyingError=0x11b1a1ec0 {Error Domain=CINonLocalizedDescriptionKey Code=10 (null) UserInfo={CINonLocalizedDescriptionKey=failed to add image to the PhotoCompressionSession.}}} Both try ciContext.writeJPEGRepresentation(of: copiedCIImage, to: url, colorSpace: colorSpace, options: options) and try ciContext.writePNGRepresentation(of: copiedCIImage, to: url, format: .RGBA8, colorSpace: colorSpace) work. I also verified that the code works with iOS 18. Is there something new we need to do for Heif images? Thanks
7
0
580
2w
Reply to Building macOS apps with Xcode 26 on macOS 26 VM
Hi @RickMaddy, just tried the update method yesterday and now I can confirm it works as described. Installed macOS 14.6.1 to a fresh VM, then upgraded to Tahoe via System Settings. As one would expect, the UDID remained unchanged after the upgrade, which seems essential for the developer signature to work correctly. My developer-signed app built on the host machine starts without issues in the guest running macOS 16 (after adding the UDID in the Developer portal). Please see if it works for you—still a bit cumbersome, but looks much more convenient compared to the dual-boot scheme.
2w
iOS 26 BETA 4 Safari Web Extension disappearing right after install, "extension" is no longer available.
our company created a web safari extension. before iOS 26 (beta) release we would archive our extension and install to our devices no problem. since iOS 26 (beta) (we also tried in beta 4 23A5297m) the extension would archive perfectly but when installing the extension would just not run. its found in settings under safari extension, but when enabled the extension and open safari it will show error message Ext is no longer available. to rule out all code issues, we built a new project from scratch with a new bundle id, tried to archive with no problem, but when installed in an iphone 16 with iOS 26 BETA (23A5297m) same error ocurs it installs but when opening safari it will give an error message saying extension is no longer available. attached in the google drive link is a zip file of the new project, a zip file with a succesfull build of the ipa file with enterprise distribute, a video of the entire proccess and the error that the iphone gives. also attached a log file fr
10
0
1.5k
2w
Source view disappearing when interrupting a zoom navigation transition
When I use the .zoom transition in a navigation stack, I get a glitch when interrupting the animation by swiping back before it completes. When doing this, the source view disappears. I can still tap it to trigger the navigation again, but its not visible on screen. This seems to be a regression in iOS 26, as it works as expected when testing on iOS 18. Has someone else seen this issue and found a workaround? Is it possible to disable interrupting the transition? Filed a feedback on the issue FB19601591 Screen recording: https://share.icloud.com/photos/04cio3fEcbR6u64PAgxuS2CLQ Example code @State var showDetail = false @Namespace var namespace var body: some View { NavigationStack { ScrollView { showDetailButton } .navigationTitle(Title) .navigationBarTitleDisplayMode(.inline) .navigationDestination(isPresented: $showDetail) { Text(Detail) .navigationTransition(.zoom(sourceID: zoom, in: namespace)) } } } var showDetailButton: some View { Button { showDetail = true } label: { Text(Show detail) .paddi
Topic: UI Frameworks SubTopic: SwiftUI
11
0
601
2w