Posts

Sort by:
Post not yet marked as solved
0 Replies
3 Views
If a TextField is being used within a ScrollView, when the TextField becomes tall enough the input caret can go offscreen behind the keyboard. There's no straightforward way to keep the caret visible. One could use .id(_:) on something at the bottom of the TextField and scroll to that with the ScrollViewProxy but how would they know when to scroll? They could detect a height change of the TextField but if the user is typing towards the center of the field then we end up scrolling them away from their edit location to the bottom. They could detect a length change in the edited text but that has the same issue as #1. They could diff the edited text to see if the edits were at the end but then we're getting much more complex. TLDR: We need a straightforward way to keep the TextField's input caret visible. What I could see working would be something like a modifier for TextField like .cursorID(_:). We could then just scroll to that ID on input changes. Here's a similar post on StackOverflow.
Posted
by
Post not yet marked as solved
0 Replies
6 Views
I can't override the show(_:sender:) of UIViewController or else my app freezes when the method is called (Xcode 15.3 simulator, iOS 17.4, macOS Sonoma 14.3.1, MacBook Air M1 8GB). Is there any workaround? override func show(_ vc: UIViewController, sender: Any?) { super.show(vc, sender: sender) }
Posted
by
Post not yet marked as solved
0 Replies
2 Views
I am using the Leaks instrument, and it has identified a bunch of 32 and 48 byte "Malloc" leaks. I would like to see a hex dump of some (or all) of those areas. I think if I can see what is in them I can get a better idea about what is triggering the leak. I'm pretty sure it is a real leak. What is the easy way to do this? Can it be done inside instruments, or do I need to run my app under instruments and also attach via lldb and hexdump from lldb? (can I attach lldb and instruments at the same time?) If it matters I'm debugging an iPadOS app, and it is written in Swift plus ObjC, plus ObjC++, oh, and some straight C++.
Posted
by
Post not yet marked as solved
0 Replies
14 Views
Hi , We used to run this command to get wifi info on mac. /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I but it seems with latest 14.4.1 , airport command has been deprecated and advised to use wdutil. The problem with wdutil is that it only works with sudo. Is there a way we can still get all wifi metrics without sudo an mac?
Posted
by
Post not yet marked as solved
1 Replies
17 Views
I am trying to implement the ability to save a photo to the user’s photo library on macOS. When I call PHPhotoLibrary.requestAuthorization(for: .addOnly) I just get a .denied status. The user is not prompted for access. I tried adding these entitlements: com.apple.security.personal-information.photos-library, com.apple.security.assets.pictures.read-write. I tried turning off sandboxing entirely. I tried saving despite getting the authorization denied, but unsurprisingly that gives me this error: Domain=PHPhotosErrorDomain Code=3311 I can almost do what i want with NSSharingService(named: .addToIPhoto), but that has the side effect of launching Photos. Is there a trick to getting PHPhotoLibrary.requestAuthorization(for: .addOnly) to work? Thanks. John
Posted
by
Post not yet marked as solved
0 Replies
20 Views
With XCode 14 and below, our macOS application is building and running fine. The application depends on some third-party .dylibs and also a couple of .frameworks that we make in-house, all of which are happily in the .app bundle and working. When compiled under XCode 15, the application crashes because one of our .frameworks now tries to load these dylibs which cannot be found if run on a machine that didn't build it. Note that previously, this framework never depended on these dylibs before, but the application does. The rpaths for these dylibs are pointing to the build dependencies folder, which would only exist on a build machine. Also, the dependencies are now looking for versioned dylib filenames, while the application itself depends on the un-versioned dylib filenames. So to recap, that's 3 new problems when building with the new linker: The framework is now dependent on dylibs that normally only the application depends on The new dependency is on versioned dylibs, where the original application dependency is on un-versioned dylibs The framework's rpaths now include intermediate build folders Running otool -L on the framework binary shows a clear difference between ld_prime and ld_classic. The dependencies on the third-party dylibs are only showing up when the framework is built with the new linker. We have a couple of workarounds: Using ld_classic to build our application with the old linker Using post-build commands (install_name_tool) to change the dependencies and remove the build folders from the rpaths Though ultimately, workaround 1) could only be temporary and 2) is hacky. We'd like to understand why the linker is exhibiting this new behaviour, so we can make the proper adjustments to fix this the correct way. Any insight would be greatly appreciated. Thanks in advance. Note: this is a cross-platform product, and CMake is used to generate the .xcodeproj project file.
Posted
by
Post not yet marked as solved
0 Replies
23 Views
We are testing Apple Pay integration with our payments application. We need some information about the test cards to test some negative scenarios like low balance, Address verification (AVS), incorrect CVV, Card declined, etc., We see many cards on the following page, but we are unsure which one to use to test the negative scenarios that I mentioned above. https://developer.apple.com/apple-pay/sandbox-testing/ I am reaching out to see if I can get some help with this.
Posted
by
Post not yet marked as solved
0 Replies
20 Views
We are testing Apple Pay integration, how do I know among the given cards in the following sandbox tester information page are debit cards https://developer.apple.com/apple-pay/sandbox-testing/
Posted
by
Post not yet marked as solved
0 Replies
35 Views
Hi, With iOS-17.4 update, we are seeing AppProxy VPN not getting started when Apps (associated with PerAppVPN) tried to access network resource after MDM PerAppVPN profile install/update. Looks like PerApp rules associated with applayer vpn profile are broken after profile update/install as we see internet sites working without going through VPN (appProxy network extension), this start working if we toggle WiFi and then access network resource from Apps associated with PerAppVPN. Created FB13688086 with all the details for this iOS 17.4 and AppLayerVPN, looking for and update here and any feedback/pointers will help. Thanks
Posted
by
Post not yet marked as solved
1 Replies
41 Views
We have an existing AR app built for Android and iOS, using Unity. We now want to add a visionOS version of this app. However, this version is built natively, using Xcode directly, no Unity involved. I saw that I can add a new platform to my app in App Store Connect. But can I upload two different builds, and how will App Store Connect tell which uploaded bundle belongs to which platform?
Posted
by
Post not yet marked as solved
0 Replies
30 Views
I'm trying to set up xcode cloud, and it's asking me to sign into my github account when I am prompted to create a new remote. I have created a classic github token with the 4 permissions listed (admin:public_key, write:discussion, repo, user). When I click sign in, it always says "Account Creation Failed". How can I debug this error?!
Posted
by
Post not yet marked as solved
1 Replies
31 Views
I'm trying to run my first app on my AVP. I have created the project from a template and haven't made any modifications at all yet. I was able to pair with the vision pro and I had to wear it for about an hour and a quarter while it uploaded cache symbols. Now it says it's connected fine in the devices window, however, when I try to run my app on the device, it goes into a perpetual loading state with 3 tasks (each has a loading spinner beside it): Attaching to AppName on Apple Vi... Launching AppName... Installing AppName to Apple Vision... How can I debug this and find out whats going wrong?!
Posted
by
Post not yet marked as solved
0 Replies
39 Views
We want to use QR code to open and activate certain features in our app. We don't want these QR codes to be hard-coded in our app (i.e. image tracking). Instead we want to use them like you typically would do with your smart phone camera: Just detect them if the user looks at them. And if they encode a certain URL pointing to our app, start the app via an URL handler and hand over the link, like it is possible on iOS. I tried this in normal Shared Space and also with the camera app. But neither recognized a QR code. Is this feasible with the Vision Pro?
Posted
by
Post not yet marked as solved
0 Replies
34 Views
After using xcode 15 for distribution we are having strange crashes from UICollectionViewDiffableDataSource. Crash does not indicate any call stack from our own code. This happens on %100 ios 17 and with xcode 15.1 build and we can not reproduce it in testing environment. Here is the stack trace Crashed: com.apple.main-thread 0 libswiftCore.dylib 0x40369c swift_getObjectType + 40 1 UIKitCore 0x469160 __swift_destroy_boxed_opaque_existential_1Tm + 35088 2 UIKitCore 0x2633ac -[__UIDiffableDataSource collectionView:cellForItemAtIndexPath:] + 144 3 UIKitCore 0x466fd4 __swift_destroy_boxed_opaque_existential_1Tm + 26500 4 UIKitCore 0x4670e0 __swift_destroy_boxed_opaque_existential_1Tm + 26768 5 UIKitCore 0xd2194 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 668 6 UIKitCore 0x65f674 -[UICollectionView _prefetchItemsForPrefetchingContext:] + 384 7 UIKitCore 0x32204c -[UICollectionView _updatePrefetchedCells:] + 148 8 UIKitCore 0x6613fc -[UICollectionView _updateCycleIdleUntil:] + 492 9 UIKitCore 0xa69a5c ___UIUpdateCycleNotifyIdle_block_invoke + 596 10 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32 11 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 12 libdispatch.dylib 0x125a4 _dispatch_main_queue_drain + 988 13 libdispatch.dylib 0x121b8 _dispatch_main_queue_callback_4CF + 44 14 CoreFoundation 0x3751c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 15 CoreFoundation 0x34218 __CFRunLoopRun + 1996 16 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 17 GraphicsServices 0x34e0 GSEventRunModal + 164 18 UIKitCore 0x22aedc -[UIApplication _run] + 888 19 UIKitCore 0x22a518 UIApplicationMain + 340 20 MyApp 0xd968 main + 42 (AppDelegate.swift:42) 21 ??? 0x1c8366d84 (Missing) End here is the exception: Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000 This address is always 0x0000000000000000. Anyone having the similar issue?
Posted
by
Post not yet marked as solved
0 Replies
41 Views
We use a local swift package in 6 of our app extensions. The product from the local package that we link to each app extension is a dynamic framework. And while the dynamic framework is copied into the final app bundle once, the resource bundles of each target that comprise the dynamic framework is copied into each app extension. I'd much rather have the bundles be copied into the dynamic framework once to prevent app bloat. Here is a visualization of the issue: . └── MyApp.ipa/ ├── MyApp (executable) ├── MyDynamicFramework_TargetA.bundle ├── MyDynamicFramework_TargetB.bundle ├── MyDynamicFramework_TargetC.bundle ├── Frameworks/ │ └── MyDynamicFramework.framework/ │ ├── TargetA │ ├── TargetB │ └── TargetC └── PlugIns/ ├── Widgets.appex/ │ ├── MyDynamicFramework_TargetA.bundle │ ├── MyDynamicFramework_TargetB.bundle │ └── MyDynamicFramework_TargetC.bundle ├── Intents.appex/ │ ├── MyDynamicFramework_TargetA.bundle │ ├── MyDynamicFramework_TargetB.bundle │ └── MyDynamicFramework_TargetC.bundle ├── IntentsUI.appex/ │ ├── MyDynamicFramework_TargetA.bundle │ ├── MyDynamicFramework_TargetB.bundle │ └── MyDynamicFramework_TargetC.bundle ├── NotificationContent.appex/ │ ├── MyDynamicFramework_TargetA.bundle │ ├── MyDynamicFramework_TargetB.bundle │ └── MyDynamicFramework_TargetC.bundle ├── RichPushContent.appex/ │ ├── MyDynamicFramework_TargetA.bundle │ ├── MyDynamicFramework_TargetB.bundle │ └── MyDynamicFramework_TargetC.bundle └── NotificationService.appex/ ├── MyDynamicFramework_TargetA.bundle ├── MyDynamicFramework_TargetB.bundle └── MyDynamicFramework_TargetC.bundle Notice that the resource bundles of Target A, B, and C are copied multiple times causing an unhealthy app size. I'd either like the resource bundles to be copied into MyDynamicFramework or copied once into the app bundle and let the app extensions reference them. Given the SPM + Xcode linking is a black box for the most part, how would I accomplish this?
Posted
by
Post not yet marked as solved
0 Replies
41 Views
I am trying to make a shader for a disco ball lighting effect for my app. I want the light to reflect on the scene mesh. i was curious if anyone has pointers on how to do this in shader graph in reality composer pro or writing a surface shader. The effect rotates the dots as the ball spins. This is the effect in the apple clips that applies the effect to the scene mesh
Posted
by
Post not yet marked as solved
0 Replies
28 Views
Hello, What are the guidelines for mergeable libraires regarding privacy data ? In particular where do we put the PrivacyInfo.xcprivacy file in this situation, so as Apple process can scan it when we upload the package of the app. Thank you.
Posted
by
Post not yet marked as solved
0 Replies
29 Views
Hello, When you integrate framework linked statically, the usage is that those framework provide a bundle in which they put their PrivacyInfo.xcprivacy file. If you decompress an .ipa file you submit to Apple, you can see this bundle at the root. The problem is that the PrivacyInfo.xcprivacy files inside bundles seem not to be scan by Apple in the privacy process. Thus Apple send us issues about missing privacy. Have you already heard about this problem ? Probably link to what i am saying : Firebase issue #12557 Thank you very much for your feedback !
Posted
by

TestFlight Public Links

Get Started

Pinned Posts

Categories

See all