missing package product

42,924 results found

Post

Replies

Boosts

Views

Activity

Why is Service Data not allowed on BLE service advertisements?
It currently isn't possible to advertise any form of service data with my UUID over BLE using CBAdvertisementDataServiceDataKey. Android lets you do this, which is ideal when you want to advertise the CBL2CAPPSM of an L2CAP service (the PSM is only a couple of bytes). For some reason, iOS doesn't allow this: Although advertising packets in general can hold a variety of information about the peripheral device, you may advertise only your device’s local name and the UUIDs of any services you want to advertise. That is, when you create your advertising dictionary, you may specify only the following two keys: CBAdvertisementDataLocalNameKey and CBAdvertisementDataServiceUUIDsKey. You receive an error if you specify any other keys. Is there really a good reason for this, or am I missing something? Is the only workaround to expose a GATT characteristic for the L2CAP PSM? That feels like horrendous amounts of overkill to advertise what is really just a UInt16.
1
0
1k
Feb ’21
Reply to MKMapview overlay renderding performance issue on iOS16
Could you post a link to a small, buildable test project with the code you shared above? There seems to be other parts missing, like the original code that adds and removes overlays, and the implementation here of reRenderAllGeometries, so I'm not sure I have the complete picture yet. A buildable project would let me run and also profile this to understand it better. If you're not familiar with preparing a test project, take a look at Creating a test project. — Ed Ford,  DTS Engineer
2d
Reply to xcodebuild -exportLocalizations does not respect build scheme or configuration
Hello and welcome to Apple Developer Forums, I will comment on a few things here. Preview-only strings should no longer be extracted as of Xcode 16, regardless of the RELEASE/DEBUG configuration. Regarding this: Our real app’s Xcode project cannot export strings from within the Xcode IDE at all, as Xcode always attempts to build our iOS project using the macOS SDK, which obviously fails. So we must use the command line export. Assuming this is in the context of Swift Packages, this issue should be fixed in Xcode 16 Beta 4. If you are still experiencing issues with Xcode exporting for an unexpected platform, please file a Feedback report with a sample project. A localization export (whether in the IDE or on the command line) is expected to cover an entire project or workspace and is not scheme-based. Thus, Xcode does not support exporting within the context of a specific scheme. Export does not support the -configuration option on the command line today, but please file a Feedback report for us to add
2d
Reply to Content filter providers seem to block all requests during startup on iOS 16 or 17
Is this the expected behavior? Yes and, in fact, I believe the iOS 15 behavior was in fact a bug. In security terms, iOS 15 is failing open, which means it's possible to bypass your content filter by indirectly disturbing it's startup process (for example, but blocking or stalling specific requests). Is this documented? No. The current behavior is how this kind of API is expected to behave and the iOS 15 behavior was a bug. We offer a content filter app that might be stopped during the device sleeps. When a non-our-app’s push notification is received, the device wakes up, and the content filter starts up. Then the push notification seems to be lost. It is observed on iOS 16 and 17, not on iOS 15. If you want to reimplement the iOS 15 behavior, then you can modify your start logic to finish as quickly as possible and then simply allow all flows until you've finished your own initialization and can start blocking again. __ Kevin Elliott DTS Engineer, CoreOS/Hardware
2d
How to Set IDEPreferLogStreaming Globally in Xcode 15.4
How do you fix this Xcode error whenever I create a new project it comes back. The fix is to add IDEPreferLogStreaming=YES but it only fixes for the current project. If I create new project it come back which is annoying to every time add it as YES. version: Xcode 15.4 I did try out Set this in Product->Scheme->Edit Scheme->Run->Arguments->Environment Variable IDELogRedirectionPolicy oslogToStdio OS_ACTIVITY_MODE disable For reference : Logging Error: Failed to initialize logging system. Log messages may be missing.? I tried these solutions from here
3
0
275
1w
Reply to Making shader graph same as wwdc24
Hello @Gamno, while I do not have access to the exact project shown in that video, I can attempt to walk you through the steps of building a similar material in Shader Graph. If you haven’t already, check out Build Materials in Shader Graph for more info on creating materials using Shader Graph. A couple notes about what you see in the video: The nodes with yellow trim are composed from multiple base nodes and collapsed for brevity. Two types of nodes were created this way: an incidence node that outputs the dot product (float) of the view direction and surface normal, and an undulate node that outputs a vector3f that is used for the Model Position Offset input on a GeometryModifier node. You can create your own custom nodes by selecting a group of nodes and clicking Compose Node Graph in the context menu. To build the incidence node, combine the outputs of a ViewDirection node with a Normal node into a DotProduct node. This value will be used to calculate the Color and Opacity inputs in an UnlitSurf
2d
SwiftUI ForEach .onInsert not called for outside drags?
Hello, I'm trying to accept drags from outside my app to create a new row in a list. I've observed .onInsert not getting called in this scenario and I'm curious if it's 100% not possible, or if there's an obscure view modifier that I am missing. Thank you. struct ContentView: View { @State var data = [One, Two, Three] var body: some View { HStack { List { ForEach(data, id: .self) { item in Text(item) } .onMove(perform: { indices, newOffset in data.move(fromOffsets: indices, toOffset: newOffset) }) .onInsert(of: [UTType.plainText], perform: { index, items in // WORKS data.insert(new, at: index) }) .onInsert(of: [UTType.data], perform: { index, items in // Never called data.insert(OUTSIDE, at: index) }) } Text(DragMe) .onDrag { return NSItemProvider(item: DragMe as NSString, typeIdentifier: UTType.plainText.identifier) } } } }
2
0
271
May ’24
<compiler-generated> Error shows fatal crash in firebase crashlytics...but the app does not crash for the user
getting a Crash in crashlytics. However, the user's app on the device does NOT actually crash. Everything works as expected. Heres is the stack trace: Crashed: com.apple.main-thread 0 DigiDeals 0x33404 specialized Universal.displayMessages() + 4302730244 (:4302730244) 1 DigiDeals 0x32840 specialized Universal.displayMessages() + 453 (Universal.swift:453) 2 libswift_Concurrency.dylib 0x4d764 swift::runJobInEstablishedExecutorContext(swift::Job*) + 436 3 libswift_Concurrency.dylib 0x4e9c8 swift_job_runImpl(swift::Job*, swift::ExecutorRef) + 72 4 libdispatch.dylib 0x124b4 _dispatch_main_queue_drain + 748 5 libdispatch.dylib 0x121b8 _dispatch_main_queue_callback_4CF + 44 6 CoreFoundation 0x56710 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 7 CoreFoundation 0x53914 __CFRunLoopRun + 1996 8 CoreFoundation 0x52cd8 CFRunLoopRunSpecific + 608 9 GraphicsServices 0x11a8 GSEventRunModal + 164 10 UIKitCore 0x40a90c -[UIApplication _run] + 888 11 UIKitCore 0x4be9d0 UIApplicationMain + 340 12 UIKitCore 0x638384 keypat
7
0
122
5d
How to debug missing environment values
I have a custom environment key defined: struct MyCustomKey: EnvironmentKey { static let defaultValue = MyCustom.dummy } extension EnvironmentValues { var myCustom: MyCustom { get { self[MyCustomKey.self] } set { self[MyCustomKey.self] = newValue } } } and pass it on the top level: let myCustomInstance = MyCustom() @main struct ThygeApp: App { var body: some Scene { WindowGroup { MainWindow() .environment(.myCustom, myCustomInstance) } } } I really do not want it to use the default instance ever, I want it to be specified explicitly. Is there a way to have it fail on use if it is not specified in the environment? I have made it so that the .dummy instance does a fatalError() and that works so far as it halt the app. But there are no hints in the stack track as to where the offending code is - where do I use the environment value without passing it like I do here .environment(.myCustom, myCustomInstance) The only solution to find the offending use is to add an assert() to all func defined in MyCustom. That see
2
0
73
3d
Reply to SwiftUI TextEdit iPad external keyboard "Return" key
this always dismisses the keyboard. It looks like the TextField loses focus. Since you mentioned external Bluetooth keyboard, I am wondering what you meant about the keyboard being dismissed... Did you mean that when you use the system-provided virtual keyboard and hit the Return key, the virtual keyboard is dismissed? If that is the case, is switching to TextEditor an option for you? I think that may be the easiest option to implement multiple line text input on iOS / iPadOS. Best, —— Ziqiao Chen  Worldwide Developer Relations.
2d
Content inside volume gets clipped
I am using the Xcode visionOS debugging tool to visualize the bounds of all the containers, but it shows my Entity is inside the Volume. Then why does it get clipped? Is there something wrong with the debugger, or am I missing something? import SwiftUI @main struct RealityViewAttachmentApp: App { var body: some Scene { WindowGroup { ContentView() } .windowStyle(.volumetric) .defaultSize(Size3D(width: 1, height: 1, depth: 1), in: .meters) } } import SwiftUI import RealityKit import RealityKitContent struct ContentView: View { var body: some View { RealityView { content, attachments in if let earth = try? await Entity(named: Scene, in: realityKitContentBundle) { content.add(earth) if let earthAttachment = attachments.entity(for: earth_label) { earthAttachment.position = [0, -0.15, 0] earth.addChild(earthAttachment) } if let textAttachment = attachments.entity(for: text_label) { textAttachment.position = [-0.5, 0, 0] earth.addChild(textAttachment) } } } attachments: { Attachment(id: earth_label) { Text(
1
0
98
1w
Reply to Weird crashes when accessing Swift Array
[quote='797102022, DTS Engineer, /thread/760029?answerId=797102022#797102022'] If you only want to look at the app, rather than run it, you can ignoer the whole thing: [/quote] So I ran lldb ~/Library/Developer/Xcode/Archives/2024-07-12/MyApp macOS 12.07.2024, 20.43.xcarchive/Products/Applications/MyApp.app To translate the addresses from the crash report to lldb, it wasn't sufficient to subtract the binary image base address, but I found some help at Symbolicating with LLDB. By running lldb image list which outputs [ 0] 2521131E-2080-387D-B96E-8DB6AA18E011 0x0000000100000000 ~/Library/Developer/Xcode/Archives/2024-07-12/MyApp macOS 12.07.2024, 20.43.xcarchive/Products/Applications/MyApp.app/Contents/MacOS/MyApp /System/Volumes/Data/~/Library/Developer/Xcode/Archives/2024-07-12/MyApp macOS 12.07.2024, 20.43.xcarchive/dSYMs/MyApp.app.dSYM/Contents/Resources/DWARF/MyApp [ 1] 37BBC384-0755-31C7-A808-0ED49E44DD8E 0x00000001800b8000 /usr/lib/dyld ... I found out that there is another base address
2d