Post

Replies

Boosts

Views

Activity

Reply to App sometimes crashes when inserting String into Set with assertion ELEMENT_TYPE_OF_SET_VIOLATES_HASHABLE_REQUIREMENTS
I notice the exception is on: NativeSet.insertNew(_:at:isUnique:) + 376 (/:0) Looking at this thread: https://forums.swift.org/t/substring-violates-hashables-requirements-stdlib-compiler-bug/58046/7 I wonder if the compiler is not confused and considering you try to insert a substring. To make sure, could you try: let sub = self[index...] // a substring let theStr = String(sub) return if index == endIndex || basePath == "/" { theStr // String(self[index...]) // for sure, a String } else if let index = self[index...].range(of: "/", options: .anchored)?.upperBound { theStr // String(self[index...]) } else { nil } If that works, you should file a bug report.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’25
Reply to App sometimes crashes when inserting String into Set with assertion ELEMENT_TYPE_OF_SET_VIOLATES_HASHABLE_REQUIREMENTS
I miss something: relativePath may return nil you force unwrap, which could cause a crash scanErrorPaths.insert(path.relativePath(from: basePath)!) Could you try replacing by: guard let index = range(of: basePath, options: .anchored)?.upperBound else { return "" } and have relativePath return a String, not optional ?
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’25
Reply to app to restriction student phone use in schools
My understanding, AFAIK: if iPhone belongs to the student, that should not be possible, (it would mean any app can get control of your iPhone, with all privacy and security issues it would raise) but if the iPhone is supervised, that should be possible. But likely too heavy constraint on users (and school). Get first look here: https://support.apple.com/en-us/102291#:~:text=If%20your%20iPhone%20or%20iPad%20is%20supervised%2C%20the%20organization%20that,need%20to%20check%20your%20settings.
Oct ’25
Reply to Resubmitting for Apple review
Welcome to the forum.   getting past the demo login on my app. when I press enter demo or sign in Is it SwiftUI or UIKit app ? If UIKit, have you checked the buttons are properly connected to their IBAction ? If UIKit, please show the code of the buttons if SwiftUI please show the code of the view where they are defined.   I can’t enter my app to see what’s wrong with it. What do you mean ? That you cannot test beyond this demo or sign in ? You give almost no information except declaring "it does not work". How could someone help ? Please read this: https://developer.apple.com/forums/thread/706527 and complete your post accordingly.
Oct ’25
Reply to Primeira publicação de app na loja apple
Para as capturas de ecrã, o melhor é gerá-las com o simulador. Assim, tem a certeza de que está no formato correto. Então, tem uma empresa e um número DUNS? Qual é o nome comercial? É o nome comercial da empresa? Onde aparece nos metadados? Provavelmente seria mais simples ter o mesmo nome para ambos. For the screenshots, the best is to generate them with the simulator. You are thus sure it is the correct format. So you have a company and a DUNS number ? What is the trade name ? Is it the commercial name of the company ? Where does it appear in Metadata ? It would probably be simpler to have the same name for both.
Oct ’25
Reply to The app contains one or more corrupted binaries. Rebuild the app and resubmit.
On which version of Xcode do you build ? Have you the list of all libraries you use ? Finally, have you accepted the eventual Xcode message (appear in left panel) to update to new settings ? Old thread, but you may find interesting hints to look at: https://stackoverflow.com/questions/48501857/non-public-api-usage-the-app-contains-one-or-more-corrupted-binaries
Oct ’25