Posts

Sort by:
Post not yet marked as solved
0 Replies
9 Views
The app crashes when creating a new album. This crash did not occur in our own testing, but after publishing it to the app store, it seems that the probability of occurrence is very high.
Posted
by
Post not yet marked as solved
0 Replies
33 Views
Hello, How do I add a keyboard shortcut to an existing menubar command in a macOS AppKit app. Specifically, I would like to make the Delete shortcut under Edit work when I press command delete. How do I add a keyboard shortcut to the existing command? Thanks, Dev_101
Posted
by
Post not yet marked as solved
0 Replies
21 Views
I tried to pay on apple developer program and It said I will get email in 48 hours but I have received none and it still shows purchase your membership. I even tried to email the developer support and no response. Its been more than a week. I even tried to call apple support and they said developer account have no call support but only email. What should I do?
Posted
by
Post not yet marked as solved
0 Replies
23 Views
Somehow, I am no longer able to connect to the AppStore in my development build. On a different device, I am running a production build (downloaded from the AppStore) and it works fine. In Xcode console, for the dev build, I get the following: Error enumerating all current transactions: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={NSLocalizedDescription=No active account} It's been several months since I've worked on this particular project, and I can't recall what I did to enable the sandbox in the first place. ¯_(ツ)_/¯ Notwithstanding, on each device, I have gone into Settings -> App Store -> Sandbox Account and selected "Sign Out". Within Xcode, there is no Sandbox entry in any Entitlement file that I can find. Under Product -> Scheme -> Edit Scheme -> Run (Debug) -> Options, the StoreKit Configuration is set to None. In addition, 2 years ago Eskimo posted the following command that supposedly identifies if a build is Sandbox-enabled: codesign -d --entitlements - --xml /Applications/PCalc.app | plutil -convert xml1 -o - - I ran this command on my .app - and there was no hint of a sandbox entitlement. And finally, I suspect my "No active account" error is related to Xcode's sandbox feature because, when I tap on my app's Restore Purchases link, I am presented with an os-level dialog box "Sign in with Apple ID". If I do that, then the Settings -> App Store -> Sandbox Account gets filled in... I'm at a loss. Any help will be appreciated.
Posted
by
Post not yet marked as solved
0 Replies
19 Views
Here is my basic problem. The app itself builds without issue, but when I simulate I get the following log in the debug console. The app also force closes when the Save function is selected with these errors. The app is a simple form which saves the data to a CoreData entity. It will do more (full CRUD) later after I deal with this particular issue. I have checked and rechecked class names, spelling issues, case sensitivities. I can not seem to find the issue. error: No NSEntityDescription in any model claim the NSManagedObject subclass 'App.Entity' so +entity is confused. Have you loaded your NSManagedObject Model yet? Also: error: +[App.Entity entity] Failed to find a unique match for an NSEntityDescription to a managed object subclass
Posted
by
Post not yet marked as solved
0 Replies
20 Views
Hi! I've got a custom UICollectionViewLayout which has its cells and two supplementary kind of views scattered all over randomly within its bounds. It should be a calendar month view with day of week labels on top, week numbers on the left (supplementary views) and day cells in the middle (items). So far I tracked down that the layoutAttributesForItem(at indexPath:) and layoutAttributesForSupplementaryView(ofKind elementKind:, at indexPath:) are not getting called. Which gives them a reason not to be placed where they should be. layoutAttributesForElements(in rect: ) gets called indeed and the returned value is also OK: override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { super.layoutAttributesForElements(in: rect) var arr = [UICollectionViewLayoutAttributes]() arr.append(contentsOf: AllAttributes.filter({ (Item:UICollectionViewLayoutAttributes) -> Bool in (collectionView!.numberOfSections) > Item.indexPath.section && rect.intersects(Item.frame) })) return arr //47 long array of UICollectionViewLayoutAttributes } In IB the Collection View is specified to be Custom Layout and the respective subclass is specified there. I inspected the official example code here: https://developer.apple.com/documentation/uikit/views_and_controls/collection_views/layouts/customizing_collection_view_layouts The only diffrerence I see is that the example uses UICollectionViewController, which is specified to be Flow Layout in IB, and then the UICollectionView is re-instantiated in code as custom during viewDidLoad. Could that really make a difference? This solution would not be too convenient for me, as I have also other controls on my Controller View. Any help would be appreciated.
Posted
by
Post not yet marked as solved
0 Replies
22 Views
WWDC announced this new feature where you can distribute builds that are only for testing, not to be submitted to the App Store. Is there a way via the API to do this? It's available in Xcode distribution window, but that's not helpful for automation.
Posted
by
Post not yet marked as solved
0 Replies
26 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
25 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
1 Replies
31 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
34 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
2 Replies
38 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
67 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
39 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
33 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
53 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

TestFlight Public Links

Get Started

Pinned Posts

Categories

See all