Search results for

NSCocoaErrorDomain Error Code 4

170,006 results found

Post

Replies

Boosts

Views

Activity

Reply to App Store Connect rejects screenshot upload: “incorrect size” (subscription purchase flow) — tried all documented sizes
Hello everyone, Just a quick update in case it helps others: I was able to successfully upload the review screenshot after resizing it to 640 × 920 px. After using that exact resolution, App Store Connect accepted the image without the “incorrect size” error. Thank you to everyone who shared suggestions and guidance.
1h
How to Center an App Icon Image Vertically in a UITableViewCell
Hello! I'm making a list of app icons for users to choose, but when I increase or decrease the font size, the image is still in the same spot and isn't centered vertically with the text. I have it initialized with a frame with hard-coded values, but I was wondering if there was a better way of doing it, such as with constraints or some sort of image scaling. I've provided code blocks and an image of what is happening. ImageView Configuration // App Icon Image UIImageView *appIconImageView = [[UIImageView alloc] initWithFrame: CGRectMake(12.5, 17, 22.5, 22.5)]; // Configurations UIImageSymbolConfiguration *multicolorConfiguration = [UIImageSymbolConfiguration configurationPreferringMulticolor]; UIImageSymbolConfiguration *sizeConfiguration = [UIImageSymbolConfiguration configurationWithScale: UIImageSymbolScaleSmall]; UIImageSymbolConfiguration *appIconConfiguration = [multicolorConfiguration configurationByApplyingConfiguration: sizeConfiguration]; appIconImageView.preferredSymbolConfigurati
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
9
1h
Reply to Facing issue with fairplay Streaming server SDK 26.0.0
This looks like a problem with your curl command. Can you try the following? curl -d @Test_Inputs/iOS/spc_ios_hd_lease_2048.json localhost:8080/fps The @ symbol is needed to send the contents of the file. Otherwise, curl just sends the filename as a string in the body of the request, and the server will respond with that error. Also, it looks like you are running from the Key_Server_Module directory, so the relative path is probably Test_Inputs instead of ../Test_Inputs.
Topic: Media Technologies SubTopic: Streaming Tags:
1h
Reply to How to remove "Developer ID Application" certificate?
Then Xcode shouldn't just add dupes of these certs. What happens is signing fails, Xcode gives no guidance. And so the Xcode UI has the option to add a new one. Then end up with dupe certs that cannot be cleaned out. Then the profiles fail if not the correct out of the 3 dupes, and signing still fails if the cert private key isn't in the keychain. Again no guidance from Xcode on any of these signing failures. Here's one error. Xcode shows Ineligible for the profile: Provisioning profile KramViewerProvision doesn't include signing certificate Developer ID Application: ... (hash...) Here's an error when the private key isn't in the Keychain. C6BA06....: no identity found Command CodeSign failed with a nonzero exit code
Topic: Code Signing SubTopic: General Tags:
2h
Reply to Create a new GitHub Remote Repository - Unknown Error
Thank you for the post. It appears that the issue is related to GitHub rather than Xcode. However, the error message could be more descriptive. Experiencing issues when trying to create a new remote GitHub repository from Xcode can be frustrating, especially when other functionalities are working fine. Can you go to the GitHub website and create the repository manually on their website? Ensure that your GitHub account has the appropriate permissions to create new repositories. You might want to try logging into GitHub via a web browser to verify your account status or as previously wrote, try to create the repo on their website and then just reference the link on Xcode. Manually Create on GitHub Website: Create the new repository directly through the GitHub website. Afterward, in Xcode, add this remote repository by going to or using the Terminal commands shown in advanced diagnostics to push your existing local project to the newly created remote. Hope this helps. Albert Pascual
  Worldwide Develop
2h
Sharing: How I Built an IPv4/IPv6 Dual-Stack Network Diagnostic Tool for iOS
Hi everyone 👋 As a network engineer and indie iOS developer, I couldn’t find a lightweight mobile tool that fully supports IPv4/IPv6 dual-stack diagnostics — so I built NetToolbox -All-In-One Utility for engineers, DevOps, and developers. Here are its core features that solve real mobile networking pain points: One-Click Full Diagnostics: Integrates ping, traceroute, and multi-type DNS queries (A/AAAA/CNAME) — no need to switch between apps IPv4/IPv6 Dual-Stack Support: Seamlessly works in IPv6-only networks, with the ability to test connectivity differences between dual-stack environments LAN Device Scanning: Quickly identifies all devices on the same network segment and checks port availability Offline Functionality: Diagnostic logic is stored locally, enabling LAN troubleshooting without an internet connection Lightweight Design: 5MB install size, no storage bloat, and low power consumption during operation Dark Mode Support: Tailored for developers who work late at night During development, I leveraged A
1
0
22
4h
Reply to Stumped by URLSession behaviour I don't understand...
What Kevin said plus… It’s reasonable to use different approaches for different subsystems in your app. For example: If you’re fetching an audio file to play immediately, a standard session is probably best. Critically, it results in the least latency, which is important because you’re actively playing that audio. And while this requires your app to not suspend, that’s OK because you’re playing audio. If you’re downloading a large file that the user isn’t actively playing, a background session makes sense. If you’re scanning for updates, you could use a background processing task. This typically runs overnight, which is fine because the user isn’t expecting the results immediately. Unless they bring your app to the foreground and tap the refresh button, in which case you might run the same code immediately. And you can then use a continued processing task to complete the refresh. But that’s just one way to slice this. You have lots of options and it’s kinda up to you to decide which one makes sense b
5h
Reply to NSKeyedArchiving issue
Hey Quinn, thanks for all the material. I realize that I have a basic issue in my code. data is not loaded. In the previous version, archiver had a connection to data let archiver = NSKeyedArchiver(forWritingWith: data) That's no more the case, so data is empty, hence the problems. let data = NSMutableData() let archiver = NSKeyedArchiver(requiringSecureCoding: true) archiver.encode(myObject, forKey: theKey) archiver.encode(myObject2, forKey: theKey2) archiver.finishEncoding() do { try data.write(to: an uRL, options: []) // data is empty of course ! } catch { } So should I replace: archiver.encode(myObject, forKey: theKey) archiver.encode(myObject2, forKey: theKey2) archiver.finishEncoding() do { try data.write(to: anURL, options: []) // So object and object2 are on file with let data = try! NSKeyedArchiver.archivedData(withRootObject: myObject, requiringSecureCoding: true) let data2 = try! NSKeyedArchiver.archivedData(withRootObject: myObject2, requiringSecureCoding: true) archiver.finishEncoding()
Topic: App & System Services SubTopic: General Tags:
6h
Have developer registrations been suspended?
I purchased a developer account approximately 4 days ago, on Saturday. The payment was successfully charged to my card and I have the receipt, but I have not received any approval. The status is still PENDING, and we are about to enter the 5th day without approval. How can this issue be resolved? We are also not receiving any responses to our support tickets.
0
0
66
6h
Program Purchase and Renewal
I purchased a developer account approximately 4 days ago, on Saturday. The payment was successfully charged to my card and I have the receipt, but I have not received any approval. The status is still PENDING, and we are about to enter the 5th day without approval. How can this issue be resolved? We are also not receiving any responses to our support tickets.
0
0
45
6h
Reply to DNS Proxy system extension – OSSystemExtensionErrorDomain error 9 “validationFailed” on clean macOS machine
Thanks for the clarification about Developer ID vs Apple Development and for the links. Previously I started with Developer ID and the dns-proxy-systemextension entitlement, but per your advice I’ve now switched both the host app and the DNS Proxy system extension to Apple Development signing and the legacy dns-proxy value. Current Apple Development setup macOS: 15.7.3 (24G419) Xcode: 26.2 (17C52) Host: com.example.agent.MyMacProxy DNS Proxy system extension: com.example.agent.MyMacProxy.dnsProxy System extension entitlement: xml com.apple.developer.networking.networkextension dns-proxy System extension Info.plist (built .systemextension inside the host app): xml NSExtension NSExtensionPointIdentifier com.apple.system_extension.network_extension NSExtensionPrincipalClass MyMacProxy.DNSProxyProvider There is no NetworkExtension key in this plist (confirmed with plutil -p on the built .systemextension in both DerivedData and /Applications). The system extension is embedded at: MyMacProxy.app/Contents/Library/Sy
6h
TestFlight on Mac
I’m having an issue installing my TestFlight build on a Mac. The build (v1.0 build 1) uploads successfully and shows as “Complete” in App Store Connect. I can also open the build details page, and my Apple ID / tester access / group setup looks correct. However, on TestFlight (macOS), when I tap Install/Load, I get this error: Unable to install. The requested app isn’t available or can’t be found. Notes: The app is an iOS app (iPhone + iPad), and I enabled availability for Mac (Designed for iPad) in App Store Connect. The Mac is Apple Silicon, running macOS Tahoe 26.1. Could you help me understand why TestFlight shows this message on Mac, and what I should change in Xcode/App Store Connect to make the build compatible?
0
0
26
6h
Reply to Reduce dyld overhead
OK. I don’t think you can optimise beyond that. Rather, I think you should use that as a baseline for performance work as you evolve your program. Speaking of that, An Apple Library Primer has links to various WWDC talks where the linker team discusses various topics. Most notably, the 2022 talk discusses launch times. It’s well worth a watch. Finally, just for context, the libSystem initialiser does a bunch of really critical stuff. For example, it has the code that sets up the App Sandbox, if the executable enables it. If you want to see this initialiser in action, open your true clone project, set a symbolic breakpoint on libSystem_initializer, and run it from Xcode. When you stop at the breakpoint, Xcode will show a page of disassembled code, but that’s not too hard to understand. And most of the symbols are present, so you can look up the source code in Darwin. IMPORTANT The Darwin open source isn’t guaranteed to match the source used to build the OS, but it’s usually close eno
Topic: App & System Services SubTopic: Core OS Tags:
7h
Reply to NSKeyedArchiving issue
Hey Claude31, it’s nice for me to be helping you for a change (-: It’s hard to tell exactly what’s going wrong here without know more about the objects in play. However, in general, when you decode something from a secure keyed archive, you have to tell the system what type you’re expecting. That’s the key factor is what makes it secure. Over the years I’ve helped a bunch of folks with problems like this. All of these threads have code snippets from me that you should find useful: Question about including all project classes in ofClasses parameter when using NSKeyedUnarchiver.unarchivedObject(ofClasses:from:) Fragment large size data sent and received using NSKeyedArchiver.archivedData in GameCenter Unarchiving an object with custom classes XPC, Swift, ObjC, and arrays NSKeyedUnarchiver decodeObjectOfClasses failed NSKeyedUnarchiver decodeObjectOfClasses failed 'unarchiveTopLevelObjectWithData' was deprecated Use unarchivedObject(ofClass:from:) instead NSkeyedArchiver fails when trying to archive sub
Topic: App & System Services SubTopic: General Tags:
7h